Skip to content

CI: benchmark bb at v6.1.0 and after each merged stack - #5

Merged
asterite merged 1 commit into
mainfrom
bench
Nov 27, 2026
Merged

asterite merged 1 commit into
mainfrom
bench

Conversation

@asterite

Copy link
Copy Markdown
Collaborator

A benchmark workflow (bench.yml), run by hand, that shows what each merged stack (#1, #2, #3) changes, starting from bb v6.1.0.

What it does

  • Builds bb, bb-avm and the UltraHonk micro-benchmark at each point in .github/bench/points.json: v6.1.0, then the merge of Season 2 leaders (1/3): the AVM leader's stack #1, Season 2 leaders (2/3): the rollup leader's stack #2 and Season 2 leaders (3/3): the client-WASM leader's stack #3. The builds run in parallel, as in bb.yml.
  • Times each column on one GitHub-hosted runner. All points take turns on the same machine, rotating which one goes first. Each input runs 3 times per point; the time is the fastest run and the memory the highest peak RSS.
    • client: aztec-packages' pinned Chonk flows (chonk-inputs.hash), native.
    • micro: aztec-packages' ultra_honk_bench, 2^20 gates, with and without ZK.
    • rollup, avm: aztec-golf's season 2 public rollup and AVM inputs, published as the bench-inputs-v6.1.0 release asset. The workflow checks the asset's SHA-256.
  • Checks each point's proofs with the v6.1.0 binary, so a fast but wrong build can't show up as a gain.
  • Publishes (dispatched runs only) to the gh-pages branch:
    • a page with two charts per column (time and peak memory against v6.1.0) and a table of every input at every point;
    • data.json, plus one aztec-packages style bench JSON ([{name, value, unit}]) per point;
    • a copy of each run's data under runs/<run id>/.
  • Runs on pull requests that change the benchmarks, without publishing. The results go in the run's summary and artifacts. This PR's run is the first trial.

Limits

  • Hosted runners have 4 CPUs and 16 GB. Times will be much slower than on a many-core prover, and gains that come from using many cores well will look smaller. Compare points within a column: each column runs on its own machine.
  • Swap is turned off while timing, so an input that doesn't fit in memory fails instead of being timed while swapping. Root is left out by default because v6.1.0 peaks near 16 GB on it.
  • No WASM yet: Season 2 leaders (3/3): the client-WASM leader's stack #3's changes are mostly WASM-only, so its step will look small here.
  • A job lasts at most 6 hours. A column that runs out of time stops between inputs and says so on the page.

Not checked

  • How long each column takes on a hosted runner, and which inputs fit in 16 GB. This PR's run will show both.
  • GitHub Pages isn't enabled yet. It needs the gh-pages branch, which the first dispatched run creates.

🤖 Generated with Claude Code

A workflow_dispatch workflow (bench.yml) that builds bb, bb-avm and the UltraHonk micro-benchmark at each point
of .github/bench/points.json (v6.1.0, then PRs #1, #2 and #3), and times every point on the same hosted runner,
taking turns, per column: aztec-packages' pinned Chonk flows, its micro-benchmark, and the rollup and AVM inputs
of the bench-inputs-v6.1.0 release asset. Fastest of 3 runs, highest peak RSS; each point's proofs are checked
by the original bb. A dispatched run publishes data.json, a page and aztec-packages style bench JSON per point
to gh-pages. A pull request that changes the benchmarks runs them without publishing.
@asterite
asterite requested a review from charlielye as a code owner November 27, 2026 16:31
@asterite
asterite merged commit 06b075d into main Nov 27, 2026
24 checks passed
@asterite
asterite deleted the bench branch November 27, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant