About Contribute Source

Tensor Operation Benchmarks

Synthetic Benchmark [1]

This benchmark consists of 1000 random tensor contractions. The tensor contractions exhibit very different number of indices, index dimensions, and permutation of the indices to stress the performance of any tensor contraction implementation across a wide range of use cases, ranging from very bandwidth-bound contractions all the way to very compute-bound contractions. Moreover, tensor contractions that natively map to a direct matrix-matrix multiplication are omitted (i.e., only “pure” tensor contractions).

The benchmark is expressed via the Einstein notation; link to the raw data here (right click to download).

You can find the python script that was used to generated the data here.

The reported performance measurements were conducted on a two socket Intel Xeon E5 2680 v3 (i.e., Haswell) with 2x 12 cores using double precision. Numbers reported below are gigaflops per second; higher is better.

Tensor contraction performance in GFLOPS/s:
minavgmax
TCL 11.63424.60764.69
BLIS 5.52382.83730.28
Tensor Toolbox 0.84127.17503.91
ITensor 1.92131.34601.42
NumPy 0.756.408.82
Eigen 0.7788.52263.26

medium

Real-world Benchmark (coming soon)

References

  1. Paul Springer: High-Performance Tensor Operations (Doctoral Thesis), RWTH Aachen University, 2018

Edit This Page