Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/kleene

BENCH.md

kleene benchmark

kleene benchmark (crate kleene, built with --features gpu for the GPU column) runs one fixed suite and writes bench/<host>.md, bench/<host>.json and this file. Run it again with --report to rebuild this file from the host sections in bench/.

cargo build --release -p kleene --features gpu
target/release/kleene benchmark <data-dir> --zox <zox-M X.gar> --gpu [--threads T] [--trials N]

Method

What is run-tested and what is compile-checked

Where each wins

Every answer in both tables is checked equal to the plain reference. LAGraph's BFS and SSSP also pass LAGraph's own LG_check_bfs and LG_check_sssp, and its component counts match. The GPU times are taken after the graph is on the device (the warm-up uploads it), just as LAGraph's are taken after its graph is loaded. kleene's CPU and LAGraph run on the same threads.

How the runs were made (read with the host lines):

Times below are kleene / LAGraph unless named otherwise.

kleene on the GPU:

PageRank on the GPU (GAP's settings; scores f32 as in LAGraph, the change summed in f64 where the GPU has it; checked to the same rounds and within 1e-4 in L1, measured 6e-8 to 1.7e-7):

kleene's CPU against SuiteSparse:GraphBLAS + LAGraph:

kernel kleene wins LAGraph wins
BFS zox-M, rmat12, rmat22, rmat24, road2048 (loki rmat22 12.7 ms / 16.1 ms, road 105 / 216; dwarf rmat22 31 / 67); since direction-optimizing search rmat26 on both hosts (loki 180 / 264 ms, rmat24 51 / 65; dwarf, measured again, see its file, 283 / 427 ms, rmat24 80 / 136, road2048 197 / 417) -
weighted SSSP road2048 (loki 380 ms / 2.23 s, dwarf 0.97 s / 10.2 s), zox-M, rmat12; rmat22 on loki (141 / 242 ms); since delta-stepping (measured again, see the host files) rmat24 and rmat26 on both hosts (loki rmat24 607 / 774 ms, rmat26 2.59 s / 3.32 s; dwarf, measured again on a quiet host, rmat26 4.7 s / 6.0 s) rmat22 on dwarf (not measured again)
CC rmat12; since Afforest (measured again, see the host files) rmat24, rmat26, road2048 (loki rmat24 76 / 246 ms, rmat26 311 ms / 1.19 s, road 18 / 111 ms; dwarf rmat26 0.70 s / 2.13 s, road 21 / 348 ms); since Afforest also zox-M (loki 0.64 / 0.90 ms, dwarf 0.80 / 1.70 ms) and rmat22 (loki 20 / 53 ms, dwarf 27 / 212 ms) -
SCC zox-M, rmat12, road2048 (loki 208 ms / 43.5 s); rmat22 on loki (105 / 500 ms); since Multistep (measured again, see the host files) rmat24 and rmat26 (loki rmat24 421 ms / 2.41 s, rmat26 1.70 s / 11.5 s; dwarf rmat26 2.8 s / 23.3 s) rmat22 on dwarf (not measured again since Multistep)
PageRank dwarf: zox-M, road2048; measured again after the rework (see dwarf's file): rmat22 (444 / 563 ms), rmat24 (2.69 s / 3.09 s), road2048 (266 / 351 ms); loki, measured again with the setup on the workers (see loki's "PageRank setup and A² measured again"): rmat24 (1.16 s / 1.39 s), rmat26 (6.64 s / 8.03 s) dwarf rmat12 (not measured again); loki zox-M (1.90 / 1.10 ms), rmat12 (0.75 / 0.60 ms); measured again: rmat22 (212 / 198 ms), road2048 (190 / 142 ms)
betweenness, 4 sources (dwarf only) zox-M, rmat12; measured again after the rework: rmat22 (495 / 626 ms), rmat24 (2.51 s / 2.66 s), road2048 (2.31 s / 4.18 s) -
triangles (dwarf only) zox-M, rmat12; measured again after the rework: rmat22 (2.37 s / 8.86 s), rmat24 (15.1 s / 54.1 s), road2048 (13 / 35 ms) -
CDLP, 100 rounds (dwarf only) rmat22 (3.63 s / 133 s), road2048 (2.21 s / 114 s); rmat24 kleene 24.6 s, LAGraph stopped under the RAM temperature rule -
LCC (dwarf only) rmat22 (2.73 s / 31.2 s), road2048 (46 / 60 ms); rmat24 kleene 18.8 s, LAGraph stopped likewise -
maximal independent set (dwarf only) zox-M, rmat12, rmat22 (39 / 319 ms), rmat24 (289 ms / 1.33 s), road2048 (23 / 265 ms); the sets differ (seeded greedy against Luby), both checked -
minimum spanning forest (dwarf only) zox-M, rmat12, rmat22 (508 ms / 1.05 s), rmat24 (2.45 s / 4.63 s), road2048 (185 ms / 1.28 s); LAGraph's demo runs every weight 1, kleene the 1..255 weights -
maximum flow loki, push-relabel on the workers (2026-11-29, see loki's file): zox-M (4.7 / 24 ms), rmat12 (0.63 / 6.7 ms), rmat22 (0.60 s / 1.97 s), rmat24 (2.55 s / 6.70 s), road2048 (0.71 s, LAGraph stopped at its 5 minute limit). dwarf's rows are the older kernel of Dinic's phases alone (rmat22 3.67 s / 2.26 s there) -

kleene-sparse's raw products against SuiteSparse:GraphBLAS alone (no LAGraph; dwarf only, 12 threads, 0cc12c6, medians of three windows; see dwarf's "Raw matrix operations again"; the full mxv row from rows 12 and 13 of 2026-11-29, see "A full mxv that reads less"):

operation kleene wins SuiteSparse wins
mxv / vxm, sparse operand (1 place in 64) every graph: mxv 5.0x-21x (rmat22 or-and 11 / 126 ms), vxm 1.7x-5.1x -
mxv, full operand every graph or-and (rmat24 13.1 / 21.8 ms, rmat22 3.7 / 5.8, zox-M 0.062 / 0.21) and plus-times (rmat24 190 / 225); min-plus on zox-M, rmat12 (level) and road2048 min-plus on rmat22 (40 / 27 ms) and rmat24 (202 / 197, level)
vxm, full operand every graph and semiring, 1.6x-7.5x (rmat24 or-and 59 / 444 ms; road2048 f64 7.4 / 21) -
A² plus-times, unmasked and masked by A zox-M, rmat12 masked (1.0 / 3.2 ms; loki 0.95 / 1.65 ms) rmat12 unmasked (6.2 / 5.0 ms), road2048 (316 / 156 ms, masked 102 / 66 ms in the full run; one operation a process 272-285 ms and 82-91 ms; the dots with the transpose on the workers 185 ms, so not taken); rmat22 and up not run (over the multiply-add limit); loki, each product in a run of its own after the rows are joined on the workers: road2048 108 / 99 ms (from 164), masked 42 / 34 ms, rmat12 3.6 / 3.0 ms

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.

loki: Iceberg delta (rmat22 + 1 %)

cargo bench -p kleene-iceberg --bench delta with KLEENE_DELTA_SET = the rmat22 X.gar set, 8 threads, 2026-11-29 (best of 3; loki's disk was under 85-99 % IO pressure from other work). The set's 32988662 edges were written as an Iceberg table: 99 % in a first snapshot, every 100th edge (329886) appended as a second. Answers checked equal (catalog sizes, every fact).

step from scratch from the first snapshot
read the tables (ms) 2398.8 (2 data files) 1305.9 (1 data file) IcebergSet::snapshot vs IcebergSet::advance: the graph grown by Csr::with_entries
run the program (ms) 547.0 35.1 Engine::run vs Engine::continue_from: reach from 64 seeds (1624294 reached), a one-step join (10085 rows)

Per stratum, continued: the reach 29.0 ms (a search from the new frontier, never into a vertex reached before), the join 1.3 ms (the semi-naive rounds started from the new edges). Raw line: loki-iceberg-delta.json.

loki: Iceberg rows removed (rmat22: plus 1 %, minus 1 %, both)

cargo bench -p kleene-iceberg --bench delta with KLEENE_DELTA_SET = the rmat22 X.gar set, 8 threads, 2026-11-29 about 14:05Z (best of 3). The set's 32988662 edges written as an Iceberg table, one data file per 4194304 rows (8 files), then changed by about 1 %:

Answers checked equal (graph sizes, every fact of the three relations).

case read whole (ms) read from the first snapshot (ms) run from scratch (ms) run continued (ms)
plus 2274.0 (9 files) 1426.3 (1 file) 962.1 36.6
minus 5529.2 (8 files) 5432.5 (0 files) 964.8 52.1
both 5322.8 (9 files) 5560.4 (1 file) 965.2 58.6

The program: a reach from 64 seeds (r), a one-step join (hop), a count of the seeds' edges (fan). Per stratum, continued (Engine::continue_with):

case r hop fan
plus continued, 29.9 ms continued, 1.2 ms continued, 0.8 ms
minus run again, 17.4 ms deleted and derived again, 1.9 ms counts taken off, 0.8 ms
both run again, 16.3 ms deleted and derived again, 2.5 ms counts taken off, 1.4 ms

The read with removals reads no data file it read before, but it is not faster than the whole read here: of 5.4 s, about 1.0 s is skade's changelog and the mapping, 2.0 s taking the removed rows out of the rows kept (GraphRows::changed), 2.4 s finding the pairs no row holds now and the graph changed (GraphRows::gone, Csr::with_changes), each pass over all 33 M kept rows. A count per pair kept with the snapshot would make that cost follow the change. Raw lines: loki-iceberg-removed.json.

loki

CPU AMD Ryzen 9 7900 12-Core Processor (5 threads; SIMD kleene Avx512, stree avx512), GPU wgpu, commit a762004ccf, run 2026-11-27 23:05Z (load average 10.52 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.682 32.879 4.100 0.546 86.4 1.8 14.4 108.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.488 40.549 - 0.546 16.9 1.5 - 108.1 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 851: 26759 reached, 52 hops deep
zox-M sets64 1.861 18.233 - 20.574 1394.9 142.3 - 126.1 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 64 sources, 1177516 (vertex, source) pairs
zox-M sssp-weighted 2.743 87.931 33.000 1.659 21.5 0.7 1.8 35.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 8.494 1.461 3.200 0.513 7.0 40.5 18.5 115.3 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2965 weak components; LAGraph components Some(2965)
zox-M scc 1.893 26.441 53.900 1.045 31.2 2.2 1.1 56.6 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.754 25.830 - 0.517 78.4 2.3 - 114.3 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 26806 vertices; CPU plan: reach (kleene-graph BFS)
rmat12 bfs 0.027 4.004 0.100 0.035 1048.3 7.0 280.9 802.2 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.356 4.491 - 0.035 79.0 6.3 - 802.2 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 353: 2541 reached, 5 hops deep
rmat12 sets64 0.211 2.057 - 3.686 8532.6 873.7 - 487.6 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 64 sources, 162636 (vertex, source) pairs
rmat12 sssp-weighted 1.236 9.598 1.900 0.299 22.7 2.9 14.8 93.8 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 9.797 0.527 20.900 0.106 2.9 54.6 1.4 270.2 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 1104 weak components; LAGraph components Some(1104)
rmat12 scc 0.239 3.940 0.900 0.142 120.1 7.3 32.0 202.2 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2029 strong components; LAGraph components Some(2029)
rmat12 closure 554.859 no GPU kernel - 207.115 11.5 - - 30.9 M pairs/s 5/-/-/5 EQUAL t = e+ by masked boolean products: 6393174 pairs
rmat12 datalog-reach 0.053 4.593 - 0.044 528.8 6.1 - 633.3 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 2542 vertices; CPU plan: reach (kleene-graph BFS)
rmat22 bfs 33.273 32.787 120.000 242.247 975.2 989.7 270.4 133.9 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 439.906 73.180 - 242.247 73.8 443.4 - 133.9 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 119941: 1624253 reached, 7 hops deep
rmat22 sets64 278.882 95.604 - 14117.868 7330.2 21382.6 - 144.8 MTEPS 5/5/-/2 CPU EQUAL, GPU EQUAL 64 sources, 102327894 (vertex, source) pairs
rmat22 sssp-weighted 1153.147 222.019 1368.900 1482.075 28.1 146.2 23.7 21.9 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 613.415 18.135 390.300 211.832 53.8 1819.0 84.5 155.7 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2185779 weak components; LAGraph components Some(2185779)
rmat22 scc 1027.361 15.610 1322.600 772.604 32.1 2113.3 24.9 42.7 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2950687 strong components; LAGraph components Some(2950687)
rmat22 datalog-reach 29.676 24.049 - 194.541 1093.4 1349.3 - 166.8 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 1624254 vertices; CPU plan: reach (kleene-graph BFS)
rmat24 bfs 172.750 32.959 211.600 1168.818 756.6 3965.6 617.7 111.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 2398.452 382.583 - 1168.818 54.5 341.6 - 111.8 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 3790722: 5924759 reached, 8 hops deep
rmat24 sets64 1844.365 357.885 - 65334.634 4535.3 23372.9 - 128.0 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 64 sources, 379184593 (vertex, source) pairs
rmat24 sssp-weighted 5318.208 952.726 2807.100 7770.119 24.6 137.2 46.6 16.8 MTEPS 5/5/5/3 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 5924759 reached, farthest 783; LAGraph delta 29, LG_check_sssp passed
rmat24 cc 2954.530 66.901 517.400 1714.221 44.9 1983.8 256.5 77.4 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 9402277 weak components; LAGraph components Some(9402277)
rmat24 scc 6006.253 113.350 4832.500 4031.159 22.1 1170.9 27.5 32.9 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 12286611 strong components; LAGraph components Some(12286611)
rmat24 datalog-reach 171.228 29.640 - 982.694 763.3 4409.6 - 133.0 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 5924761 vertices; CPU plan: reach (kleene-graph BFS)
rmat26 bfs 559.460 55.547 501.900 5206.935 939.1 9458.8 1046.8 100.9 MTEPS 5/5/5/4 CPU EQUAL, GPU 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 8403.674 1055.161 - 5206.935 62.5 497.9 - 100.9 MTEPS 5/5/-/4 CPU EQUAL, GPU EQUAL from 1919057: 21634048 reached, 8 hops deep
rmat26 sets64 7244.668 1063.692 - 336698.096 4641.5 31612.6 - 99.9 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 64 sources, 1384579092 (vertex, source) pairs
rmat26 sssp-weighted 22894.646 13277.014 6951.000 41191.496 22.9 39.6 75.6 12.8 MTEPS 1/5/5/1 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 21634048 reached, farthest 792; LAGraph delta 29, LG_check_sssp passed
rmat26 cc 10457.706 9697.298 2552.200 7445.664 51.0 55.0 208.8 71.6 MTEPS 5/5/16/3 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 40020188 weak components; LAGraph components Some(40020188)
rmat26 scc 25240.404 9876.805 20914.200 17215.851 21.1 54.0 25.5 31.0 MTEPS 5/5/16/2 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 50866202 strong components; LAGraph components Some(50866202)
rmat26 datalog-reach 569.370 9551.173 - 32176.523 922.8 55.0 - 16.3 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 3 entries reach 21634049 vertices; CPU plan: reach (kleene-graph BFS)
road2048 bfs 140.571 1038.209 276.200 110.779 70.5 9.5 35.9 89.4 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 468.278 1331.304 - 110.779 21.2 7.4 - 89.4 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 362332: 3977928 reached, 3843 hops deep
road2048 sets64 11070.311 615.767 - 6701.665 56.4 1013.8 - 93.2 MTEPS 5/5/-/4 CPU EQUAL, GPU EQUAL 64 sources, 250609466 (vertex, source) pairs
road2048 sssp-weighted 686.075 3116.370 14099.100 405.155 14.4 3.2 0.7 24.5 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 2157.055 5.262 528.100 55.443 4.7 1912.6 19.1 181.5 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 142085 weak components; LAGraph components Some(142085)
road2048 scc 291.614 3754.205 110372.900 199.400 34.5 2.7 0.1 50.5 MTEPS 5/5/3/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 142085 strong components; LAGraph components Some(142085); stopped at the 10 min limit after 3 timed trials
road2048 datalog-reach 152.867 510.343 - 105.036 64.8 19.4 - 94.3 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 27.0 ns/q - - 22.8 ns/q 37.1 - - 43.8 M queries/s 5/-/-/5 EQUAL 24244 functions, static search tree (batched) vs binary search; indexes built in 42.4 ms
zox-M indexes index-reach 11.5 ns/q - - 94930.8 ns/q 86.8 - - 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 1.5 ns/q - - 30677.5 ns/q 651.4 - - 0.0 M queries/s 5/-/-/5 EQUAL 123 syscall sites over 29772 instructions; checked on 2000 queries
zox-M indexes index-why 177.3 ns/q - - 119191.7 ns/q 5.6 - - 0.0 M queries/s 5/-/-/5 EQUAL from entry 26890: 26769 reached; every chain checked (edges, shortest length)
zox-M indexes index-scope 119.3 ns/q - - 15924.1 ns/q 8.4 - - 0.1 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 (5, pinned to cores 0-4, nice 19) and brake. Before is the table above (commit a762004ccf); 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 2954.530 280.484 10.5x 517.400 1.8x faster 1526.188 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
rmat26 cc Afforest 10457.706 1087.230 9.6x 2552.200 2.3x faster 10944.641 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
road2048 cc Afforest 2157.055 46.224 46.7x 528.100 11.4x faster 58.603 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
rmat24 sssp-weighted delta-stepping, bucket fusion 5318.208 1087.698 4.9x 2807.100 2.6x faster 7107.565 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat26 sssp-weighted delta-stepping, bucket fusion 22894.646 4801.914 4.8x 6951.000 1.4x faster 39569.777 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
road2048 sssp-weighted delta-stepping, bucket fusion 686.075 451.265 1.5x 14099.100 31.2x faster 410.619 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat24 sssp-hops delta-stepping, bucket fusion 2398.452 788.377 3.0x - - 1028.807 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat26 sssp-hops delta-stepping, bucket fusion 8403.674 3665.856 2.3x - - 4823.326 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
road2048 sssp-hops delta-stepping, bucket fusion 468.278 263.411 1.8x - - 112.545 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat24 scc Multistep 6006.253 794.599 7.6x 4832.500 6.1x faster 3755.868 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL
rmat26 scc Multistep 25240.404 3339.373 7.6x 20914.200 6.3x faster 17119.244 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL
road2048 scc Multistep 291.614 252.231 1.2x 110372.900 437.6x faster 217.090 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL

LAGraph table measured again (8 threads, 2026-12-01)

d66a180, kleene benchmark --threads 8 --trials 5, kleene and LAGraph pinned to cores 0-7 of a quiet host, one run per build (--profile measured with target-cpu=native, and plain --release); every answer checked equal.

kernel graph kleene measured + native ms kleene plain ms SuiteSparse+LAGraph ms
bfs zox-M 0.618 0.521 3.800
bfs rmat12 0.018 0.018 0.100
bfs rmat22 12.683 13.237 16.100
bfs road2048 104.898 94.446 216.400
bfs rmat24 50.946 55.578 64.600
bfs rmat26 180.106 198.143 264.100
sssp-weighted zox-M 1.918 1.990 11.300
sssp-weighted rmat12 0.272 0.263 1.800
sssp-weighted rmat22 140.945 134.844 241.500
sssp-weighted road2048 379.602 357.111 2225.700
sssp-weighted rmat24 607.065 622.571 774.000
sssp-weighted rmat26 2589.357 2415.947 3318.100
cc zox-M 0.641 0.609 0.900
cc rmat12 0.067 0.064 0.100
cc rmat22 20.314 19.209 53.100
cc road2048 17.981 19.607 110.800
cc rmat24 75.687 99.397 245.900
cc rmat26 311.376 290.153 1188.800
scc zox-M 1.047 0.986 14.200
scc rmat12 0.164 0.167 0.900
scc rmat22 104.512 107.809 500.300
scc road2048 207.544 205.518 43472.500
scc rmat24 421.440 707.120 2410.100
scc rmat26 1700.753 1779.300 11503.100
pagerank zox-M 1.897 2.034 1.100
pagerank rmat12 0.753 0.758 0.600
pagerank rmat22 234.265 255.229 192.400
pagerank road2048 187.551 182.269 138.300
pagerank rmat24 1278.334 1402.562 1374.500
pagerank rmat26 7057.903 7327.698 7842.100

PageRank setup and A² measured again (8 threads, 2026-12-02)

Cores 0-7 of loki, the timing lock held, 1-minute load 1.70 at the start of the PageRank runs and 3.87 (the runs before it) at the start of the A² runs; the owner's desktop was the only other load. Every answer checked equal to the plain reference.

PageRank: kleene benchmark --kernels pagerank --threads 8 --trials 5 --lagraph, "before" is d66a180 (loki's "LAGraph table measured again", the same flags), "after" is 901291b (the falling-degree places counted and the first shares written on the workers), LAGraph in the after run's window. kleene's PageRank time includes its setup (the in-edges renumbered by falling degree, the out-degrees); LAGraph's clock starts after its transpose and degrees are cached (LAGr_PageRankGAP reads them from the graph). Medians in ms:

graph kleene before kleene after LAGraph
rmat22 234 212 198
road2048 188 190 142
rmat24 1278 1159 1393
rmat26 7058 6639 8031

The same builds side by side, one after the other on each graph (3 runs a build, 2026-12-01 23:01-23:57Z): rmat22 238 / 204, road2048 197 / 186, rmat24 1332 / 1131, rmat26 7233 / 6747, zox-M and rmat12 level. road2048's after cell above lies inside that spread.

A² plus-times on the CPU against SuiteSparse:GraphBLAS 10.5.3 alone (--graphblas grb_ops, --trials 7): "before" is d66a180, "after" is 53b98d1 (a large product's rows joined on the workers). Every cell, kleene's and SuiteSparse's alike, is a process that runs that one product and nothing else: run after the unmasked product in the same process, the masked one reused the pages the old join had left in the allocator (24 ms before, 33 ms after, with 66 thousand more page faults after), so a cell in a shared run measures the product before it. road2048 is the median of 4 runs (spread in brackets), rmat12 one run; ms:

graph product kleene before kleene after SuiteSparse
road2048 A² 164 (162-167) 108 (96-110) 99 (94-108)
road2048 A² masked by A 44 (43-46) 42 (40-46) 34 (34-36)
rmat12 A² 3.2 3.6 3.0
rmat12 A² masked by A 0.87 0.95 1.65

rmat12 moved 3.3-4.6 ms between runs of either build in the evening's grouped runs, so its row is level within its spread.

GPU measured again: rmat26 and small graphs

Both runs on a loaded loki (other sessions' builds; load averages below) with the RTX 5080 also driving the desktop (3.4 GB of its 16.3 GB in use by others). kleene benchmark --kernels <kernels> --gpu --gpu-max-edges 600000000, 5 threads pinned to cores 0-4, nice 19, brake k10temp:85. Every row is checked equal to the plain reference again.

rmat26 on the GPU. Before, each call of CC, SCC, weighted SSSP and Datalog reach uploaded the graph again: the device's matrix cache (4 GB budget) put out the graph's out-pattern when the in-pattern came in (2.4 GB each), though the search still held it, so the next call missed, uploaded a second copy (3.6-7 s per 2.4 GB) and filled the card; weighted SSSP also scanned its 533 M weights before looking in the cache. Now the budget counts only parts nothing else holds (0189376). Before is commit b36d53c, after is 0189376, run on the same afternoon 40 minutes apart.

graph kernel GPU before ms GPU after ms faster kleene CPU ms run check
rmat26 sssp-weighted 13430.524 1286.077 10.4x 5427.776 before 2026-11-28 17:59Z, load 35.1; after 17:18Z, load 20.6 EQUAL
rmat26 cc 10135.065 269.108 37.7x 706.929 as above EQUAL
rmat26 scc 10362.695 511.090 20.3x 2635.852 as above EQUAL
rmat26 datalog-reach 10238.413 78.418 130.6x 507.805 as above EQUAL
rmat26 bfs 137.472 125.418 1.1x 682.462 as above (not affected) EQUAL
rmat26 sssp-hops 999.315 978.020 1.0x 3765.241 as above (not affected) EQUAL

Small graphs. Below a measured edge count a GPU launch costs more than the CPU's whole answer, so the GPU backend now runs weak components below 131072 edges, strong components below 1048576, shortest paths below 2000000 and source sets below 262144 on the CPU backend's own algorithms (CpuBelow). The crossovers come from the "GPU forced" column (KLEENE_GPU_CPU_BELOW_EDGES=0, run 2026-11-28 17:44Z, load 23.1); "GPU now" is commit 95d1a59's default thresholds (18:33Z, load 42.1). Road grids lose on the GPU at every size for every kernel but CC: there depth, not size, is the cost.

graph edges kernel kleene CPU ms GPU forced ms GPU now ms runs on
zox-M 59105 scc 1.155 8.314 1.293 CPU
zox-M 59105 sssp-weighted 1.719 37.101 1.702 CPU
rmat14 119806 cc 0.291 0.481 0.299 CPU
rmat14 119806 sets64 0.949 2.304 0.956 CPU
rmat16 494438 cc 0.882 0.479 0.619 GPU
rmat16 494438 sets64 4.464 3.105 3.303 GPU
rmat16 494438 scc 2.165 3.576 2.783 CPU
rmat16 494438 sssp-weighted 3.919 10.339 4.078 CPU
rmat18 2017227 scc 12.904 4.485 3.602 GPU
rmat18 2017227 sssp-hops 6.722 4.929 3.904 GPU
rmat18 2017227 sssp-weighted 12.624 13.519 11.575 GPU
rmat20 8175389 sssp-weighted 86.389 47.991 32.833 GPU
road256 156666 scc 3.078 126.920 2.798 CPU
road256 156666 sssp-weighted 3.813 358.569 3.720 CPU
road512 626884 scc 13.390 491.156 11.024 CPU
road1024 2513276 sssp-weighted 74.952 6223.268 1193.329 GPU

PageRank on the GPU

GAP's PageRank (damping 0.85, stop when the L1 change is below 1e-4) on the RTX 5080 (kleene-cubecl, pagerank_of::<GpuBackend>), against kleene's CPU and LAGr_PageRankGAP. The scores and shares stay on the card between rounds; each round is 2-4 kernel launches and an 8-byte read of the change. Scores are f32 as in LAGraph (which is FP32 throughout); the change is summed in f64 where the GPU has it (this one does). The GPU cell is checked against the plain reference: the same rounds and the scores within 1e-4 in L1 (measured 7e-8 to 1.7e-7; a row's sum is a tree, so a hub's sum is closer to the exact one than the CPU's serial f32 sum). Commit a7ee3a5 (the host line names fba5ff9, the same code before its rebase), 5 threads pinned to cores 0-4, nice 19, brake k10temp:85, trials 5, run 2026-11-29 00:26Z-00:39Z. The load average was 2.94 at the start; other sessions' builds pushed it to 78 by the end, and 6.1 GB of the card was in use by others.

graph edges rounds kleene CPU ms kleene GPU ms LAGraph ms plain ms GPU / LAGraph check
rmat22 32988662 24 382.921 31.940 307.900 1734.819 9.6x faster EQUAL (L1 1.1e-7)
rmat24 132718372 23 2102.671 192.870 2120.500 14099.186 11.0x faster EQUAL (L1 1.3e-7)
rmat26 532918496 22 16095.020 703.050 11071.900 65454.760 15.7x faster EQUAL (L1 1.7e-7)
road2048 10063734 39 427.545 45.059 250.700 1264.852 5.6x faster EQUAL (L1 7.3e-8)

On R-MAT the shares are kept renumbered by falling out-degree (GAP's sampled skew test), so the reads of a round hit the hubs' shares close together; that took rmat26 from 1433 ms to 701 ms in a probe run. Rows of up to 32 in-edges take one unit, up to 4096 a group of 32, longer ones 256.

Small graphs (GPU forced with KLEENE_GPU_CPU_BELOW_EDGES=0, trials 5, 5 threads, run 2026-11-28 22:56Z, load average 5.08 at the start, the tree of the GREEN commit before it was made): the GPU loses on rmat12 and rmat14 (up to 119806 edges), where a round is mostly launch and read-back (about 85 µs a round on rmat12), is level on zox-M, and wins from rmat16 (494438 edges) and road256 (156666) up. The default CpuBelow.pagerank is 131072 edges.

graph edges kleene CPU ms GPU forced ms
zox-M 59105 2.117 1.899
rmat12 28760 0.784 2.362
rmat14 119806 2.445 8.220
rmat16 494438 16.448 5.222
rmat18 2017227 22.552 3.663
rmat20 8175389 131.948 12.586
road256 156666 16.230 7.517
road512 626884 40.362 7.523
road1024 2513276 236.741 8.690

The GPU column measured again with the adapter named

The GPU column of the host table at the top of this page (a762004, 2026-11-27) and the rmat26 rows of "GPU measured again" (0189376) were measured before a7ee3a5, so nothing named their adapter. They were measured again in three windows under the quiet lock on a quiet loki (load average 2.27-2.89 at each start, no other session's build), at commit 162444d (the binary built on dwarf from 131cd80 plus the report's 660M line, so its host line says 131cd8069a-dirty), GPU forced (KLEENE_GPU_CPU_BELOW_EDGES=0, CUBECL_WGPU_DEFAULT_DEVICE=DiscreteGpu(0)), --gpu-max-edges 600000000, 12 threads (not pinned; the earlier runs had 5 pinned to cores 0-4), nice 19, brake k10temp:85, trials 3. Each run printed GPU: NVIDIA GeForce RTX 5080 (wgpu<spirv>), discrete GPU; 5.3 GB of the card's 16.3 GB were in use by others. Runs: 2026-11-29 03:48Z-03:56Z (zox-M, rmat12, rmat22, rmat24, road2048) and 03:56Z-04:10Z (rmat26). Raw rows: loki-gpu-again.json.

graph kernel GPU ms 2026-11-27 (a762004) GPU ms after 0189376 RTX 5080 ms now now / before kleene CPU ms now (12 threads) check
zox-M bfs 32.879 - 16.378 0.50 0.580 EQUAL
zox-M sssp-hops 40.549 - 19.758 0.49 0.660 EQUAL
zox-M sets64 18.233 - 13.499 0.74 1.770 EQUAL
zox-M sssp-weighted 87.931 - 41.460 0.47 1.776 EQUAL
zox-M cc 1.461 - 0.315 0.22 0.710 EQUAL
zox-M scc 26.441 - 11.384 0.43 1.261 EQUAL
zox-M datalog-reach 25.830 - 13.589 0.53 0.623 EQUAL
rmat12 bfs 4.004 - 1.694 0.42 0.026 EQUAL
rmat12 sssp-hops 4.491 - 4.411 0.98 0.061 EQUAL
rmat12 sets64 2.057 - 1.946 0.95 0.229 EQUAL
rmat12 sssp-weighted 9.598 - 4.801 0.50 0.280 EQUAL
rmat12 cc 0.527 - 0.345 0.65 0.070 EQUAL
rmat12 scc 3.940 - 1.933 0.49 0.189 EQUAL
rmat12 datalog-reach 4.593 - 1.602 0.35 0.021 EQUAL
rmat22 bfs 32.787 - 31.774 0.97 24.098 EQUAL
rmat22 sssp-hops 73.180 - 68.267 0.93 40.214 EQUAL
rmat22 sets64 95.604 - 58.901 0.62 233.421 EQUAL
rmat22 sssp-weighted 222.019 - 68.379 0.31 305.472 EQUAL
rmat22 cc 18.135 - 17.666 0.97 41.673 EQUAL
rmat22 scc 15.610 - 36.599 2.34 210.393 EQUAL
rmat22 datalog-reach 24.049 - 7.401 0.31 37.302 EQUAL
rmat24 bfs 32.959 - 10.287 0.31 64.846 EQUAL
rmat24 sssp-hops 382.583 - 225.685 0.59 195.908 EQUAL
rmat24 sets64 357.885 - 397.071 1.11 1051.461 EQUAL
rmat24 sssp-weighted 952.726 - 282.966 0.30 579.079 EQUAL
rmat24 cc 66.901 - 68.462 1.02 92.660 EQUAL
rmat24 scc 113.350 - 107.938 0.95 396.773 EQUAL
rmat24 datalog-reach 29.640 - 22.688 0.77 65.645 EQUAL
road2048 bfs 1038.209 - 1005.873 0.97 108.011 EQUAL
road2048 sssp-hops 1331.304 - 1333.022 1.00 115.200 EQUAL
road2048 sets64 615.767 - 673.244 1.09 10645.954 EQUAL
road2048 sssp-weighted 3116.370 - 3010.377 0.97 417.735 EQUAL
road2048 cc 5.262 - 5.038 0.96 14.880 EQUAL
road2048 scc 3754.205 - 3655.292 0.97 244.238 EQUAL
road2048 datalog-reach 510.343 - 495.304 0.97 80.880 EQUAL
rmat26 bfs 55.547 125.418 61.503 0.49 192.822 EQUAL
rmat26 sssp-hops 1055.161 978.020 1034.298 1.06 347.322 EQUAL
rmat26 sets64 1063.692 - 1022.433 0.96 4302.221 EQUAL
rmat26 sssp-weighted 13277.014 1286.077 1169.393 0.91 2164.235 EQUAL
rmat26 cc 9697.298 269.108 263.629 0.98 357.512 EQUAL
rmat26 scc 9876.805 511.090 518.226 1.01 1541.856 EQUAL
rmat26 datalog-reach 9551.173 78.418 87.411 1.11 260.716 EQUAL

It was the GPU: llvmpipe runs on this host's CPU and could not be 66x ahead of kleene's CPU column, as rmat22 SCC was. Most cells are level or faster now (GPU kernel changes since 2026-11-27; the rmat26 rows match the 0189376 column within 0.91-1.11x except BFS, whose 0189376 run was on a host at load 20). One cell is slower: rmat22 SCC took 15.6 ms then and 36.6 ms now (2.34x, 3 trials), which is not explained here; it is left for the GPU SCC kernel's owner.

Deep searches leave the GPU

Since dc29790 a breadth-first search on the GPU backend (and Datalog reach, planned as one) moves its levels to the CPU past 16 levels while its frontier is under 16384 vertices, and back at four times that; on a graph under 4194304 edges it searches on the CPU from the first level (CpuBelow::bfs, bfs_frontier, bfs_depth; integrated GPUs: always the CPU). Every run printed GPU: NVIDIA GeForce RTX 5080 (wgpu<spirv>), discrete GPU; 4.3-4.5 GB of the card's 16.3 GB in use by others. Before is d9271c4, after is dc29790, each in its own window under the quiet lock on 2026-11-29: before 12:29Z-12:32Z (load 7.8 at the start), after 12:39Z-12:42Z (load 7.4), 5 trials, 5 threads pinned to cores 0-4, nice 19, brake k10temp:85, --gpu-max-edges 600000000. Every row is checked equal to the plain reference again.

graph kernel RTX 5080 before ms RTX 5080 after ms faster kleene CPU ms (after run) check
road256 bfs 124.256 2.636 47.1x 0.994 EQUAL
road256 datalog-reach 71.601 2.344 30.5x 1.160 EQUAL
road512 datalog-reach 139.521 8.623 16.2x 4.705 EQUAL
road1024 bfs 402.855 37.427 10.8x 22.347 EQUAL
road1024 datalog-reach 263.606 45.244 5.8x 24.574 EQUAL
road2048 bfs 999.253 208.683 4.8x 118.016 EQUAL
road2048 datalog-reach 489.555 216.504 2.3x 79.402 EQUAL
rmat22 bfs 24.303 24.428 1.0x 32.579 EQUAL
rmat22 datalog-reach 25.544 9.347 2.7x 30.497 EQUAL
rmat24 bfs 7.902 7.782 1.0x 110.494 EQUAL
rmat24 datalog-reach 23.015 24.635 0.9x 113.521 EQUAL
rmat26 bfs 63.312 44.175 1.4x 322.610 EQUAL
rmat26 datalog-reach 84.149 77.505 1.1x 382.921 EQUAL

The road graphs (478 to 3844 levels) gain 2.3-47x; the GPU still trails the CPU's own search there by 1.1-2.7x (the levels before the move, the moves themselves and the levels put back on the GPU at the end). R-MAT searches (7 to 9 levels) never move: their rows are level within the host's noise (road512's BFS reaches 3 vertices, 0.87 / 0.78 ms). The graphs under 4194304 edges (rmat16, rmat18) now search on the CPU through the GPU backend; three back-to-back windows (12:42Z-12:43Z, 9 trials: before, after, before again) gave rmat16 BFS 4.384 / 1.350 / 1.854 ms, rmat18 BFS 4.115 / 3.233 / 1.992 ms and rmat20 (over the threshold, unchanged code path) 3.942 / 2.497 / 2.507 ms. rmat16 gains; rmat18 lies within the noise between the two before runs and above the CPU's own 1.1-1.7 ms, the cost of moving the search's state to the host and its levels back.

Raw mxv and vxm on the GPU against kleene's CPU and SuiteSparse:GraphBLAS

kleene benchmark --kernels ops --gpu --graphblas grb_ops (the lane's own C driver, linked to SuiteSparse:GraphBLAS 10.5.3 in /mnt/work4t/rickard-kb/ext/install, with kleene's thread count), rmat24 and rmat26, 12 threads, trials 5, the same binary and settings as above, run 2026-11-29 04:10Z-04:19Z (load average 2.27 at the start), under the quiet lock. Every cell is checked equal to the plain reference. Raw rows: loki-ops.json. The GPU has no plus-times kernel. "GPU vs SuiteSparse" is SuiteSparse ms / GPU ms; the fastest of each row in bold. The products A² are over the multiply-add limit on both graphs and not run.

graph op kleene CPU ms kleene GPU ms (RTX 5080) SuiteSparse GrB_mxv / GrB_vxm ms GPU vs SuiteSparse check
rmat24 mxv-bool-dense 40.109 16.832 10.731 0.64x EQUAL
rmat24 mxv-bool-sparse 23.582 10.702 359.377 33.58x EQUAL
rmat24 vxm-bool-dense 122.614 13.293 244.723 18.41x EQUAL
rmat24 vxm-bool-sparse 10.472 2.090 13.759 6.58x EQUAL
rmat24 mxv-f64-dense 102.858 no GPU kernel (plus-times) 88.205 - EQUAL
rmat24 mxv-f64-sparse 58.826 no GPU kernel (plus-times) 768.969 - EQUAL
rmat24 vxm-f64-dense 206.217 no GPU kernel (plus-times) 269.287 - EQUAL
rmat24 vxm-f64-sparse 14.953 no GPU kernel (plus-times) 43.919 - EQUAL
rmat24 mxv-minplus-dense 98.455 26.691 69.854 2.62x EQUAL
rmat24 mxv-minplus-sparse 44.043 15.868 758.724 47.82x EQUAL
rmat24 vxm-minplus-dense 154.224 15.347 169.069 11.02x EQUAL
rmat24 vxm-minplus-sparse 12.156 2.105 24.080 11.44x EQUAL
rmat26 mxv-bool-dense 178.901 56.020 52.577 0.94x EQUAL
rmat26 mxv-bool-sparse 102.314 21.789 1960.582 89.98x EQUAL
rmat26 vxm-bool-dense 573.853 146.930 1185.129 8.07x EQUAL
rmat26 vxm-bool-sparse 35.385 6.862 71.150 10.37x EQUAL
rmat26 mxv-f64-dense 479.182 no GPU kernel (plus-times) 457.253 - EQUAL
rmat26 mxv-f64-sparse 205.363 no GPU kernel (plus-times) 4521.015 - EQUAL
rmat26 vxm-f64-dense 945.270 no GPU kernel (plus-times) 1321.804 - EQUAL
rmat26 vxm-f64-sparse 55.777 no GPU kernel (plus-times) 190.802 - EQUAL
rmat26 mxv-minplus-dense 528.763 109.558 402.002 3.67x EQUAL
rmat26 mxv-minplus-sparse 194.090 36.357 4433.289 121.94x EQUAL
rmat26 vxm-minplus-dense 1067.696 158.039 830.227 5.25x EQUAL
rmat26 vxm-minplus-sparse 45.113 5.811 124.402 21.41x EQUAL

The RTX 5080 wins every product it has a kernel for, but one: mxv with a full operand, where SuiteSparse's dense pull is level or ahead (rmat24 or-and 10.7 ms against 16.8, rmat26 52.6 against 56.0). With a sparse operand the GPU is 34-122x ahead of SuiteSparse's GrB_mxv (rmat26 min-plus 36 ms against 4.43 s) and vxm 6.6-21x. kleene's CPU beats SuiteSparse on every sparse operand and every vxm, and loses every full-operand mxv (rmat24 or-and 40.1 against 10.7 ms, plus-times 103 against 88 ms).

Maximum flow: push-relabel on the workers against Dinic (2026-11-29)

kleene benchmark --kernels maxflow --trials 5 on loki (Ryzen 9 7900, 12 threads), the same window for both binaries, no quiet lock held by any lane (other sessions' work on the host: the load average is given). "Dinic" is the RED commit's kernel (Dinic's phases alone, e3ee96f); "push-relabel" is the GREEN commit (push-relabel rounds on the workers, the residual graph built on the workers, Dinic to finish). LAGraph 1.2.2 maxflow_demo (LAGr_MaxFlow) in the push-relabel run, its own 5-minute limit. Every answer is checked against the plain one-thread Dinic; LAGraph's flow is equal. Medians in ms. Dinic run 13:25-13:28Z (load 14.87 to 5.78), push-relabel 13:28-13:37Z (load 5.78 to 16.76).

graph Dinic push-relabel LAGraph plain
zox-M 5.720 4.655 23.925 7.293
rmat12 0.323 0.627 6.741 0.779
rmat22 2000.634 598.771 1973.650 3379.577
rmat24 8706.381 2548.398 6699.650 15241.939
road2048 2447.162 713.013 stopped at the 5 min limit 14865.624

On rmat22 and rmat24 most of the Dinic time was the residual graph built on one thread (1.5 of 1.9 s, 6.9 of 8.3 s); the push-relabel rounds themselves take 2 rounds on rmat22, 3 on rmat24 and 103409 on road2048, and Dinic then makes one search that does not reach the target. rmat12 is slower by 0.3 ms (the rounds' set-up on a graph of 4096 vertices). Raw rows: bench/loki-maxflow-dinic.json, bench/loki-maxflow-pr.json.