blas-microbenchmark1.11.0-dev

What they produce

What the benchmarks print and save, and the page bmb_report makes of it.

A benchmark prints where the result came from, then one row per point as it is measured: here dgemm over three sizes, at one and two threads. These runs were made when this page was built, by the machine that built it.

$ bmb_dgemm -m 256:1024 -t 1,2
# blas-microbenchmark 1.11.0-dev
# backend: openblas (OpenBLAS 0.3.32 NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Cooperlake MAX_THREADS=128)
# kernels: Cooperlake
# verified: every point, against a reference, before it was timed
# layout: row-major
# cpu: Intel(R) Xeon(R) 6975P-C (4 logical CPUs, 1 NUMA node)
# caches: L1d 48K, L1i 64K, L2 2M, L3 480M
# os: Linux 7.0.0-1018-aws x86_64
# date: 2026-12-04T15:50:25Z
# affinity: CPUs 0-3
# command: bmb_dgemm -m 256:1024 -t 1,2
# run: 0.2 s and 1 call of warm-up, 10 samples, batch size chosen per point, hot cache
# operands: pattern fill, aligned to 64 bytes, leading dimensions + 0
# arguments: trans NN, batch_count 1, batch_mode loop
# compiler: gcc 15.2.0, CFLAGS -g -O2 -fopenmp
# routine: dgemm
Thread count    Matrix dim1 (M=K)   Matrix dim2 (N)     time [s]        GFLOP/s       median [s]      IQR [%]   
1               256                 256                 0.000394121     85.137        0.000430450     6.3       
1               512                 512                 0.003096651     86.686        0.003156548     3.6       
1               1024                1024                0.022623196     94.924        0.022808337     1.0       
2               256                 256                 0.000227192     147.692       0.000230944     2.8       
2               512                 512                 0.001529765     175.475       0.001584144     5.1       
2               1024                1024                0.011576167     185.509       0.011693412     0.7       

With -o, the same results go to a file as well; -s adds the mean, the standard deviation, the slowest sample and the batch size. The comment lines say where the result came from; skip them when reading the file.

$ bmb_ddot -v 1024:8192 -s -o ddot.csv
$ cat ddot.csv
# blas-microbenchmark 1.11.0-dev
# backend: openblas (OpenBLAS 0.3.32 NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Cooperlake MAX_THREADS=128)
# kernels: Cooperlake
# verified: every point, against a reference, before it was timed
# cpu: Intel(R) Xeon(R) 6975P-C (4 logical CPUs, 1 NUMA node)
# caches: L1d 48K, L1i 64K, L2 2M, L3 480M
# os: Linux 7.0.0-1018-aws x86_64
# date: 2026-12-04T15:50:26Z
# affinity: CPUs 0-3
# command: bmb_ddot -v 1024:8192 -s -o ddot.csv
# run: 0.2 s and 1 call of warm-up, 10 samples, batch size chosen per point, hot cache
# operands: pattern fill, aligned to 64 bytes
# compiler: gcc 15.2.0, CFLAGS -g -O2 -fopenmp
# routine: ddot
thread_count,vector_size,time_s,gflops,gbytes_per_s,mean_s,stddev_s,max_s,calls_per_sample,median_s,q1_s,q3_s,samples
1,1024,0.000000044,46.818408,374.547262,0.000000045,0.000000002,0.000000049,2070,0.000000044,0.000000044,0.000000046,10
1,2048,0.000000079,52.064093,416.512747,0.000000081,0.000000003,0.000000089,1251,0.000000080,0.000000079,0.000000081,10
1,4096,0.000000359,22.801744,182.413955,0.000000363,0.000000009,0.000000391,277,0.000000360,0.000000360,0.000000360,10
1,8192,0.000000712,23.003095,184.024763,0.000000739,0.000000037,0.000000807,127,0.000000716,0.000000715,0.000000769,10

The JSON holds the same as fields, and is what bmb_report(1) reads. Here with a label, to tell two runs on the same machine apart, and the peak as the user knows it, which the report judges the rates by (# peak:, peak_gflops_per_core and peak_gbs): a core's FLOP rate in the routine's precision and the memory bandwidth, never estimated. The routine's arguments are recorded with their defaults (# arguments:, arguments), so that the report keeps a transposed or a lower-triangle run apart.

$ bmb_dgemv -m 512 -M 256:512 -l 'turbo off' --peak-gflops 32 --peak-gbs 40 -o dgemv.json
$ cat dgemv.json
{
  "version": "1.11.0-dev",
  "backend": "openblas",
  "blas": "OpenBLAS 0.3.32 NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Cooperlake MAX_THREADS=128",
  "kernels": "Cooperlake",
  "blas_int_bits": 32,
  "label": "turbo off",
  "peak_gflops_per_core": 32,
  "peak_gbs": 40,
  "verified": true,
  "layout": "row",
  "date": "2026-12-04T15:50:26Z",
  "machine": {
    "cpu": "Intel(R) Xeon(R) 6975P-C",
    "logical_cpus": 4,
    "numa_nodes": 1,
    "caches": [
      {"level": 1, "type": "data", "size_bytes": 49152},
      {"level": 1, "type": "instruction", "size_bytes": 65536},
      {"level": 2, "type": "unified", "size_bytes": 2097152},
      {"level": 3, "type": "unified", "size_bytes": 503316480}
    ],
    "os": "Linux 7.0.0-1018-aws x86_64"
  },
  "run": {
    "command": ["bmb_dgemv", "-m", "512", "-M", "256:512", "-l", "turbo off", "--peak-gflops", "32", "--peak-gbs", "40", "-o", "dgemv.json"],
    "warmup": 1,
    "warmup_time": 0.2,
    "iterations": 10,
    "min_time": 0,
    "max_spread": 0,
    "max_time": 10,
    "cache": "hot",
    "fill": "pattern",
    "align": 64,
    "ld_pad": 0,
    "arguments": {"trans": "N"},
    "compiler": "gcc 15.2.0",
    "cflags": "-g -O2 -fopenmp",
    "cpus_allowed": "0-3",
    "environment": {}
  },
  "routine": "dgemv",
  "dim1_label": "Matrix dim1 (M)",
  "dim2_label": "Matrix dim2 (N)",
  "results": [
    {
      "thread_count": 1,
      "dim1": 512,
      "dim2": 256,
      "time_s": 0.000008061,
      "gflops": 32.522052,
      "gbytes_per_s": 131.358601,
      "calls_per_sample": 12,
      "median_s": 0.000008070,
      "q1_s": 0.000008067,
      "q3_s": 0.000008073,
      "samples": 10
    },
    {
      "thread_count": 1,
      "dim1": 512,
      "dim2": 512,
      "time_s": 0.000044413,
      "gflops": 11.804832,
      "gbytes_per_s": 47.496003,
      "calls_per_sample": 1,
      "median_s": 0.000045047,
      "q1_s": 0.000044772,
      "q3_s": 0.000046202,
      "samples": 10
    }
  ]
}

bmb_report --peak-gflops 76.8 --peak-gbs 120 results/*.json > report.html makes one page of all of them, judged by the machine's peak as its user knows it. These are from results measured on a laptop (Intel Core Ultra 7 155U, WSL2), with OpenBLAS 0.3.26 and BLIS 0.9.0: they show what the page draws, not which library is faster.

The best figure for each routine, and where every series came from.

The report's summary: the best GFLOP/s for ddot, dgemv and dgemm, and a table of the library, CPU, caches, OS, date and files of each series
The summary and the provenance of each series.

Hovering a chart gives the exact values.

ddot GFLOP/s against vector size, OpenBLAS and BLIS, with the L1d, L2 and L3 sizes marked
Performance against size, the caches marked.
dgemm, BLIS relative to OpenBLAS at 8 threads, on a log scale around x1
Each library against the reference.
dgemm GFLOP/s at 1, 2, 4 and 8 threads, with ideal scaling dashed
Thread scaling, against ideal.
dgemv heatmaps of GFLOP/s over M and N, OpenBLAS and BLIS
Every shape of a two-dimension sweep.
dgemv roofline: each size's GFLOP/s against its FLOPs a byte, OpenBLAS and BLIS, under the memory roof
Levels 1 and 2 against the roofs.
dgemm GFLOP/s against size at 1 thread, OpenBLAS and BLIS, under a line at one core's peak, 76.8 GFLOP/s
Level 3 against the peak.

The same ddot command run four times with each library, each run into its own file: a band shows how far the runs spread, and the comparison tells a difference within that noise (a hollow point) from one beyond it (see Repeated runs and noise).

ddot GFLOP/s against vector size, OpenBLAS and BLIS, four runs each, with a band from the fastest run to the slowest
The spread of four runs.
ddot, BLIS relative to OpenBLAS, four runs each: hollow points where the difference is within the noise, filled ones where it is beyond
Hollow: within the noise.

Every row, sortable by any column.

The report's raw data table: routine, series, threads, sizes, time, GFLOP/s, GB/s and file of each point
The raw data table, opened.