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):
- loki ran at commit
a762004ccf. It used 5 threads pinned to cores 0-4 at nice 19, while other work kept its load average at 10-27. - dwarf ran at commit
dd32835c5bon 12 threads. Other lanes were compiling at the same time, and its 70 °C RAM brake paused it between kernels for about two hours. LAGraph's rmat26 programs pushed the RAM to 81.8 °C, because the brake only checks between kernels. - Between the two commits, kleene-datalog's planner moved into kleene-plan and the graph core gained labelled-edge reach.
- The R-MAT graphs are identical on both hosts (same fingerprints).
Times below are kleene / LAGraph unless named otherwise.
kleene on the GPU:
-
It is the fastest column on shallow graphs that fit:
- rmat22 and rmat24 on loki's RTX 5080: BFS, weighted SSSP, CC and SCC. For example, SCC took 15.6 ms against LAGraph's 1.32 s and kleene CPU's 1.03 s on rmat22 (36.6 ms measured again with the adapter named, kleene CPU 210 ms on 12 threads).
- The same kernels on dwarf's iGPU (rmat24 SCC 3.7 s against 4.9 s). RADV names it a Radeon 660M; these pages called it a 680M. That column was measured before runs named their adapter (
a7ee3a5); measured again with the adapter named, every cell is within 0.64-1.41x (rmat24 SCC 3.8 s; dwarf's "host table's GPU column measured again"). - loki's RTX 5080 numbers were also measured before
a7ee3a5. Measured again with the adapter named (loki's "GPU column measured again"), they hold within 0.2-1.1x, mostly faster now; rmat22 SCC is 36.6 ms now against 15.6 then. Rawmxvon the RTX 5080 against SuiteSparse'sGrB_mxv(rmat26): 36 ms against 4.43 s with a sparse operand (min-plus), 56 against 53 ms with a full one (or-and), kleene's CPU 179 ms.
-
On loki, rmat26 also ran on the GPU, but the card was nearly full: 14.6 of 16.3 GB in use, 3.3 GB of it by other processes.
- BFS (56 ms against LAGraph's 502 ms), hop-count SSSP, the 64-source sets and SCC (9.9 s against 20.9 s) stay ahead.
- Weighted SSSP (13.3 s against 7.0 s), CC (9.7 s against 2.6 s) and Datalog reach (9.6 s against 0.57 s on kleene's CPU) fell far behind their rmat24 times. The cause was the device's matrix cache uploading the graph again on each call (see loki's "GPU measured again"); since
0189376they take 1.29 s, 269 ms, 511 ms (SCC) and 78 ms, ahead of kleene's CPU and LAGraph on loki.
-
dwarf ran no rmat26 on the GPU. The iGPU shares system RAM, and that run's limit was 300 M edges.
-
It loses on the 3843-level road graph, because each level is a kernel launch. BFS there takes 1.0 s against 0.14 s on the CPU. CC is the exception (5.3 ms, the best of all). Since
dc29790a deep search moves its levels to the CPU while its frontier is small: road2048 BFS on the RTX 5080 takes 209 ms (from 999 ms; the CPU 118 ms), road1024 37 ms (from 403 ms), and R-MAT searches are unchanged (loki's "Deep searches leave the GPU"). -
It also loses on the small graphs (zox-M, rmat12), where launch cost dominates. Since
95d1a59the GPU backend runs CC, SCC, SSSP and the source sets below measured edge counts (131072, 1048576, 2000000, 262144: loki's crossovers) on the CPU backend's own algorithms, so they take the CPU's time there. -
dwarf's "measured again" GPU numbers of 2026-11-28 (the CPU winning every kernel up to rmat22, rmat24 failing to allocate 531 MB) were not its GPU but llvmpipe, Vulkan on the CPU: the runs could not open the GPU's device file, and nothing named the adapter. Since
a7ee3a5every GPU run names its adapter and kind, and a software device gets no GPU column. On the real 660M, measured again (dwarf's "GPU on small graphs"), the CPU's 12 threads still win most kernels at every size; the GPU wins the 64-source sets from rmat16 up (rmat18 41.7 / 8.9 ms) and is ahead on rmat22 BFS (5 %) and Datalog reach (32 %). -
The thresholds above are a discrete GPU's, measured on 5 threads of loki at a load average of 22. On a second discrete GPU, the RTX A2000 of a laptop (8 threads, an i7-11850H, a quiet host), they do not hold: with the GPU forced CC is level on rmat14 and rmat16, loses on rmat18 and rmat20 and wins on rmat22 (20.2 / 12.7 ms), SCC and hop-count SSSP win no graph up to rmat22, weighted SSSP only rmat22 (162 / 128 ms), the sets only rmat16. On integrated GPUs (the 660M, the laptop's Intel UHD) the CPU is the better default for everything but the sets.
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):
- On loki's RTX 5080 it is the fastest column on every graph measured: rmat24 193 ms against LAGraph's 2.12 s and kleene CPU's 2.10 s, rmat26 703 ms against 11.1 s and 16.1 s, rmat22 32 ms, road2048 45 ms (against 251 ms). Below 131072 edges it runs on the CPU (
CpuBelow.pagerank): rmat12 and rmat14 lose with the GPU forced. - On the laptop's RTX A2000 it wins from rmat14 (119806 edges: 3.2 / 2.5 ms) and road256 up (rmat22 345 / 140 ms).
- On integrated GPUs it mostly loses: dwarf's 660M loses on R-MAT (rmat24 2.75 s CPU, 3.85 s GPU) and wins only the road grids (road1024 64 / 31 ms); the Intel UHD loses every graph (rmat22 494 / 965 ms; it has no
f64, so its change is summed inf32). - RADV ran it wrong at first: it read each row's old score back as the new one, so the change was 0 and the rounds stopped after one. The benchmark's check caught it; the GPU tests had never taken that path (
8907482adds the graphs,7d0e67afixes it).
kleene's CPU against SuiteSparse:GraphBLAS + LAGraph:
| kernel | kleene wins | LAGraph wins |
| BFS | zox-M, rmat12, rmat22, rmat24, road2048 (loki rmat22 33 ms / 120 ms, road 141 / 276; dwarf rmat22 31 / 67); since direction-optimizing search (measured again on dwarf, see its file) rmat26 on dwarf (283 / 427 ms; rmat24 80 / 136, road2048 197 / 417) | rmat26 on loki (559 / 502, not measured again) |
| weighted SSSP | road2048 (loki 0.69 s / 14.1 s, dwarf 0.97 s / 10.2 s), zox-M, rmat12; rmat22 on loki; since delta-stepping (measured again, see the host files) rmat24 and rmat26 on both hosts (loki rmat26 4.8 s / 7.0 s; dwarf, measured again on a quiet host, 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 rmat26 1.09 s / 2.55 s, road 46 / 528 ms; dwarf rmat26 0.70 s / 2.13 s, road 21 / 348 ms); on dwarf since Afforest also zox-M (0.80 / 1.70 ms) and rmat22 (27 / 212 ms) | zox-M, rmat22 on loki (not measured again since Afforest) |
| SCC | zox-M, rmat12, road2048 (loki 0.29 s / 110 s); rmat22 on loki; since Multistep (measured again, see the host files) rmat24 and rmat26 (loki rmat26 3.3 s / 20.9 s, dwarf 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 rmat24 (2.10 s / 2.12 s, level) | dwarf rmat12 (not measured again); loki rmat22 (383 / 308 ms), rmat26 (16.1 s / 11.1 s), road2048 (428 / 251 ms), on a host whose load rose from 3 to 78 during the run |
| 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) | 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) |
-
LAGraph on road2048 SCC:
LAGraph_sccis label propagation. It needs an iteration per level, and this graph has 3843 levels.- It took 110-122 s a trial on loki and 161-187 s on dwarf, so both runs stopped it at 10 minutes.
- loki's binary stops it itself and counts the 3 finished trials. On dwarf an outside watcher stopped it, so the cell shows a failed run with its trial times.
-
The plain one-thread reference beats both parallel CPU columns on road2048 for BFS, weighted SSSP, CC and SCC. On a graph this deep, with about 2.4 edges per vertex, a single queue is hard to beat.
-
kleene's weak spots, as measured:
- CPU CC was slower than the plain union-find on every graph. Since Afforest (
66c0937) it is 9.6-46x faster than before on loki and 20-145x on dwarf, and ahead of LAGraph (1.8-11x on loki, 3.1-17x on dwarf) and of the plain union-find on rmat24, rmat26 and road2048. - CPU SCC spent its time in gatling's sequential Tarjan condensation, on one thread. With Multistep (
cb7159b) it is 7.6x faster than before on loki's R-MAT graphs and 16-17x on dwarf's, ahead of LAGraph 6.1-6.3x on loki and 7.7-8.4x on dwarf. On road2048 it is 1.2x faster than before, and still behind the plain one-thread Tarjan (loki 252 / 217 ms, dwarf 371 / 299 ms): its giant takes a forward and a backward search of 4192 levels each. - CPU weighted SSSP was 3-5x behind LAGraph's delta-stepping on rmat26. With kleene's own delta-stepping and bucket fusion (
40ce3e8) it is 4.8x faster than before on loki's R-MAT graphs (ahead of LAGraph 2.6x on rmat24, 1.4x on rmat26) and 4.8-5.9x on dwarf's, measured again on a quiet host (ahead of LAGraph 3.0x on rmat24, 1.3x on rmat26). - CPU hop-count SSSP is slower than a plain queue BFS. Since delta-stepping (1 wide buckets: the levels) it is faster than the queue on the R-MAT graphs (loki rmat26 3.7 s / 4.8 s), but still 2.3-2.7x behind it on road2048. Since the hop counts are the direction-optimizing search's levels with the least parents (
9c36a96), dwarf takes 162 ms on rmat24 and 606 ms on rmat26 (5.4x and 6.2x faster than before, 8.9x and 10.5x ahead of the queue) and 208 ms on road2048, level with the queue's 200 ms. - CPU BFS on rmat26 was behind LAGraph. With direction-optimizing search on gatling (
9c36a96: push from a shared queue, pull over owned words of the open set, Beamer's switch with alpha 14 and beta 24) dwarf takes 283 ms against LAGraph's 427 ms, 2.3x faster than before; rmat24 1.7x and road2048 1.2x faster. A sweep of alpha 14/20 and beta 12/18/24/48 switched at the same levels every time. loki is not measured again yet.
- CPU CC was slower than the plain union-find on every graph. Since Afforest (
-
Kernels with no LAGraph program are compared with the plain reference only: the 64-source sets, hop-count SSSP, the closure, Datalog reach, the indexes, harmonic centrality (exact up to 65536 vertices: rmat16 0.98 s against the plain searches' 60 s on dwarf; the HyperBall estimate 16 ms there, rmat22 2.27 s) and k-truss (LAGraph's demo times none: rmat22 11.5 s against the plain peeling's 283 s).
- Sets on rmat26: 7.2 s against the plain walks' 337 s on loki.
- Address to function: about even with binary search at 24244 functions.
- The reach, site, why and scope indexes: 130x to 30000x ahead of their plain ways.