Commit b467bfc
docs(gfql): print the benchmark numbers pyg-bench publishes, and re-verify them
The owner's redirect on graphistry#1813: "should all that be there, and all we do is
pretty print their latest json? and if we have any boundary needs, ensure there
are data contract tests that run on the pyg-bench side, and we re-verify on our
side?" This is the consuming half. Measurement, provenance and publishability
live in pyg-bench, which owns the runs. This repository renders them.
`docs/source/_data/gfql_benchmarks.json` is a vendored copy of pyg-bench's
`published/docs-numbers.json`; `gfql_benchmarks.contract.json` is a vendored
copy of the contract it satisfies. The `gfql_bench` extension resolves `:bench:`
and `:bench-diag:` against the artifact and re-verifies the contract before
rendering anything, so the build fails on a key that is not published, a
measurement older than the policy allows, a diagnostic-only figure printed as a
result, or a page that drops a number's provenance or disclosures. The
re-verification is written against the contract DOCUMENT, independently of
pyg-bench's implementation - a shared library would fail identically on both
sides and prove nothing.
`benchmark_filter_pagerank.rst` is the first page to use it. Its numbers came
from a chart generator reading a results directory that has never existed in any
commit, so nobody could re-derive them; pyg-bench re-ran the benchmark on
dgx-spark against a named commit and published the result. Twitter: GFQL GPU
0.24s and CPU 1.58s against Neo4j + GDS 11.72s, 49.5x and 7.4x. GPlus: GFQL GPU
2.42s and CPU 32.10s, 13.3x. The two lifecycle SVGs are removed - they render
the withdrawn figures as glyph paths and their generator cannot be run.
GPlus publishes no Neo4j figure. That arm did not complete, and a ratio against
a run that did not finish is not a speedup.
`docs/test_bench_numbers.py` runs the contract checks in the ordinary test lane
rather than only in the docs build, so a number going stale fails CI.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015YsqAZQLbqjSDrYSFz2GoB1 parent 49db91c commit b467bfc
10 files changed
Lines changed: 2398 additions & 4162 deletions
File tree
- docs
- source
- _data
- _ext
- gfql
- _static/filter_pagerank
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
0 commit comments