dwarf
CPU AMD Ryzen 5 7535HS with Radeon Graphics (12 threads; SIMD kleene Avx2, stree avx2), GPU wgpu, commit dd32835c5b, run 2026-11-27 20:24Z (load average 4.02 at the start).
| graph | vertices | edges | fingerprint | source | BFS depth | reached | weak comps | strong comps | Datalog entries |
| zox-M | 29772 | 59105 | 58b864e73277356d |
851 | 52 | 26759 | 2965 | 15933 | 3 |
| rmat12 | 4096 | 28760 | 28306297a472eb69 |
353 | 5 | 2541 | 1104 | 2029 | 3 |
| rmat22 | 4194304 | 32988662 | 356afcb84b6ccd13 |
119941 | 7 | 1624253 | 2185779 | 2950687 | 3 |
| rmat24 | 16777216 | 132718372 | fdd4e0908f8bb83a |
3790722 | 8 | 5924759 | 9402277 | 12286611 | 3 |
| rmat26 | 67108864 | 532918496 | 20b6f0758088917c |
1919057 | 8 | 21634048 | 40020188 | 50866202 | 3 |
| road2048 | 4194304 | 10063734 | da63d7a1bbb6e9b3 |
362332 | 3843 | 3977928 | 142085 | 142085 | 3 |
| graph | kernel | kleene CPU ms | kleene GPU ms | SuiteSparse+LAGraph ms | plain ms | CPU rate | GPU rate | LAGraph rate | plain rate | unit | runs CPU/GPU/LAGraph/plain | check | detail |
| zox-M | bfs | 0.933 | 22.738 | 5.300 | 0.710 | 63.2 | 2.6 | 11.1 | 83.1 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | from 851: 26759 reached, 52 hops deep; CPU 53 levels, 1 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| zox-M | sssp-hops | 3.343 | 29.503 | - | 0.710 | 17.6 | 2.0 | - | 83.1 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | from 851: 26759 reached, 52 hops deep |
| zox-M | sets64 | 3.470 | 14.835 | - | 34.295 | 748.0 | 174.9 | - | 75.7 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 64 sources, 1177516 (vertex, source) pairs |
| zox-M | sssp-weighted | 4.076 | 64.745 | 21.000 | 2.400 | 14.5 | 0.9 | 2.8 | 24.6 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | weights 1..255, 26759 reached, farthest 6370; LAGraph delta 128, LG_check_sssp passed |
| zox-M | cc | 9.855 | 0.584 | 1.500 | 0.670 | 6.0 | 101.1 | 39.4 | 88.3 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 2965 weak components; LAGraph components Some(2965) |
| zox-M | scc | 2.797 | 15.772 | 21.600 | 1.896 | 21.1 | 3.7 | 2.7 | 31.2 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 15933 strong components; LAGraph components Some(15933) |
| zox-M | closure | - | no GPU kernel | - | 371031554 pairs, over the limit of 50000000 | - | - | - | - | M pairs/s | -/-/-/- | - | not run |
| zox-M | datalog-reach | 0.968 | 20.055 | - | 0.744 | 61.0 | 2.9 | - | 79.4 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 3 entries reach 26806 vertices; CPU plan: reach (kleene-graph BFS) |
| rmat12 | bfs | 0.045 | 2.917 | 0.100 | 0.060 | 625.7 | 9.6 | 280.9 | 467.5 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | from 353: 2541 reached, 5 hops deep; CPU 6 levels, 3 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| rmat12 | sssp-hops | 0.467 | 3.481 | - | 0.060 | 60.1 | 8.1 | - | 467.5 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | from 353: 2541 reached, 5 hops deep |
| rmat12 | sets64 | 0.302 | 2.559 | - | 4.737 | 5953.4 | 702.3 | - | 379.5 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 64 sources, 162636 (vertex, source) pairs |
| rmat12 | sssp-weighted | 1.718 | 7.169 | 2.900 | 0.409 | 16.4 | 3.9 | 9.7 | 68.7 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | weights 1..255, 2541 reached, farthest 514; LAGraph delta 29, LG_check_sssp passed |
| rmat12 | cc | 2.587 | 0.455 | 24.000 | 0.150 | 11.1 | 63.2 | 1.2 | 192.3 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 1104 weak components; LAGraph components Some(1104) |
| rmat12 | scc | 0.344 | 2.713 | 1.300 | 0.207 | 83.5 | 10.6 | 22.1 | 138.9 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 2029 strong components; LAGraph components Some(2029) |
| rmat12 | closure | 759.795 | no GPU kernel | - | 279.286 | 8.4 | - | - | 22.9 | M pairs/s | 5/-/-/5 | EQUAL | t = e+ by masked boolean products: 6393174 pairs |
| rmat12 | datalog-reach | 0.051 | 2.943 | - | 0.077 | 547.0 | 9.5 | - | 364.5 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 3 entries reach 2542 vertices; CPU plan: reach (kleene-graph BFS) |
| rmat22 | bfs | 31.102 | 18.466 | 67.300 | 291.393 | 1043.3 | 1757.3 | 482.1 | 111.4 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | from 119941: 1624253 reached, 7 hops deep; CPU 8 levels, 2 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| rmat22 | sssp-hops | 592.012 | 122.385 | - | 291.393 | 54.8 | 265.1 | - | 111.4 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | from 119941: 1624253 reached, 7 hops deep |
| rmat22 | sets64 | 280.087 | 194.881 | - | 19255.327 | 7298.7 | 10489.8 | - | 106.2 | MTEPS | 5/5/-/2 | CPU EQUAL, GPU EQUAL | 64 sources, 102327894 (vertex, source) pairs |
| rmat22 | sssp-weighted | 1216.448 | 472.018 | 971.800 | 2553.982 | 26.7 | 68.7 | 33.4 | 12.7 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | weights 1..255, 1624253 reached, farthest 829; LAGraph delta 29, LG_check_sssp passed |
| rmat22 | cc | 663.000 | 41.667 | 103.100 | 449.277 | 49.8 | 791.7 | 320.0 | 73.4 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 2185779 weak components; LAGraph components Some(2185779) |
| rmat22 | scc | 1865.804 | 451.379 | 1238.500 | 1323.109 | 17.7 | 73.1 | 26.6 | 24.9 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 2950687 strong components; LAGraph components Some(2950687) |
| rmat22 | datalog-reach | 26.123 | 24.215 | - | 237.624 | 1242.2 | 1340.0 | - | 136.6 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 3 entries reach 1624254 vertices; CPU plan: reach (kleene-graph BFS) |
| rmat24 | bfs | 145.878 | 67.617 | 198.500 | 1439.121 | 896.0 | 1932.9 | 658.4 | 90.8 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | from 3790722: 5924759 reached, 8 hops deep; CPU 9 levels, 3 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| rmat24 | sssp-hops | 2685.695 | 1024.829 | - | 1439.121 | 48.7 | 127.5 | - | 90.8 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | from 3790722: 5924759 reached, 8 hops deep |
| rmat24 | sets64 | 2211.128 | 1380.176 | - | 90624.865 | 3783.1 | 6060.7 | - | 92.3 | MTEPS | 5/5/-/1 | CPU EQUAL, GPU EQUAL | 64 sources, 379184593 (vertex, source) pairs |
| rmat24 | sssp-weighted | 5372.932 | 2711.835 | 3395.800 | 14069.075 | 24.3 | 48.2 | 38.5 | 9.3 | MTEPS | 5/5/5/2 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | weights 1..255, 5924759 reached, farthest 783; LAGraph delta 29, LG_check_sssp passed |
| rmat24 | cc | 3184.313 | 320.831 | 543.900 | 2456.606 | 41.7 | 413.7 | 244.0 | 54.0 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 9402277 weak components; LAGraph components Some(9402277) |
| rmat24 | scc | 10337.091 | 3725.551 | 4885.900 | 6676.049 | 12.8 | 35.6 | 27.2 | 19.9 | MTEPS | 5/5/16/3 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 12286611 strong components; LAGraph components Some(12286611) |
| rmat24 | datalog-reach | 115.187 | 103.708 | - | 1352.813 | 1134.7 | 1260.3 | - | 96.6 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 3 entries reach 5924761 vertices; CPU plan: reach (kleene-graph BFS) |
| rmat26 | bfs | 628.618 | over the GPU limit (532918496 edges > 300000000) | 509.000 | 6277.510 | 835.8 | - | 1032.2 | 83.7 | MTEPS | 5/-/5/4 | EQUAL, LAGraph EQUAL | from 1919057: 21634048 reached, 8 hops deep; CPU 9 levels, 2 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| rmat26 | sssp-hops | 11366.536 | over the GPU limit (532918496 edges > 300000000) | - | 6277.510 | 46.2 | - | - | 83.7 | MTEPS | 5/-/-/4 | EQUAL | from 1919057: 21634048 reached, 8 hops deep |
| rmat26 | sets64 | 8106.796 | over the GPU limit (532918496 edges > 300000000) | - | 397605.454 | 4147.9 | - | - | 84.6 | MTEPS | 5/-/-/1 | EQUAL | 64 sources, 1384579092 (vertex, source) pairs |
| rmat26 | sssp-weighted | 27847.881 | over the GPU limit (532918496 edges > 300000000) | 6028.400 | 60562.818 | 18.9 | - | 87.2 | 8.7 | MTEPS | 1/-/5/1 | EQUAL, LAGraph EQUAL | weights 1..255, 21634048 reached, farthest 792; LAGraph delta 29, LG_check_sssp passed |
| rmat26 | cc | 13653.681 | over the GPU limit (532918496 edges > 300000000) | 2128.900 | 10631.113 | 39.0 | - | 250.3 | 50.1 | MTEPS | 5/-/16/2 | EQUAL, LAGraph EQUAL | 40020188 weak components; LAGraph components Some(40020188) |
| rmat26 | scc | 46404.089 | over the GPU limit (532918496 edges > 300000000) | 23346.600 | 29488.413 | 11.5 | - | 22.8 | 18.1 | MTEPS | 1/-/16/1 | EQUAL, LAGraph EQUAL | 50866202 strong components; LAGraph components Some(50866202) |
| rmat26 | datalog-reach | 492.464 | over the GPU limit (532918496 edges > 300000000) | - | 6092.756 | 1066.9 | - | - | 86.2 | MTEPS | 5/-/-/4 | EQUAL | 3 entries reach 21634049 vertices; CPU plan: reach (kleene-graph BFS) |
| road2048 | bfs | 199.924 | 1899.525 | 412.300 | 181.663 | 49.6 | 5.2 | 24.0 | 54.5 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | from 362332: 3977928 reached, 3843 hops deep; CPU 3844 levels, 0 pulled; LAGraph BFS parent only, LG_check_bfs passed |
| road2048 | sssp-hops | 656.954 | 2361.560 | - | 181.663 | 15.1 | 4.2 | - | 54.5 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | from 362332: 3977928 reached, 3843 hops deep |
| road2048 | sets64 | 18704.180 | 4053.676 | - | 9614.631 | 33.4 | 154.0 | - | 64.9 | MTEPS | 5/5/-/3 | CPU EQUAL, GPU EQUAL | 64 sources, 250609466 (vertex, source) pairs |
| road2048 | sssp-weighted | 968.967 | 5225.247 | 10154.900 | 580.571 | 10.2 | 1.9 | 1.0 | 17.1 | MTEPS | 5/5/5/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | weights 1..255, 3977928 reached, farthest 394312; LAGraph delta 127, LG_check_sssp passed |
| road2048 | cc | 2978.180 | 44.520 | 347.500 | 73.329 | 3.4 | 226.0 | 29.0 | 137.2 | MTEPS | 5/5/16/5 | CPU EQUAL, GPU EQUAL, LAGraph EQUAL | 142085 weak components; LAGraph components Some(142085) |
| road2048 | scc | 425.225 | 24490.464 | failed (signal: 15 (SIGTERM)): / SCC: nthreads: 12 trial: 0 time: 160.8616 sec / SCC: nthreads: 12 trial: 1 time: 186.8496 sec | 265.037 | 23.7 | 0.4 | - | 38.0 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 142085 strong components |
| road2048 | datalog-reach | 204.349 | 993.919 | - | 146.154 | 48.5 | 10.0 | - | 67.8 | MTEPS | 5/5/-/5 | CPU EQUAL, GPU EQUAL | 3 entries reach 3977928 vertices; CPU plan: reach (kleene-graph BFS) |
| zox-M indexes | index-addr-func | 39.9 ns/q | - | - | 41.3 ns/q | 25.1 | - | - | 24.2 | M queries/s | 5/-/-/5 | EQUAL | 24244 functions, static search tree (batched) vs binary search; indexes built in 93.2 ms |
| zox-M indexes | index-reach | 16.0 ns/q | - | - | 196070.1 ns/q | 62.6 | - | - | 0.0 | M queries/s | 5/-/-/5 | EQUAL | inst_icall_inst: 15933 components, 56851 label entries; checked on 2000 pairs |
| zox-M indexes | index-site | 2.7 ns/q | - | - | 79653.4 ns/q | 367.2 | - | - | 0.0 | M queries/s | 5/-/-/5 | EQUAL | 123 syscall sites over 29772 instructions; checked on 2000 queries |
| zox-M indexes | index-why | 270.2 ns/q | - | - | 362682.3 ns/q | 3.7 | - | - | 0.0 | M queries/s | 5/-/-/5 | EQUAL | from entry 26890: 26769 reached; every chain checked (edges, shortest length) |
| zox-M indexes | index-scope | 171.9 ns/q | - | - | 23001.1 ns/q | 5.8 | - | - | 0.0 | M queries/s | 5/-/-/5 | EQUAL | 31124 scope ranges, static interval tree vs scan; checked on 1024 addresses |
CPU kernels measured again
The CPU backend got algorithms of its own for the kernels it was weakest at. Each was measured again here after it landed, with kleene benchmark --kernels <kernel>: the same graphs, thread count (12, in a unit capped at 16 GB) and brake. Before is the table above (commit dd32835c5b); the LAGraph column is that run's. Every row is checked equal to the plain reference again.
| graph | kernel | algorithm now | before ms | after ms | faster | SuiteSparse+LAGraph ms | after / LAGraph | plain ms | commit | run | check |
| rmat24 | cc | Afforest | 3184.313 | 157.907 | 20.2x | 543.900 | 3.4x faster | 2249.857 | e6f7775ad6 |
2026-11-28 10:17Z, load average 4.36 | EQUAL |
| rmat26 | cc | Afforest | 13653.681 | 695.364 | 19.6x | 2128.900 | 3.1x faster | 10456.556 | e6f7775ad6 |
2026-11-28 10:17Z, load average 4.36 | EQUAL |
| road2048 | cc | Afforest | 2978.180 | 20.559 | 144.9x | 347.500 | 16.9x faster | 72.269 | e6f7775ad6 |
2026-11-28 10:17Z, load average 4.36 | EQUAL |
| rmat24 | sssp-weighted | delta-stepping, bucket fusion | 5372.932 | 1978.254 | 2.7x | 3395.800 | 1.7x faster | 19008.331 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| rmat26 | sssp-weighted | delta-stepping, bucket fusion | 27847.881 | 7788.673 | 3.6x | 6028.400 | 1.3x slower | 83423.302 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| road2048 | sssp-weighted | delta-stepping, bucket fusion | 968.967 | 946.307 | 1.0x | 10154.900 | 10.7x faster | 645.308 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| rmat24 | sssp-hops | delta-stepping, bucket fusion | 2685.695 | 1446.698 | 1.9x | - | - | 1792.525 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| rmat26 | sssp-hops | delta-stepping, bucket fusion | 11366.536 | 6810.420 | 1.7x | - | - | 8187.391 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| road2048 | sssp-hops | delta-stepping, bucket fusion | 656.954 | 530.307 | 1.2x | - | - | 199.903 | 40ce3e8f43 |
2026-11-28 10:57Z, load average 10.54 | EQUAL |
| rmat24 | scc | Multistep | 10337.091 | 633.939 | 16.3x | 4885.900 | 7.7x faster | 6662.302 | cb7159bdee |
2026-11-28 12:18Z, load average 8.51 | EQUAL |
| rmat26 | scc | Multistep | 46404.089 | 2781.356 | 16.7x | 23346.600 | 8.4x faster | 29203.296 | cb7159bdee |
2026-11-28 12:18Z, load average 8.51 | EQUAL |
| road2048 | scc | Multistep | 425.225 | 370.625 | 1.1x | failed (SIGTERM) | - | 299.115 | cb7159bdee |
2026-11-28 12:18Z, load average 8.51 | EQUAL |
| rmat24 | sssp-weighted | delta-stepping, bucket fusion (quiet host) | 5372.932 | 1124.175 | 4.8x | 3395.800 | 3.0x faster | 13066.905 | cb7159bdee |
2026-11-28 12:27Z, load average 0.46 | EQUAL |
| rmat26 | sssp-weighted | delta-stepping, bucket fusion (quiet host) | 27847.881 | 4729.037 | 5.9x | 6028.400 | 1.3x faster | 60860.144 | cb7159bdee |
2026-11-28 12:27Z, load average 0.46 | EQUAL |
| road2048 | sssp-weighted | delta-stepping, bucket fusion (quiet host) | 968.967 | 718.143 | 1.3x | 10154.900 | 14.1x faster | 632.881 | cb7159bdee |
2026-11-28 12:27Z, load average 0.46 | EQUAL |
GAP kernels: PageRank, betweenness, triangles (CPU against LAGraph)
kleene benchmark --kernels pagerank,bc,tc at 158fa85925 on the same graphs, 12 threads, LAGraph built as above (gappagerank_demo, bc_demo, tc_demo), run 2026-11-28 11:35Z, load average 5.37 at the start; rmat26 left out of this run (expected to exceed dwarf's 16 GB job cap with the undirected graph beside the suite's matrices; not tried) and loki not run yet. Medians in ms; every kleene answer checked against the plain reference (PageRank bit for bit with its rounds, betweenness within 1e-9, the triangle count exactly); LAGraph checked on its rounds and exact triangle count (bc_demo prints no scores). Raw rows: bench/dwarf-gap.json.
| graph | kernel | kleene CPU ms | LAGraph ms | kleene vs LAGraph | plain ms | runs CPU/LAGraph/plain | check | detail |
| zox-M | pagerank | 1.939 | 3.400 | 1.8x faster | 5.290 | 5/16/5 | EQUAL, LAGraph EQUAL | damping 0.85, tolerance 1e-4: 19 rounds; LAGr_PageRankGAP 19 rounds |
| zox-M | bc | 7.102 | 13.400 | 1.9x faster | 6.033 | 5/5/5 | EQUAL, LAGraph EQUAL | Brandes from [851, 3385, 20048, 27417]: the highest score 80207.0; LAGr_Betweenness, batches of 4 (its scores are not printed: not compared) |
| zox-M | tc | 1.221 | 2.239 | 1.8x faster | 2.683 | 5/3/5 | EQUAL, LAGraph EQUAL | 9033 triangles over 59048 undirected edges; CPU renumbered by falling degree; LAGr_TriangleCount (Sandia_LUT, auto-sort) Some(9033) triangles |
| rmat12 | pagerank | 1.024 | 0.900 | 1.1x slower | 0.948 | 5/16/5 | EQUAL, LAGraph EQUAL | damping 0.85, tolerance 1e-4: 28 rounds; LAGr_PageRankGAP 28 rounds |
| rmat12 | bc | 1.129 | 1.600 | 1.4x faster | 0.869 | 5/5/5 | EQUAL, LAGraph EQUAL | Brandes from [353, 117, 2758, 3246]: the highest score 2595.1; LAGr_Betweenness, batches of 4 (its scores are not printed: not compared) |
| rmat12 | tc | 2.979 | 3.071 | 1.0x faster | 5.564 | 5/3/5 | EQUAL, LAGraph EQUAL | 137831 triangles over 26689 undirected edges; CPU renumbered by falling degree; LAGr_TriangleCount (Sandia_LUT, auto-sort) Some(137831) triangles |
| rmat22 | pagerank | 643.991 | 554.400 | 1.2x slower | 3531.794 | 5/16/5 | EQUAL, LAGraph EQUAL | damping 0.85, tolerance 1e-4: 24 rounds; LAGr_PageRankGAP 24 rounds |
| rmat22 | bc | 1125.162 | 610.000 | 1.8x slower | 4857.873 | 5/5/5 | EQUAL, LAGraph EQUAL | Brandes from [119941, 2184224, 2050015, 1233797]: the highest score 1625104.7; LAGr_Betweenness, batches of 4 (its scores are not printed: not compared) |
| rmat22 | tc | 17541.537 | 8931.612 | 2.0x slower | 98370.231 | 5/3/1 | EQUAL, LAGraph EQUAL | 454775489 triangles over 32623741 undirected edges; CPU renumbered by falling degree; LAGr_TriangleCount (Sandia_LUT, auto-sort) Some(454775489) triangles |
| rmat24 | pagerank | 3848.782 | 3100.000 | 1.2x slower | 16667.481 | 5/16/2 | EQUAL, LAGraph EQUAL | damping 0.85, tolerance 1e-4: 23 rounds; LAGr_PageRankGAP 23 rounds |
| rmat24 | bc | 5320.829 | 2519.300 | 2.1x slower | 20997.170 | 5/5/1 | EQUAL, LAGraph EQUAL | Brandes from [3790722, 5669299, 8200063, 4935191]: the highest score 5932768.7; LAGr_Betweenness, batches of 4 (its scores are not printed: not compared) |
| rmat24 | tc | 122209.574 | 68734.026 | 1.8x slower | 627986.823 | 1/3/1 | EQUAL, LAGraph EQUAL | 2130444546 triangles over 131715093 undirected edges; CPU renumbered by falling degree; LAGr_TriangleCount (Sandia_LUT, auto-sort) Some(2130444546) triangles |
| road2048 | pagerank | 288.454 | 1317.000 | 4.6x faster | 1581.058 | 5/16/5 | EQUAL, LAGraph EQUAL | damping 0.85, tolerance 1e-4: 39 rounds; LAGr_PageRankGAP 39 rounds |
| road2048 | bc | 2505.779 | 4253.700 | 1.7x faster | 1755.030 | 5/5/5 | EQUAL, LAGraph EQUAL | Brandes from [362332, 119941, 476922, 2824399]: the highest score 3752436.7; LAGr_Betweenness, batches of 4 (its scores are not printed: not compared) |
| road2048 | tc | 15.132 | 133.346 | 8.8x faster | 37.141 | 5/3/5 | EQUAL, LAGraph EQUAL | 0 triangles over 5031867 undirected edges; CPU in vertex order; LAGr_TriangleCount (Sandia_LUT, auto-sort) Some(0) triangles |
GAP kernels measured again after the CPU rework
kleene benchmark --kernels pagerank,bc and then --kernels tc at b36d53c4af on the same host, graphs, 12 threads and brake (spd5118:70), each run on its own with dwarf's quiet lock held and the 1-minute load below 1.5 at the start; LAGraph's column is that run's (its own times moved too: road2048 PageRank 1317 -> 351 ms, triangles 133 -> 35 ms, rmat24 triangles 68.7 -> 54.1 s). Medians in ms; the same checks as above. Raw rows: bench/dwarf-gap-again.json. Loki is not run again: its rows for these kernels are owed.
| graph | kernel | how | CPU ms before | CPU ms after | speed-up | LAGraph ms before | LAGraph ms now | kleene vs LAGraph now | plain ms | commit | run | check |
| rmat22 | pagerank | one pass a round, edge pieces, shares by falling degree | 643.991 | 444.296 | 1.4x | 554.400 | 562.700 | 1.3x faster | 3921.325 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| rmat24 | pagerank | one pass a round, edge pieces, shares by falling degree | 3848.782 | 2691.022 | 1.4x | 3100.000 | 3086.500 | 1.1x faster | 18161.851 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| road2048 | pagerank | one pass a round, edge pieces, shares by falling degree | 288.454 | 265.621 | 1.1x | 1317.000 | 351.200 | 1.3x faster | 1569.711 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| rmat22 | bc | 4 sources a batch, packed depths, Beamer pull | 1125.162 | 494.868 | 2.3x | 610.000 | 625.800 | 1.3x faster | 4785.220 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| rmat24 | bc | 4 sources a batch, packed depths, Beamer pull | 5320.829 | 2510.871 | 2.1x | 2519.300 | 2658.900 | 1.1x faster | 20797.679 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| road2048 | bc | 4 sources a batch, packed depths, Beamer pull | 2505.779 | 2314.968 | 1.1x | 4253.700 | 4177.100 | 1.8x faster | 1766.092 | b36d53c4af |
2026-11-28 16:08Z, load average 1.31 | EQUAL, LAGraph EQUAL |
| rmat22 | tc | bit set per worker, shared chunks of 64 | 17541.537 | 2370.591 | 7.4x | 8931.612 | 8859.742 | 3.7x faster | 98572.904 | b36d53c4af |
2026-11-28 16:50Z, load average 1.49 | EQUAL, LAGraph EQUAL |
| rmat24 | tc | bit set per worker, shared chunks of 64 | 122209.574 | 15114.646 | 8.1x | 68734.026 | 54117.949 | 3.6x faster | 633893.388 | b36d53c4af |
2026-11-28 16:50Z, load average 1.49 | EQUAL, LAGraph EQUAL |
| road2048 | tc | bit set per worker, shared chunks of 64 | 15.132 | 13.157 | 1.2x | 133.346 | 35.130 | 2.7x faster | 37.249 | b36d53c4af |
2026-11-28 16:50Z, load average 1.49 | EQUAL, LAGraph EQUAL |
PageRank and betweenness measured a third time (betweenness backward pass)
kleene benchmark --kernels pagerank,bc on dwarf at 33cd944 (betweenness: the backward pass adds the dependencies to the scores and the path state halves) with 5665ccc (--lagraph-limit), built on dwarf (the raw rows say 2836806694-dirty: the build clone's own HEAD), run 2026-11-28 20:11-20:18Z with the quiet lock held, load average 1.37 at the start, 12 threads, brake spd5118:70, LAGraph 1.2.2 (gappagerank_demo, bc_demo) in the same window. "Before" is the b36d53c4af run of the section above. Every kleene answer is checked against the plain reference (PageRank bit for bit with its rounds, betweenness within 1e-9); LAGraph is checked on its rounds (bc_demo prints no scores). Raw rows: bench/dwarf-gap-r2a.json.
| graph | kernel | CPU ms before | CPU ms now | speed-up | LAGraph ms now | kleene vs LAGraph now | plain ms | check |
| rmat22 | pagerank | 444.296 | 492.866 | 0.9x | 688.100 | 1.4x faster | 4027.455 | EQUAL, LAGraph EQUAL |
| rmat24 | pagerank | 2691.022 | 2779.160 | 1.0x | 3180.200 | 1.1x faster | 18311.319 | EQUAL, LAGraph EQUAL |
| road2048 | pagerank | 265.621 | 272.634 | 1.0x | 467.700 | 1.7x faster | 1557.191 | EQUAL, LAGraph EQUAL |
| rmat22 | bc | 494.868 | 440.039 | 1.1x | 626.900 | 1.4x faster | 4838.212 | EQUAL, LAGraph EQUAL |
| rmat24 | bc | 2510.871 | 2078.878 | 1.2x | 2708.500 | 1.3x faster | 21359.825 | EQUAL, LAGraph EQUAL |
| road2048 | bc | 2314.968 | 2241.480 | 1.0x | 4212.600 | 1.9x faster | 1750.257 | EQUAL, LAGraph EQUAL |
PageRank's code did not change between the two runs: its rmat22 row (444 -> 493 ms, LAGraph 563 -> 688 ms in the same windows) is run to run spread of this host, which moved both columns the same way.
Graphalytics kernels: label propagation (CDLP) and the local clustering coefficient (LCC)
kleene benchmark --kernels cdlp,lcc on dwarf, one graph a window (quiet lock held, load below 1.5 at the start), 12 threads, brake spd5118:70, LAGraph's experimental/benchmark cdlp_demo and lcc_demo (1.2.2) as its column. The binaries were built on oden from the trees named (the raw rows say 2836806694-dirty: the build clone's own stale HEAD). kleene's labels are checked against a plain one-thread CDLP with the same rounds (Graphalytics' rule: the smallest of the most frequent labels, at most 100 rounds, stopping after a round that changes nothing; neither graph settles before 100) and its coefficients exactly against a plain LCC; LAGraph's cells are checked by the demos themselves (LAGraph_cdlp against LAGraph_cdlp_withsort, LAGraph_lcc against LG_check_lcc; neither prints its values). cdlp_demo takes over two minutes a trial on these graphs and is stopped at the 10 minute limit; its finished trials come from its stderr. rmat24 not run: cdlp_demo alone would hold the quiet lock past 10 minutes. Raw rows: bench/dwarf-graphalytics.json. loki not run.
| graph | kernel | kleene CPU ms | LAGraph ms | kleene vs LAGraph | plain ms | runs CPU/LAGraph/plain | commit | run | check | detail |
| rmat22 | cdlp | 3633.251 | 133056.650 | 36.6x faster | 78246.574 | 5/2/1 | e588c2c (built as 1995566) |
2026-11-28 18:52Z, load average 1.45 | EQUAL, LAGraph EQUAL | label propagation, at most 100 rounds: 100 rounds, 2188712 communities; LAGraph_cdlp, at most 100 rounds, checked by the demo against LAGraph_cdlp_withsort (its labels are not printed: not compared); stopped at the 10 min limit after 2 timed trials |
| rmat22 | lcc | 2730.619 | 31193.801 | 11.4x faster | 64291.970 | 5/3/1 | e588c2c (built as 1995566) |
2026-11-28 18:52Z, load average 1.45 | EQUAL, LAGraph EQUAL | mean coefficient 0.012741, 783078 vertices above 0; LAGraph_lcc, checked by the demo against LG_check_lcc (largest difference 0; its coefficients are not printed: not compared) |
| road2048 | cdlp | 2205.288 | 114424.624 | 51.9x faster | 12366.347 | 5/3/2 | 8ace930 (built as dfd68b0) |
2026-11-28 17:59Z, load average 1.39 | EQUAL, LAGraph EQUAL | label propagation, at most 100 rounds: 100 rounds, 1171951 communities; LAGraph_cdlp, at most 100 rounds, checked by the demo against LAGraph_cdlp_withsort (its labels are not printed: not compared) |
| road2048 | lcc | 46.267 | 60.419 | 1.3x faster | 318.376 | 5/3/5 | e588c2c (built as 1995566) |
2026-11-28 18:24Z, load average 1.31 | EQUAL, LAGraph EQUAL | mean coefficient 0.000000, 0 vertices above 0; LAGraph_lcc, checked by the demo against LG_check_lcc (largest difference -inf; its coefficients are not printed: not compared) |
road2048 lcc measured first at 8ace930 (built as dfd68b0): 226.538 ms against LAGraph's 62.315 ms; the lists made in one merge and the serial passes moved to the workers (e588c2c) brought it to 46.267 ms.
Cells owed: CC on zox-M and rmat22 since Afforest, CDLP and LCC on rmat24
kleene benchmark at d6c1763 on dwarf, 12 threads, brake spd5118:70, a unit capped at 16 GB, the quiet lock held: --kernels cc --graphs zox,rmat22 with LAGraph's cc_demo (1.2.2) in the same window (run 2026-11-28 23:35Z, load average 0.90 at the start), and --kernels cdlp,lcc --graphs rmat24 --lagraph-limit 45 (23:36Z, load average 1.31). Every kleene answer is checked against the plain reference (CDLP's labels with the same 100 rounds, LCC exactly); LAGraph's component counts match. Raw rows: bench/dwarf-cc-again.json, bench/dwarf-graphalytics-rmat24.json.
| graph | kernel | kleene CPU ms | LAGraph ms | kleene vs LAGraph | plain ms | runs CPU/LAGraph/plain | check | detail |
| zox-M | cc | 0.804 | 1.700 | 2.1x faster | 0.865 | 5/16/5 | EQUAL, LAGraph EQUAL | 2965 weak components (first table: CPU 9.855 ms before Afforest, LAGraph 1.500) |
| rmat22 | cc | 26.740 | 212.000 | 7.9x faster | 441.810 | 5/16/5 | EQUAL, LAGraph EQUAL | 2185779 weak components (first table: CPU 663.000 ms before Afforest, LAGraph 103.100 in a window with other lanes compiling) |
| rmat24 | cdlp | 24600.003 | not measured | - | 442878.707 | 5/-/1 | EQUAL | 100 rounds, 9408860 communities |
| rmat24 | lcc | 18761.037 | not measured | - | 378315.097 | 5/-/1 | EQUAL | mean coefficient 0.007931, 2560454 vertices above 0 |
LAGraph on rmat24 was stopped by hand: cdlp_demo held dwarf's RAM at 82 °C (limit 70; the brake only checks between kernels) and had finished no trial after 8.5 minutes, and lcc_demo started at 79 °C; both were stopped (SIGTERM) under the 70 °C rule, so these two cells have no LAGraph column. At rmat22 its trials took 133 s (CDLP) and 31 s (LCC).
GPU on small graphs (Radeon 660M), measured again with the adapter recorded
The first version of this section (runs of 2026-11-28 17:34Z and 19:47Z, 083dd79 and 95d1a59) did not run on the GPU. Its runs could not open /dev/dri/renderD128 (the lane's user was not yet in the render group), so wgpu fell back to llvmpipe, Mesa's Vulkan on the CPU, and named nothing but wgpu<spirv>. Its times match llvmpipe measured now within about 10 % and are 3-10x slower than the GPU's, and llvmpipe fails rmat24 with the same "can't allocate buffer of size: 530873504" (the GPU runs it). Its conclusion, that the CPU won every kernel up to rmat22, was llvmpipe's. The host table's GPU column at the top of this page (dd32835, 2026-11-27) was the real GPU: rmat22 CC 41.7 ms then against 36.1 ms now (llvmpipe 390 ms), SCC 451 against 373 (llvmpipe 1303), rmat24 CC 321 against 322. RADV names the GPU a Radeon 660M (the 7535HS's iGPU), not a 680M as these pages said.
Since a7ee3a5 every GPU test and benchmark run prints the adapter and its kind (the host line below says integrated GPU), a software device fails the GPU tests, and kleene benchmark writes no GPU column on one unless --gpu-software asks for it. The runs below are system units (sudo systemd-run --uid, capped at 16 GB, brake spd5118:70), which get the user's groups as they are now; units of the user's own systemd manager, started before the group change, still have no render and still get llvmpipe.
GPU forced (KLEENE_GPU_CPU_BELOW_EDGES=0, CUBECL_WGPU_DEFAULT_DEVICE=IntegratedGpu(0)), 12 threads, trials 5, commit a7ee3a5, run 2026-11-29 00:19Z-00:25Z (load average 3.68 at the start, 1.41 at the end), under the quiet lock. Each cell is kleene CPU ms / 660M ms, the faster in bold; every cell is checked equal to the plain reference.
| graph | edges | bfs | sssp-hops | sssp-weighted | sets64 | cc | scc | datalog-reach |
| rmat12 | 28760 | 0.049 / 3.032 | 0.111 / 3.288 | 0.614 / 7.848 | 0.333 / 2.082 | 0.121 / 0.477 | 0.394 / 3.057 | 0.031 / 3.033 |
| rmat14 | 119806 | 0.176 / 3.106 | 0.285 / 3.179 | 1.634 / 7.869 | 1.453 / 2.747 | 0.427 / 0.537 | 0.780 / 2.684 | 0.230 / 2.723 |
| rmat16 | 494438 | 0.370 / 4.281 | 0.594 / 5.277 | 3.582 / 10.593 | 8.278 / 4.293 | 0.828 / 0.779 | 1.753 / 4.022 | 0.406 / 2.902 |
| rmat18 | 2017227 | 1.403 / 4.972 | 2.059 / 8.513 | 13.963 / 22.255 | 41.655 / 8.890 | 1.663 / 1.955 | 6.175 / 11.397 | 1.279 / 4.059 |
| rmat20 | 8175389 | 5.326 / 7.449 | 8.352 / 27.914 | 43.840 / 65.815 | 65.366 / 34.824 | 5.731 / 8.006 | 28.196 / 75.050 | 5.237 / 7.450 |
| rmat22 | 32988662 | 18.413 / 17.524 | 31.828 / 142.788 | 241.720 / 296.914 | 274.720 / 184.914 | 27.774 / 36.064 | 123.061 / 373.136 | 24.741 / 18.797 |
| road256 | 156666 | 1.528 / 206.071 | 1.472 / 266.834 | 5.475 / 516.027 | 3.998 / 103.581 | 0.623 / 0.816 | 3.801 / 198.942 | 1.602 / 115.832 |
| road512 | 626884 | 0.044 / 1.619 | 0.191 / 2.174 | 0.901 / 1.989 | 18.226 / 291.603 | 1.245 / 2.087 | 16.812 / 609.874 | 8.463 / 214.171 |
| road1024 | 2513276 | 36.839 / 689.000 | 35.765 / 869.519 | 113.719 / 1964.701 | 91.766 / 952.878 | 5.233 / 7.463 | 77.292 / 2824.268 | 40.315 / 459.698 |
On this iGPU the CPU's 12 threads win most kernels at every size. The GPU wins the 64-source sets from rmat16 (494438 edges) up (rmat18 41.7 / 8.9 ms), is ahead by 5 % on rmat22 BFS and by 32 % on its Datalog reach, and is level on rmat16 CC. The road grids lose every kernel but CC (depth: a launch a level). rmat24 (3 trials): BFS 85.5 / 61.7 ms, CC 161.2 / 321.7 ms.
PageRank on the 660M, after 7d0e67a (before it, RADV read each row's old score back as its new one, so the change was 0 and the rounds stopped after one; the GPU tests had never taken that path): GPU forced, 12 threads, trials 5, run 2026-11-29 00:58Z-01:00Z (load average 5.13 at the start), under the quiet lock. The change is summed in f64 (RADV has it).
| graph | edges | rounds | kleene CPU ms | 660M ms | plain ms | check |
| rmat12 | 28760 | 28 | 1.291 | 4.292 | 0.975 | EQUAL (L1 6.0e-8) |
| rmat14 | 119806 | 27 | 3.397 | 5.151 | 7.559 | EQUAL (L1 7.2e-8) |
| rmat16 | 494438 | 26 | 7.567 | 8.918 | 36.192 | EQUAL (L1 7.8e-8) |
| rmat18 | 2017227 | 25 | 25.086 | 24.323 | 133.166 | EQUAL (L1 7.4e-8) |
| rmat20 | 8175389 | 25 | 91.058 | 106.655 | 567.462 | EQUAL (L1 9.8e-8) |
| rmat22 | 32988662 | 24 | 463.492 | 521.013 | 3872.976 | EQUAL (L1 1.1e-7) |
| rmat24 | 132718372 | 23 | 2750.784 | 3846.460 | 18126.028 | EQUAL (L1 1.4e-7) |
| road256 | 156666 | 39 | 11.021 | 6.607 | 25.743 | EQUAL (L1 1.3e-7) |
| road512 | 626884 | 39 | 23.791 | 12.367 | 95.456 | EQUAL (L1 1.3e-7) |
| road1024 | 2513276 | 39 | 64.163 | 31.012 | 385.827 | EQUAL (L1 1.3e-7) |
PageRank on the 660M loses on R-MAT (level on rmat18, 1.4x slower on rmat24) and wins on the road grids (1.7-2.1x), where the rows are short and even.
llvmpipe against the first version of this section and the 660M (GPU ms; llvmpipe timed with --gpu-software, trials 3, commit a7ee3a5, 00:25Z-00:27Z):
| graph | kernel | first version (083dd79) |
llvmpipe now | 660M now |
| rmat12 | cc | 1.018 | 1.117 | 0.477 |
| rmat18 | bfs | 11.965 | 12.736 | 4.972 |
| rmat18 | cc | 22.147 | 22.644 | 1.955 |
| rmat18 | scc | 55.223 | 63.913 | 11.397 |
| rmat18 | sets64 | 34.996 | 34.878 | 8.890 |
| rmat22 | bfs | 100.848 | 103.798 | 17.524 |
| rmat22 | cc | 369.545 | 390.468 | 36.064 |
| rmat22 | scc | 1355.351 | 1302.848 | 373.136 |
| rmat22 | sssp-weighted | 812.472 | 848.697 | 296.914 |
| road256 | cc | 5.497 | 5.283 | 0.816 |
| road256 | scc | 571.688 | 603.131 | 198.942 |
| rmat24 | cc | failed: can't allocate buffer of size: 530873504 | failed: the same | 321.678 |
BFS and hop counts measured again after direction-optimizing search
kleene benchmark --kernels bfs,sssp-hops on dwarf with the quiet lock held (load below 1.5 at each start), 12 threads in a unit capped at 16 GB (no swap), brake spd5118:70. Before is main just before the change (0189376e6e, run 2026-11-28 18:39Z, load average 1.42), measured the same way; after is 9c36a9646d (run 19:10Z, load average 1.44), with LAGraph's bfs_demo (1.2.2) as its column. Every row is checked equal to the plain reference; LAGraph's BFS passes LG_check_bfs. The levels are the generic search's: rmat24 9 levels, 3 pulled; rmat26 9, 2 pulled; road2048 3844, none pulled.
| graph | kernel | algorithm now | before ms | after ms | faster | SuiteSparse+LAGraph ms | after / LAGraph | plain ms | commit | run | check |
| rmat24 | bfs | direction-optimizing (Beamer) | 136.960 | 80.252 | 1.7x | 135.600 | 1.7x faster | 1447.518 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL, LAGraph EQUAL |
| rmat26 | bfs | direction-optimizing (Beamer) | 653.905 | 283.194 | 2.3x | 426.700 | 1.5x faster | 6355.432 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL, LAGraph EQUAL |
| road2048 | bfs | direction-optimizing (Beamer) | 232.579 | 196.895 | 1.2x | 416.700 | 2.1x faster | 200.317 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL, LAGraph EQUAL |
| rmat24 | sssp-hops | direction-optimizing levels, least parents | 871.557 | 161.943 | 5.4x | - | - | 1447.518 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL |
| rmat26 | sssp-hops | direction-optimizing levels, least parents | 3779.780 | 606.131 | 6.2x | - | - | 6355.432 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL |
| road2048 | sssp-hops | direction-optimizing levels, least parents | 375.998 | 207.913 | 1.8x | - | - | 200.317 | 9c36a9646d |
2026-11-28 19:10Z, load average 1.44 | EQUAL |
Beamer's alpha and beta, --kernels bfs with the same binary and the two read from the environment (a scratch build, not on main), one quiet window, runs 19:56-20:10Z at load averages 1.27-1.43, ms:
| alpha / beta | rmat24 | rmat26 | road2048 |
| 14 / 24, three runs | 80.9, 84.1, 84.2 | 301.1, 290.4, 305.2 | 200.1, 197.1, 199.6 |
| 20 / 24, three runs | 82.5, 85.9, 83.3 | 295.9, 293.2, 292.8 | 199.4, 197.5, 202.0 |
| 14 / 12 | 84.5 | 293.3 | 200.6 |
| 14 / 18 | 87.0 | 302.7 | 201.5 |
| 14 / 48 | 87.2 | 296.6 | 197.3 |
Every setting switches at the same levels (3, 2 and 0 pulled), so the differences are run to run noise (within 4 %): alpha 14 and beta 24 stay.
Raw matrix operations against SuiteSparse:GraphBLAS alone
kleene benchmark --kernels ops --gpu --graphblas grb_ops on dwarf: kleene-sparse's mxv_into (pull), vxm_into (push) and mxm against SuiteSparse:GraphBLAS 10.5.3 with no LAGraph in between, 12 threads both, brake spd5118:70, a unit capped at 16 GB, the quiet lock held (load average below 1.5 at the start), median of 5 trials after a warm-up (every trial in the JSON). "Before" is 112da6a (run 2026-11-28 22:37Z, load average 1.37); "after" is d6c1763 (23:29Z, load average 1.45), whose SuiteSparse column is given (SuiteSparse's own times moved between the two windows: by 7 % at the median of its cells above 10 ms, by up to 1.8x on some (road2048 min-plus vxm 12.5 -> 22.4 ms) and 2x on cells below 10 ms; a ratio near 1 here is within that spread). The driver is grb_ops.c (kept outside the repository: the C side is not part of kleene), built on dwarf with cc -O3 -march=native -fopenmp against the install in ~/lanes/kb-lane/ext/install; it reads the .kxcsr file kleene writes of each graph, builds the same operands (x every place, or about one place in 64, values i % 7 + 1) and times GrB_mxv, GrB_vxm and GrB_mxm (masked by A's structure with GrB_DESC_S). Every answer of both sides is checked by its checksum against a plain one-thread loop. A² on rmat22 and rmat24 is over the multiply-add limits (2^28 unmasked, 2^32 masked) and not run; rmat26 is not run (A, its transpose, the weights and SuiteSparse's copy do not fit the 16 GB cap). The GPU column is a third window, at fa63b9b (2026-11-29 01:11Z, load average 1.38), on the adapter that run names: AMD Radeon 660M (RADV REMBRANDT), integrated, run from a unit started by the system manager (sudo -n systemd-run --uid=rickard); the GPU backend has kernels for or-and and min-plus only. The GPU column first published here (runs 22:37Z and 23:29Z) was not the GPU: those units ran under the user manager, which had no access to the render node, so wgpu ran on llvmpipe (Vulkan in software on the CPU), and its failure on rmat24 ("can't allocate buffer of size: 530873504") was llvmpipe's. Those numbers are dropped. Raw rows of the GPU window: bench/dwarf-ops-gpu.json. Raw rows: bench/dwarf-ops.json (after) and bench/dwarf-ops-before.json.
| graph | op | kleene CPU ms before | kleene CPU ms after | kleene GPU ms (Radeon 660M) | SuiteSparse ms | after vs SuiteSparse | plain ms | check |
| zox-M | mxv-bool-dense | 0.523 | 0.386 | 0.267 | 0.216 | 1.8x slower | 0.447 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | mxv-bool-sparse | 0.448 | 0.444 | 0.285 | 6.082 | 13.7x faster | 0.347 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-bool-dense | 1.014 | 0.990 | 0.429 | 0.739 | 1.3x slower | 0.543 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-bool-sparse | 0.010 | 0.009 | 0.263 | 0.034 | 3.6x faster | 0.030 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | mxv-f64-dense | 0.565 | 0.500 | no GPU kernel | 0.412 | 1.2x slower | 0.461 | EQUAL, SuiteSparse EQUAL |
| zox-M | mxv-f64-sparse | 0.432 | 0.457 | no GPU kernel | 5.369 | 11.8x faster | 0.354 | EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-f64-dense | 0.997 | 1.050 | no GPU kernel | 0.788 | 1.3x slower | 0.944 | EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-f64-sparse | 0.010 | 0.010 | no GPU kernel | 0.043 | 4.3x faster | 0.042 | EQUAL, SuiteSparse EQUAL |
| zox-M | mxv-minplus-dense | 0.529 | 0.497 | 0.279 | 0.308 | 1.6x slower | 0.428 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | mxv-minplus-sparse | 0.457 | 0.465 | 0.228 | 5.254 | 11.3x faster | 0.334 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-minplus-dense | 1.003 | 0.997 | 0.459 | 0.664 | 1.5x slower | 0.585 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | vxm-minplus-sparse | 0.010 | 0.010 | 0.323 | 0.031 | 3.2x faster | 0.039 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| zox-M | mxm-a2 | 1.848 | 1.371 | no GPU kernel | 3.730 | 2.7x faster | 4.515 | EQUAL, SuiteSparse EQUAL |
| zox-M | mxm-a2-masked | 0.448 | 0.967 | no GPU kernel | 2.929 | 3.0x faster | 1.638 | EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-bool-dense | 0.125 | 0.030 | 0.336 | 0.028 | 1.1x slower | 0.084 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-bool-sparse | 0.070 | 0.053 | 0.314 | 1.195 | 22.6x faster | 0.058 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-bool-dense | 0.297 | 0.188 | 0.338 | 0.095 | 2.0x slower | 0.085 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-bool-sparse | 0.002 | 0.002 | 0.328 | 0.009 | 4.5x faster | 0.004 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-f64-dense | 0.088 | 0.055 | no GPU kernel | 0.060 | 1.1x faster | 0.089 | EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-f64-sparse | 0.063 | 0.066 | no GPU kernel | 2.778 | 42.0x faster | 0.056 | EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-f64-dense | 0.209 | 0.206 | no GPU kernel | 0.103 | 2.0x slower | 0.128 | EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-f64-sparse | 0.002 | 0.002 | no GPU kernel | 0.013 | 5.4x faster | 0.006 | EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-minplus-dense | 0.092 | 0.056 | 0.448 | 0.059 | 1.1x faster | 0.078 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | mxv-minplus-sparse | 0.058 | 0.072 | 0.407 | 1.200 | 16.8x faster | 0.058 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-minplus-dense | 0.199 | 0.207 | 0.275 | 0.120 | 1.7x slower | 0.094 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | vxm-minplus-sparse | 0.002 | 0.002 | 0.318 | 0.011 | 4.9x faster | 0.004 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat12 | mxm-a2 | 45.173 | 6.590 | no GPU kernel | 10.340 | 1.6x faster | 22.172 | EQUAL, SuiteSparse EQUAL |
| rmat12 | mxm-a2-masked | 6.344 | 1.142 | no GPU kernel | 24.666 | 21.6x faster | 4.603 | EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-bool-dense | 31.033 | 15.057 | 120.884 | 8.976 | 1.7x slower | 150.022 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-bool-sparse | 14.634 | 15.998 | 46.835 | 136.957 | 8.6x faster | 88.447 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-bool-dense | 92.215 | 67.091 | 138.234 | 49.126 | 1.4x slower | 177.090 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-bool-sparse | 2.929 | 2.880 | 3.605 | 8.321 | 2.9x faster | 9.698 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-f64-dense | 70.627 | 47.477 | no GPU kernel | 45.677 | 1.0x slower | 409.499 | EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-f64-sparse | 23.734 | 25.865 | no GPU kernel | 275.788 | 10.7x faster | 140.149 | EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-f64-dense | 168.907 | 135.907 | no GPU kernel | 101.530 | 1.3x slower | 409.469 | EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-f64-sparse | 7.136 | 5.474 | no GPU kernel | 22.201 | 4.1x faster | 60.375 | EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-minplus-dense | 90.579 | 40.276 | 131.146 | 25.907 | 1.6x slower | 369.185 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | mxv-minplus-sparse | 18.915 | 23.181 | 49.622 | 229.807 | 9.9x faster | 115.852 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-minplus-dense | 86.633 | 89.583 | 143.441 | 52.703 | 1.7x slower | 392.952 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat22 | vxm-minplus-sparse | 3.875 | 3.843 | 3.595 | 6.873 | 1.8x faster | 47.626 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-bool-dense | 253.096 | 78.068 | 689.001 | 22.850 | 3.4x slower | 1533.898 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-bool-sparse | 67.152 | 54.957 | 339.130 | 654.390 | 11.9x faster | 403.360 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-bool-dense | 348.118 | 368.064 | 765.164 | 468.437 | 1.3x faster | 1300.208 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-bool-sparse | 14.553 | 12.679 | 17.299 | 40.275 | 3.2x faster | 45.914 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-f64-dense | 417.304 | 225.120 | no GPU kernel | 258.409 | 1.1x faster | 1983.718 | EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-f64-sparse | 78.752 | 92.575 | no GPU kernel | 1486.220 | 16.1x faster | 612.864 | EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-f64-dense | 586.606 | 595.970 | no GPU kernel | 573.340 | 1.0x slower | 1886.212 | EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-f64-sparse | 22.079 | 23.262 | no GPU kernel | 87.923 | 3.8x faster | 228.607 | EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-minplus-dense | 380.606 | 240.141 | 946.875 | 229.175 | 1.0x slower | 1915.035 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | mxv-minplus-sparse | 78.250 | 91.263 | 357.872 | 1353.377 | 14.8x faster | 552.951 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-minplus-dense | 500.659 | 499.848 | 776.135 | 373.592 | 1.3x slower | 1778.445 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| rmat24 | vxm-minplus-sparse | 17.711 | 20.874 | 17.679 | 45.199 | 2.2x faster | 201.231 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-bool-dense | 23.455 | 22.279 | 9.333 | 8.902 | 2.5x slower | 45.293 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-bool-sparse | 10.931 | 9.219 | 3.653 | 39.727 | 4.3x faster | 37.037 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-bool-dense | 37.368 | 32.669 | 20.760 | 10.914 | 3.0x slower | 61.782 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-bool-sparse | 2.842 | 2.450 | 2.010 | 7.199 | 2.9x faster | 8.711 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-f64-dense | 26.990 | 24.859 | no GPU kernel | 17.640 | 1.4x slower | 52.966 | EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-f64-sparse | 8.827 | 9.403 | no GPU kernel | 48.780 | 5.2x faster | 68.766 | EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-f64-dense | 36.305 | 37.579 | no GPU kernel | 17.141 | 2.2x slower | 124.513 | EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-f64-sparse | 4.544 | 3.714 | no GPU kernel | 22.193 | 6.0x faster | 52.753 | EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-minplus-dense | 25.266 | 23.449 | 9.996 | 5.054 | 4.6x slower | 48.384 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | mxv-minplus-sparse | 13.088 | 13.972 | 3.884 | 36.126 | 2.6x faster | 48.628 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-minplus-dense | 35.839 | 36.190 | 22.313 | 22.389 | 1.6x slower | 100.009 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | vxm-minplus-sparse | 3.352 | 3.299 | 2.187 | 6.746 | 2.0x faster | 43.695 | EQUAL, GPU EQUAL, SuiteSparse EQUAL |
| road2048 | mxm-a2 | 377.027 | 351.160 | no GPU kernel | 158.910 | 2.2x slower | 289.291 | EQUAL, SuiteSparse EQUAL |
| road2048 | mxm-a2-masked | 326.704 | 148.134 | no GPU kernel | 78.872 | 1.9x slower | 126.930 | EQUAL, SuiteSparse EQUAL |
What changed between the two (d6c1763, measured from the "before" run): mxm had made a fresh accumulator the size of a row of the result for each of up to 96 pieces (road2048: 64 MB each, zeroed) and split by rows only, so a small graph with heavy rows ran on one thread; it now cuts pieces of equal multiply-adds and keeps one accumulator per worker (rmat12 A² 45.2 -> 6.6 ms, masked 6.3 -> 1.1 ms, road2048 masked 327 -> 148 ms). mxv with a full operand no longer tests each place, and an or-and row stops at its first true (Semiring::terminal): rmat22 or-and 31.0 -> 15.1 ms, min-plus 90.6 -> 40.3 ms, rmat24 or-and 253 -> 78 ms. zox-M's masked A² (118 thousand multiply-adds) went the other way, 0.45 -> 0.97 ms: twelve workers' accumulators are more than its work.
Where each wins now. kleene wins every product with the sparse operand (one place in 64): mxv by 2.6x (road2048 min-plus) to 42x (rmat12 plus-times), vxm by 1.8x to 6.0x; it reads only the places the operand holds, while SuiteSparse's GrB_mxv with a sparse x still passes over A. kleene wins A² on zox-M and rmat12, masked and unmasked (up to 21.6x masked on rmat12). With a full operand SuiteSparse wins most rows: mxv up to 4.6x (road2048 min-plus; rows of two or three entries, where kleene's per-row output lists cost more than the row, and SuiteSparse writes a bitmap or full vector) and vxm up to 3.0x (road2048 or-and; kleene sends each product through per-thread lists and folds them after). kleene wins a few full-operand rows on rmat24 (mxv plus-times 1.15x, vxm or-and 1.27x). SuiteSparse wins A² on road2048, 2.2x unmasked and 1.9x masked (kleene forms all 28 million products and drops those outside the mask; a product that walks the mask's places instead would form far fewer). On the Radeon 660M one product is a launch and a read-back. It is faster than kleene's CPU on every road2048 row (or-and mxv 9.3 against 20.7 ms, sparse 3.7 against 7.7) and on zox-M's full-operand rows and sparse mxv; slower on rmat12, rmat22 and rmat24 (rmat24 or-and mxv 689 ms against the CPU's 61; the one exception rmat22 min-plus sparse vxm, 3.6 against 4.0 ms) and on zox-M's sparse vxm. On the sparse-operand mxv rows it is faster than SuiteSparse on every graph.
What would close the rest, not done: a full output written in place (a dense vector with its places as a bitmap) for mxv and vxm when the operand is full; for vxm with a full operand, the pull over a kept transpose; a masked mxm that walks the mask's places (dot products) when the mask holds fewer places than the products.
Raw matrix operations again: full operands in place, a kept transpose, masked dot products
kleene benchmark --kernels ops --graphblas grb_ops on dwarf as above (12 threads both, brake spd5118:70, a unit capped at 16 GB, the quiet lock held, load average below 1.5 at each start, trials 7 after a warm-up), in six windows of 2026-11-29 that alternate the two binaries: after, before, before, after, after, before (06:48Z to 07:24Z, load 1.28 to 1.49). Each cell is the median of its three windows; the SuiteSparse column the median of all six. "Before" is the kleene-sparse of 87ab621; "after" is 0cc12c6: mxv_into and vxm_into with a full operand write the result densely in place (8659dab, 7a0fb32), vxm_into with a full operand pulls over the matrix's transpose kept in the workspace from the second call on the same matrix (9fe04a2, 2c11abb), and a masked mxm takes dot products where the mask is the cheaper side (41e8a37, 0cc12c6). Every answer of both sides matched the plain loop's (420 of 420 checks EQUAL). An earlier set of three rounds in fixed order (before, after (a), after (a)+(b), earlier the same morning) gave the same picture; the first window after a pause ran about 10-15 % faster, which is why these alternate. Raw rows: bench/dwarf-ops-v11-before-{1,2,3}.json, bench/dwarf-ops-v11-after-{1,2,3}.json.
| graph | op | kleene CPU ms before | kleene CPU ms after | after / before | SuiteSparse ms | after vs SuiteSparse |
| zox-M | mxv-bool-dense | 0.397 | 0.381 | 0.96 | 0.212 | 1.8x slower |
| zox-M | mxv-bool-sparse | 0.454 | 0.468 | 1.03 | 5.976 | 12.8x faster |
| zox-M | vxm-bool-dense | 0.988 | 0.283 | 0.29 | 0.698 | 2.5x faster |
| zox-M | vxm-bool-sparse | 0.009 | 0.009 | 1.01 | 0.033 | 3.5x faster |
| zox-M | mxv-f64-dense | 0.514 | 0.491 | 0.95 | 0.396 | 1.2x slower |
| zox-M | mxv-f64-sparse | 0.474 | 0.449 | 0.95 | 5.863 | 13.1x faster |
| zox-M | vxm-f64-dense | 1.027 | 0.361 | 0.35 | 0.881 | 2.4x faster |
| zox-M | vxm-f64-sparse | 0.010 | 0.010 | 0.98 | 0.043 | 4.5x faster |
| zox-M | mxv-minplus-dense | 0.501 | 0.481 | 0.96 | 0.347 | 1.4x slower |
| zox-M | mxv-minplus-sparse | 0.466 | 0.469 | 1.01 | 5.796 | 12.3x faster |
| zox-M | vxm-minplus-dense | 1.003 | 0.367 | 0.37 | 0.738 | 2.0x faster |
| zox-M | vxm-minplus-sparse | 0.010 | 0.010 | 1.05 | 0.033 | 3.2x faster |
| zox-M | mxm-a2 | 0.744 | 0.977 | 1.31 | 3.527 | 3.6x faster |
| zox-M | mxm-a2-masked | 0.356 | 0.355 | 1.00 | 3.115 | 8.8x faster |
| rmat12 | mxv-bool-dense | 0.031 | 0.027 | 0.88 | 0.011 | 2.5x slower |
| rmat12 | mxv-bool-sparse | 0.056 | 0.057 | 1.02 | 1.188 | 20.8x faster |
| rmat12 | vxm-bool-dense | 0.195 | 0.026 | 0.13 | 0.096 | 3.7x faster |
| rmat12 | vxm-bool-sparse | 0.002 | 0.002 | 1.17 | 0.009 | 3.8x faster |
| rmat12 | mxv-f64-dense | 0.050 | 0.048 | 0.96 | 0.060 | 1.3x faster |
| rmat12 | mxv-f64-sparse | 0.068 | 0.068 | 1.00 | 1.266 | 18.6x faster |
| rmat12 | vxm-f64-dense | 0.210 | 0.051 | 0.24 | 0.095 | 1.9x faster |
| rmat12 | vxm-f64-sparse | 0.003 | 0.003 | 0.95 | 0.013 | 5.1x faster |
| rmat12 | mxv-minplus-dense | 0.059 | 0.058 | 0.98 | 0.046 | 1.3x slower |
| rmat12 | mxv-minplus-sparse | 0.065 | 0.068 | 1.04 | 1.186 | 17.5x faster |
| rmat12 | vxm-minplus-dense | 0.209 | 0.057 | 0.27 | 0.112 | 2.0x faster |
| rmat12 | vxm-minplus-sparse | 0.002 | 0.002 | 1.08 | 0.009 | 3.6x faster |
| rmat12 | mxm-a2 | 6.742 | 6.178 | 0.92 | 4.989 | 1.2x slower |
| rmat12 | mxm-a2-masked | 1.068 | 1.042 | 0.98 | 3.179 | 3.1x faster |
| rmat22 | mxv-bool-dense | 13.4 | 6.627 | 0.49 | 4.561 | 1.5x slower |
| rmat22 | mxv-bool-sparse | 14.1 | 11.2 | 0.80 | 126.2 | 11.2x faster |
| rmat22 | vxm-bool-dense | 65.6 | 9.619 | 0.15 | 48.6 | 5.1x faster |
| rmat22 | vxm-bool-sparse | 3.251 | 3.169 | 0.97 | 8.030 | 2.5x faster |
| rmat22 | mxv-f64-dense | 45.4 | 47.2 | 1.04 | 44.5 | 1.1x slower |
| rmat22 | mxv-f64-sparse | 19.9 | 28.8 | 1.45 | 252.2 | 8.7x faster |
| rmat22 | vxm-f64-dense | 102.1 | 47.1 | 0.46 | 88.7 | 1.9x faster |
| rmat22 | vxm-f64-sparse | 5.221 | 5.780 | 1.11 | 23.5 | 4.1x faster |
| rmat22 | mxv-minplus-dense | 39.0 | 32.5 | 0.84 | 27.0 | 1.2x slower |
| rmat22 | mxv-minplus-sparse | 24.5 | 19.2 | 0.78 | 239.6 | 12.5x faster |
| rmat22 | vxm-minplus-dense | 80.9 | 33.7 | 0.42 | 52.3 | 1.6x faster |
| rmat22 | vxm-minplus-sparse | 4.303 | 4.043 | 0.94 | 7.008 | 1.7x faster |
| rmat24 | mxv-bool-dense | 69.7 | 33.9 | 0.49 | 22.2 | 1.5x slower |
| rmat24 | mxv-bool-sparse | 44.9 | 44.9 | 1.00 | 650.1 | 14.5x faster |
| rmat24 | vxm-bool-dense | 317.4 | 58.8 | 0.19 | 444.0 | 7.5x faster |
| rmat24 | vxm-bool-sparse | 13.3 | 13.0 | 0.98 | 39.1 | 3.0x faster |
| rmat24 | mxv-f64-dense | 219.8 | 211.8 | 0.96 | 219.5 | 1.0x faster |
| rmat24 | mxv-f64-sparse | 87.1 | 86.4 | 0.99 | 1378.4 | 16.0x faster |
| rmat24 | vxm-f64-dense | 533.5 | 202.4 | 0.38 | 539.4 | 2.7x faster |
| rmat24 | vxm-f64-sparse | 22.3 | 22.0 | 0.99 | 79.5 | 3.6x faster |
| rmat24 | mxv-minplus-dense | 233.0 | 215.3 | 0.92 | 196.6 | 1.1x slower |
| rmat24 | mxv-minplus-sparse | 86.9 | 97.0 | 1.12 | 1307.8 | 13.5x faster |
| rmat24 | vxm-minplus-dense | 537.9 | 228.3 | 0.42 | 366.0 | 1.6x faster |
| rmat24 | vxm-minplus-sparse | 15.9 | 15.8 | 0.99 | 48.8 | 3.1x faster |
| road2048 | mxv-bool-dense | 20.7 | 5.673 | 0.27 | 6.568 | 1.2x faster |
| road2048 | mxv-bool-sparse | 10.8 | 7.798 | 0.72 | 38.9 | 5.0x faster |
| road2048 | vxm-bool-dense | 39.8 | 5.872 | 0.15 | 11.0 | 1.9x faster |
| road2048 | vxm-bool-sparse | 2.324 | 2.304 | 0.99 | 7.063 | 3.1x faster |
| road2048 | mxv-f64-dense | 25.8 | 7.593 | 0.29 | 18.1 | 2.4x faster |
| road2048 | mxv-f64-sparse | 9.727 | 8.826 | 0.91 | 48.5 | 5.5x faster |
| road2048 | vxm-f64-dense | 32.9 | 7.442 | 0.23 | 21.2 | 2.8x faster |
| road2048 | vxm-f64-sparse | 4.449 | 4.398 | 0.99 | 21.6 | 4.9x faster |
| road2048 | mxv-minplus-dense | 22.7 | 8.197 | 0.36 | 14.3 | 1.7x faster |
| road2048 | mxv-minplus-sparse | 9.401 | 8.629 | 0.92 | 44.9 | 5.2x faster |
| road2048 | vxm-minplus-dense | 37.3 | 7.985 | 0.21 | 13.2 | 1.7x faster |
| road2048 | vxm-minplus-sparse | 3.783 | 3.095 | 0.82 | 6.924 | 2.2x faster |
| road2048 | mxm-a2 | 280.9 | 316.2 | 1.13 | 156.3 | 2.0x slower |
| road2048 | mxm-a2-masked | 85.5 | 101.9 | 1.19 | 66.0 | 1.5x slower |
What changed. With a full operand, mxv wrote each row through per-thread lists that were joined after; it now folds each row straight into the result's dense values and its words of places, blocks cut by entries on 64-row boundaries (road2048 or-and 20.7 -> 5.7 ms, f64 25.8 -> 7.6, min-plus 22.7 -> 8.2: all three now faster than SuiteSparse; rmat22 and rmat24 or-and about 2x). vxm with a full operand sent each product through per-thread lists and folded them after; on the first call on a matrix it now uses the result's own dense storage as its accumulator, and from the second call on the same matrix (the same buffers) it pulls over the matrix's transpose, made once and kept in the workspace, row by row with no atomics (rmat24 or-and 317 -> 59 ms, f64 533 -> 202, min-plus 538 -> 228, against SuiteSparse's 444, 539 and 366; road2048 33-40 -> 6-8 ms against 11-21). The transpose costs memory the size of the matrix while it is kept; CpuWorkspace::kept_transposes says how many are held, and a matrix read once pays none.
The masked mxm by dot products is not taken on any of these graphs, and that is the measured answer, not a gap in the test. A prototype on dwarf timed masked A A under A both ways (12 threads, median of 5): road2048 Gustavson 99.7 ms, the dots 24.3 ms, but the transpose of B the dots need 175.8 ms (Csr::transpose runs on one thread); rmat12 1.22 ms against 16.4 ms of dots (rows of very unequal length, cut by count); zox-M 0.36 against 10.3. MXM_DOT_STEP (0.7) and MXM_TRANSPOSE_STEP (8.0) are set from these, so mxm_by_dots picks the dots only where the transpose and the merges cost less than Gustavson's estimate (a heavy product under a sparse mask, as in the unit test). With a transpose in parallel, or one kept or given, road2048's masked A A would be about 24 ms by dots against SuiteSparse's 66; that is not done.
Rows that read slower after. road2048 mxm-a2 (281 -> 316 ms) and mxm-a2-masked (85 -> 102 ms) are slower in every one of the six windows, but no mxm code changed for them: the Gustavson kernel in both binaries is the same size (the PlusTimes<u64> row closure 0x9bf bytes) at a different address, and a small timing program built at 87ab621 and at 7a0fb32 (where the kernel sits at the same address in both) timed the same in one window: unmasked 316-332 ms both, masked 58-92 ms both (its own spread). So it is where the code lands in the larger binary and what the earlier rows of the run leave behind, not the kernel. zox-M mxm-a2 0.74 -> 0.98 carries one window at 4.08 ms (0.75 and 0.98 in the others); the timing program gives 0.7-0.9 ms for both. rmat22 f64 sparse mxv 19.9 -> 28.8 ms is two modes of the same unchanged path (the fixed-order rounds had it the other way, 30.2 before and 19.3 after).
Four cells that had read higher after e90995e were checked in three more windows, the binaries before (fa63b9b) and after (872d682) alternating, trials 9: rmat12 f64 mxv dense 0.052 -> 0.048 ms, road2048 min-plus mxv sparse 14.0 -> 9.7, min-plus vxm sparse 4.3 -> 3.1: not slower. road2048 f64 vxm dense read 35.0 -> 42.1 ms in all three pairs, while e90995e changed only mxm's code: a placement effect of the same kind, and the path itself is replaced by the pull above (now 7.4 ms).
The transpose on the workers, dots cut by merge steps, a full mxv that reads less (2026-11-29)
Lane kx, dwarf, 12 threads, quiet windows (load under 1.5 at the start, the lock held).
The transpose. SparseBackend::transpose on the CPU, the kept transpose of vxm_into and the dots of a masked mxm now run a bucket sort in two passes on the device's workers: each worker moves its rows' entries into buckets of column blocks (a run of its own in each), then whole blocks are sorted by column in a counting sort that stays in cache. Below 65536 entries, or on one thread, the one-thread counting sort. A timing program (median of 5):
| graph | entries | 1 thread | 12 threads |
| road2048 | 10063734 | 172 ms | 97 ms |
| rmat22 | 32988662 | 1397 ms | 352 ms |
The dots of a masked mxm are cut by merge steps: each row's steps (its length times the mask's places in the row, plus the lengths of the transposed rows the mask names) are counted on the workers, and the rows are cut into pieces of about equal steps (CpuBackend::mxm_dots_plan). rmat12, whose rows are very unequal, went from 16.4 to 2.7 ms by dots. The choice between the dots and Gustavson is set again from the same program: masked A A under A, Gustavson against dots forced, the transpose included in the dots:
| graph | Gustavson | by dots | merge steps per Gustavson work unit | transpose per entry |
| road2048 | 110 ms | 185 ms (97 of it the transpose) | 0.47 | 3.0 |
| rmat12 | 1.43 ms | 2.71 ms | 0.09 | 0.6 |
| zox-M | 0.45 ms | 6.94 ms | 0.13 | 2.8 |
MXM_DOT_STEP is 0.5 and MXM_TRANSPOSE_STEP 3.5 from these, so Gustavson is still picked on all five graphs: with the transpose on the workers the dots are no longer far off on road2048, but they still lose to it. A kept or given transpose of B would change that; that is not done.
The two road2048 A A rows, one operation per process. In the windows of "Raw matrix operations again" both rows read slower in the binary after (281 -> 316 ms and 85 -> 102 ms) although their kernel had not changed. Run alone, one operation in a process (the two binaries of those windows, alternating, two rounds, trials 7): mxm-a2 272 and 285 ms (before) against 278 and 284 (after); mxm-a2-masked 91 and 87 ms against 83 and 82. The binaries time the same; in the full run both rows come after 54 other operations, and the 316 and 102 ms they read there come from what those rows leave behind (in every binary since, as below), not from the code.
A full mxv that reads less. A profile (perf on dwarf) of the or-and product with a full operand showed every row reading its columns and the operand at each, while the benchmark's operand is true everywhere and the matrix structural: every row with an entry is true. CpuBackend::iso_product sees a full operand of one value whose product folds to itself (or-and over true, min-plus over one weight), and then only the offsets are read. The other full products fold each row over slices of its columns and values, with the terminal's test only where the semiring has one, and build the result's words of places 64 rows at a time. On small graphs the full product ran on one thread below 65536 entries, where a row of two or three entries costs a missed branch (zox-M 0.42 ms on one thread); it now goes to the workers from 65536 rows and entries together (zox-M 0.05 ms; rmat12 stays on one thread, where it is faster).
Full mxv against SuiteSparse:GraphBLAS GrB_mxv in the same windows (ms, median of the windows; before = main at 9f50825, after = this change; rounds alternating):
| graph | product | before | after | after / before | SuiteSparse | after against SuiteSparse |
| zox-M | bool | 0.386 | 0.062 | 0.16 | 0.212 | 3.4x faster |
| zox-M | f64 | 0.492 | 0.126 | 0.26 | 0.398 | 3.2x faster |
| zox-M | minplus | 0.488 | 0.164 | 0.34 | 0.353 | 2.2x faster |
| rmat12 | bool | 0.0295 | 0.0065 | 0.22 | 0.0115 | 1.8x faster |
| rmat12 | f64 | 0.047 | 0.0435 | 0.93 | 0.06 | 1.4x faster |
| rmat12 | minplus | 0.0535 | 0.0445 | 0.83 | 0.0465 | 1.0x faster |
| rmat22 | bool | 10.3 | 3.74 | 0.36 | 5.77 | 1.5x faster |
| rmat22 | f64 | 40.2 | 39.8 | 0.99 | 44.5 | 1.1x faster |
| rmat22 | minplus | 42.4 | 40.4 | 0.95 | 26.8 | 1.5x slower |
| rmat24 | bool | 35.6 | 13.1 | 0.37 | 21.8 | 1.7x faster |
| rmat24 | f64 | 213 | 190 | 0.89 | 225 | 1.2x faster |
| rmat24 | minplus | 227 | 202 | 0.89 | 197 | 1.0x slower |
| road2048 | bool | 5.8 | 2.79 | 0.48 | 4.48 | 1.6x faster |
| road2048 | f64 | 13.4 | 7.92 | 0.59 | 16.2 | 2.1x faster |
| road2048 | minplus | 9.66 | 8.34 | 0.86 | 13.2 | 1.6x faster |
Before: four windows (13:53Z-14:16Z and 14:50Z-15:11Z). After: zox-M and rmat12 from two windows of the final binary (16:08Z, 16:26Z), the larger graphs from two windows of the same change with a lower threshold (14:50Z-15:11Z: on these graphs the code they run is the same). The two late windows read the larger graphs up to 2.7 times slower for SuiteSparse and kleene alike (rmat24 min-plus SuiteSparse 186-204 earlier, 535-552 then): the host was not quiet for their memory, and those rows are not used.
What is left. Min-plus with a full operand on rmat22 and rmat24 stays behind: 40 ms against SuiteSparse's 27 on rmat22, and level on rmat24 (202 against 197). Our product scales with the cores (rmat22 223 ms on one thread, 38.5 on 12: 5.8 times on 6 cores) and the profile puts its time in the random reads of the operand; plus-times on f64 over the same pattern costs us the same and beats SuiteSparse's (40 against 45 ms on rmat22). SuiteSparse runs min-plus in 27 ms against 45 for its own plus-times, so it has a faster path for this semiring that we have not found yet. Finding it means reading its min-plus kernel and trying it (about 2 hours); if it is not a trick of that kind, a cache-blocked product (columns cut into blocks that fit in cache, one pass per block) would be about 4 to 6 hours. Neither is done here.
Harmonic centrality, maximal independent set and k-truss (CPU, MIS against LAGraph)
kleene benchmark on dwarf, 12 threads, brake spd5118:70, a unit capped at 16 GB, each run in its own quiet window (load average below 1.5 at the start): --kernels harmonic,harmonic-hb at fa63b9b (2026-11-29 01:17Z, load 1.43; rmat14 and rmat16 generated by the benchmark, same seed and edge factor as the others), --kernels mis at 65e0a1b with LAGraph's mis_demo (1.2.2) in the same window (00:53Z, load 1.42), --kernels ktruss at 65e0a1b (01:02Z, load 1.28). Exact harmonic centrality runs a search from every vertex, 64 at a time, and is limited to 65536 vertices: rmat16 takes 0.98 s on 12 threads, and the work grows with vertices times edges (rmat18 would be about 16 times that). harmonic-hb is the HyperBall estimate (2^7 registers a vertex), checked against the exact scores where those run (mean relative error 0.007-0.064). LAGraph has no harmonic centrality, and its kt_demo times no k-truss trial, so those rows have no LAGraph column. LAGraph's MIS is Luby's with fresh random scores each round, checked by the demo with LG_check_mis; its set is another one than kleene's (seeded greedy by falling priority, checked equal to the plain greedy set), so only validity is compared. Raw rows: bench/dwarf-harmonic.json, bench/dwarf-mis.json, bench/dwarf-ktruss.json.
| graph | kernel | kleene CPU ms | LAGraph ms | kleene vs LAGraph | plain ms | check | detail |
| zox-M | harmonic | 831.733 | - | - | 12323.577 | EQUAL | exact, a search from each of 29772 vertices (64 at a time): the highest score 2444.884 |
| zox-M | harmonic-hb | 30.586 | - | - | 12323.577 | EQUAL | estimated for 29772 vertices, against the exact scores; CPU HyperBall, 2^7 registers, 64 rounds, mean relative error 0.0359 against exact (at most 0.1838) |
| rmat12 | harmonic | 3.542 | - | - | 206.558 | EQUAL | exact, a search from each of 4096 vertices (64 at a time): the highest score 1544.167 |
| rmat12 | harmonic-hb | 3.388 | - | - | 206.558 | EQUAL | estimated for 4096 vertices, against the exact scores; CPU HyperBall, 2^7 registers, 7 rounds, mean relative error 0.0640 against exact (at most 0.1838) |
| rmat14 | harmonic | 54.406 | - | - | 3494.810 | EQUAL | exact, a search from each of 16384 vertices (64 at a time): the highest score 5215.083 |
| rmat14 | harmonic-hb | 7.571 | - | - | 3494.810 | EQUAL | estimated for 16384 vertices, against the exact scores; CPU HyperBall, 2^7 registers, 9 rounds, mean relative error 0.0258 against exact (at most 0.1838) |
| rmat16 | harmonic | 983.170 | - | - | 60252.074 | EQUAL | exact, a search from each of 65536 vertices (64 at a time): the highest score 17917.533 |
| rmat16 | harmonic-hb | 16.102 | - | - | 60252.074 | EQUAL | estimated for 65536 vertices, against the exact scores; CPU HyperBall, 2^7 registers, 9 rounds, mean relative error 0.0070 against exact (at most 0.1838) |
| rmat22 | harmonic-hb | 2269.159 | - | - | over the exact limit | not checked (over the exact limit) | estimated for 4194304 vertices; CPU HyperBall, 2^7 registers, 9 rounds, not checked: over the exact limit |
| zox-M | mis | 0.744 | 9.132 | 12.3x faster | 2.441 | EQUAL, LAGraph EQUAL | seed 1: 15940 of 29772 vertices in the set (the greedy set by falling priority); CPU 5 rounds; LAGraph_MaximalIndependentSet (Luby, new random scores each round), each trial checked by the demo with LG_check_mis (its set is another one than kleene's: not compared) |
| rmat12 | mis | 0.249 | 1.014 | 4.1x faster | 0.351 | EQUAL, LAGraph EQUAL | seed 1: 2816 of 4096 vertices in the set (the greedy set by falling priority); CPU 4 rounds; LAGraph_MaximalIndependentSet (Luby, new random scores each round), each trial checked by the demo with LG_check_mis (its set is another one than kleene's: not compared) |
| rmat22 | mis | 39.171 | 318.822 | 8.1x faster | 587.013 | EQUAL, LAGraph EQUAL | seed 1: 3560603 of 4194304 vertices in the set (the greedy set by falling priority); CPU 6 rounds; LAGraph_MaximalIndependentSet (Luby, new random scores each round), each trial checked by the demo with LG_check_mis (its set is another one than kleene's: not compared) |
| rmat24 | mis | 288.910 | 1327.129 | 4.6x faster | 2530.451 | EQUAL, LAGraph EQUAL | seed 1: 14561092 of 16777216 vertices in the set (the greedy set by falling priority); CPU 7 rounds; LAGraph_MaximalIndependentSet (Luby, new random scores each round), each trial checked by the demo with LG_check_mis (its set is another one than kleene's: not compared) |
| road2048 | mis | 22.647 | 265.148 | 11.7x faster | 494.005 | EQUAL, LAGraph EQUAL | seed 1: 1939682 of 4194304 vertices in the set (the greedy set by falling priority); CPU 5 rounds; LAGraph_MaximalIndependentSet (Luby, new random scores each round), each trial checked by the demo with LG_check_mis (its set is another one than kleene's: not compared) |
| zox-M | ktruss | 4.419 | - | - | 41.501 | EQUAL | k 4: 2387 of 59048 undirected edges kept, the highest support 30 |
| rmat12 | ktruss | 3.549 | - | - | 20.134 | EQUAL | k 4: 20888 of 26689 undirected edges kept, the highest support 316 |
| rmat22 | ktruss | 11462.618 | - | - | 283126.154 | EQUAL | k 4: 20277142 of 32623741 undirected edges kept, the highest support 16215 |
| road2048 | ktruss | 153.597 | - | - | 329.846 | EQUAL | k 4: 0 of 5031867 undirected edges kept, the highest support 0 |
Not in the table: harmonic-hb on rmat24 took 11.0 s (median of 5, an earlier window at 65e0a1b, 00:31-00:40Z, whose JSON was lost when the run was stopped; another lane ran a build in that window at 00:31-00:32Z, and the RAM reached 82 °C) and on road2048 it was stopped after several minutes at 82 °C: the estimate needs a round per hop of the diameter (thousands on the road grid). k-truss on rmat24 was not run (the plain reference already takes 283 s on rmat22).
Minimum spanning forest and maximum flow (CPU, against LAGraph)
kleene benchmark on dwarf at e90995e, 12 threads, trials 5, brake spd5118:70, a unit capped at 16 GB, each run in its own quiet window (load average below 1.5 at the start): --kernels msf (2026-11-29 02:24Z, load 1.35), --kernels maxflow on zox-M, rmat12, rmat22 and road2048 (02:34Z, load 1.34) and on rmat24 without LAGraph (02:48Z, load 1.27). The first maxflow window (02:29Z) was stopped by the 16 GB cap during LAGraph's maxflow_demo on rmat24, so that cell is not measured. Raw rows: dwarf-msf.json, dwarf-maxflow.json, dwarf-maxflow-rmat24.json.
kleene's MSF is Boruvka's rounds on the workers over the 1..255 weights, with the edges taken both ways. LAGraph's msf_demo reads the graph undirected with every weight 1, so its forest has the same trees but its cell is not the same problem: it is shown for scale only. Max flow runs from the suite's source to its second source, with the weights 1..255 as capacities. kleene uses Dinic's phases with each level search on the workers, LAGraph LAGr_MaxFlow (push-relabel). Both report the same flow.
| graph | kernel | kleene CPU ms | LAGraph ms | kleene vs LAGraph | plain ms | check | detail |
| zox-M | msf | 4.138 | 15.704 | 3.8x faster (other weights) | 3.040 | EQUAL | 2965 trees, weight 2286207 |
| rmat12 | msf | 0.844 | 5.835 | 6.9x faster (other weights) | 0.824 | EQUAL | 1104 trees, weight 171993 |
| rmat22 | msf | 508.229 | 1053.990 | 2.1x faster (other weights) | 2444.692 | EQUAL | 2185779 trees, weight 129172682 |
| rmat24 | msf | 2449.332 | 4625.460 | 1.9x faster (other weights) | 14702.901 | EQUAL | 9402277 trees, weight 482465980 (plain 2 trials) |
| road2048 | msf | 184.889 | 1276.700 | 6.9x faster (other weights) | 783.228 | EQUAL | 142085 trees, weight 275252253 |
| zox-M | maxflow | 7.510 | 40.271 | 5.4x faster | 11.393 | EQUAL, LAGraph flow equal | 851 to 3385: flow 5 |
| rmat12 | maxflow | 0.482 | 9.956 | 20.6x faster | 1.216 | EQUAL, LAGraph flow equal | 353 to 117: flow 38 |
| rmat22 | maxflow | 3667.703 | 2260.240 | 1.6x slower | 6054.556 | EQUAL, LAGraph flow equal | 119941 to 2184224: flow 68 (plain 4 trials) |
| rmat24 | maxflow | 17180.736 | not measured (16 GB cap) | - | 26921.948 | EQUAL | 3790722 to 5669299: flow 92 (plain 1 trial) |
| road2048 | maxflow | 3893.012 | stopped at the 10 min limit before a timed trial | - | 23018.843 | EQUAL | 362332 to 119941: flow 58 (plain 1 trial) |
kleene's MSF is ahead of the plain one-thread Kruskal from rmat22 up (4.2-6.0x) and level below. Max flow wins the small graphs and road2048 (LAGraph's push-relabel does not finish one trial there in 10 minutes), and loses rmat22 to push-relabel by 1.6x: Dinic's phases each pay a full level search over the residual graph.
The host table's GPU column (2026-11-27) measured again with the adapter recorded
The GPU column of the host table at the top of this page (dd32835) was measured before a7ee3a5, so nothing named its adapter. Its graphs were measured again on the GPU in one window through a system unit (sudo systemd-run --uid, so the run has the render group): commit e90995e, GPU forced (KLEENE_GPU_CPU_BELOW_EDGES=0, CUBECL_WGPU_DEFAULT_DEVICE=IntegratedGpu(0)), 12 threads, trials 3, brake spd5118:70, capped at 16 GB, run 2026-11-29 02:53Z-03:06Z (load average 0.35 at the start), under the quiet lock. The run printed GPU: AMD Radeon 660M (RADV REMBRANDT) (wgpu<spirv>), integrated GPU. Raw rows: dwarf-gpu-again.json. rmat12 is in "GPU on small graphs" above; rmat26 ran no GPU column then.
| graph | kernel | GPU ms 2026-11-27 (dd32835) |
660M ms now (e90995e) |
now / then | check |
| zox-M | bfs | 22.738 | 22.941 | 1.01 | EQUAL |
| zox-M | sssp-hops | 29.503 | 27.187 | 0.92 | EQUAL |
| zox-M | sets64 | 14.835 | 16.099 | 1.09 | EQUAL |
| zox-M | sssp-weighted | 64.745 | 60.566 | 0.94 | EQUAL |
| zox-M | cc | 0.584 | 0.825 | 1.41 | EQUAL |
| zox-M | scc | 15.772 | 14.960 | 0.95 | EQUAL |
| zox-M | datalog-reach | 20.055 | 20.174 | 1.01 | EQUAL |
| rmat22 | bfs | 18.466 | 18.226 | 0.99 | EQUAL |
| rmat22 | sssp-hops | 122.385 | 143.178 | 1.17 | EQUAL |
| rmat22 | sets64 | 194.881 | 187.627 | 0.96 | EQUAL |
| rmat22 | sssp-weighted | 472.018 | 303.127 | 0.64 | EQUAL |
| rmat22 | cc | 41.667 | 36.699 | 0.88 | EQUAL |
| rmat22 | scc | 451.379 | 379.471 | 0.84 | EQUAL |
| rmat22 | datalog-reach | 24.215 | 19.178 | 0.79 | EQUAL |
| rmat24 | bfs | 67.617 | 63.807 | 0.94 | EQUAL |
| rmat24 | sssp-hops | 1024.829 | 1007.413 | 0.98 | EQUAL |
| rmat24 | sets64 | 1380.176 | 1407.076 | 1.02 | EQUAL |
| rmat24 | sssp-weighted | 2711.835 | 1967.939 | 0.73 | EQUAL |
| rmat24 | cc | 320.831 | 320.652 | 1.00 | EQUAL |
| rmat24 | scc | 3725.551 | 3845.919 | 1.03 | EQUAL |
| rmat24 | datalog-reach | 103.708 | 106.475 | 1.03 | EQUAL |
| road2048 | bfs | 1899.525 | 1917.883 | 1.01 | EQUAL |
| road2048 | sssp-hops | 2361.560 | 2342.779 | 0.99 | EQUAL |
| road2048 | sets64 | 4053.676 | 5665.163 | 1.40 | EQUAL |
| road2048 | sssp-weighted | 5225.247 | 5052.960 | 0.97 | EQUAL |
| road2048 | cc | 44.520 | 47.193 | 1.06 | EQUAL |
| road2048 | scc | 24490.464 | 32550.950 | 1.33 | EQUAL |
| road2048 | datalog-reach | 993.919 | 1011.037 | 1.02 | EQUAL |
Every cell is within 0.64-1.41x of the 2026-11-27 one, and none is the 3-10x slowdown llvmpipe shows (rmat22 CC 390 ms on llvmpipe, 41.7 then and 36.7 now), so that column was the 660M. The faster cells now (rmat22 and rmat24 weighted SSSP, rmat22 SCC) follow GPU kernel changes since dd32835; road2048 SCC (1.33x) and the sets (1.40x) and zox-M CC (0.58 to 0.83 ms) are slower at 3 trials, and the table at the top keeps the old numbers.