Skip to content

Season 2 leaders (3/3): the client-WASM leader's stack - #3

Merged
asterite merged 1 commit into
mainfrom
leaders/client-wasm
Nov 27, 2026
Merged

asterite merged 1 commit into
mainfrom
leaders/client-wasm

Conversation

@asterite

Copy link
Copy Markdown
Collaborator

The last of three PRs bringing in the season 2 leaders. This one merges the client-WASM leader's whole stack: its
original commits, each with its own author and message, the merge commit, and three small commits on top.

How it was checked

The client-WASM stack alone was run as one series on our benchmark runner (season 2, bb v6.1.0): byte-identical
proofs (fixed seed, public and holdout inputs), verified where they can be, and bb's unit tests on the x86 machine; on
the WASM machine (bb.js in Node, 8 CPUs), client proving time −29.9% and peak RAM −2.0% versus bb 6.1.0.

The final combination (all three stacks, what main becomes with this PR) was also run as one series on the
AWS c7i.16xlarge: byte-identical proofs on every input, verified where they can be, bb's unit tests passing. Time
versus bb 6.1.0: AVM −86.2%, rollup −65.1%, client −61.2%. Peak RAM: AVM −27.3%, rollup −20.4%, client +9.5%.
Checked: this PR's result is exactly that tree, minus the 7 files the runner's harness touches, plus the three commits
below.

The merge

The client stack shares the cumulative stack's early patches; what it adds is mostly WASM-only (SIMD folds, packed
sumcheck edges, the thread pool's spin bound, the full-width small-MSM path, release WASM flags) plus translator,
range-list and multilinear-batching work. 17 files conflicted. Where both sides changed the same code:

  • WASM-only changes moved onto the restructured shared code: the SIMD two-round fold into the chunked
    fold_stride4_backed_range (fold_stride2.hpp), the spin bound into the merged thread pool, the full-width branch
    into pippenger_batched.hpp, and three sumcheck_round.hpp commits replayed on the merged file. Their new
    parameters are defaulted; native builds take the old paths.
  • ultra_circuit_builder.cpp (process_range_list): the rollup stack's version, which does everything the client's
    does and more; the client's new test passes against it.
  • Release WASM flags: -O2 -fno-vectorize.
  • Kept the earlier merge's versions of gemini.hpp, uintx, bigfield.hpp, sumcheck.hpp and
    trace_to_polynomials.cpp (later stages of the same work).

The commits on top

  • Mark the merge question on the shared concurrent MSM gate, then Resolve the merge question on the shared concurrent MSM gate: the merge kept the rollup stack's gate over the AVM leader's earlier one. Measured since: AVM
    proving was not slower with it (−86.2% combined, −85.9% for the AVM stack alone). Comment only.
  • fix(test): narrowing conversions in the MSM window-skip test: a client test header that didn't compile on x86
    (-Wconversion under -Werror). The runner never compiled it, because its unit-test check built bb's original
    test files.

Not checked

  • The combination's WASM build is built by this PR's CI for the first time, but nobody has proved with it: the WASM
    machine hasn't run the combination. This release ships native binaries only.
  • The code hasn't been reviewed by the bb team, and byte-identical proofs with a fixed seed don't cover how random
    values are drawn in production.

After this: the release, v6.1.0-boost.1.

🤖 Generated with Claude Code

The client-WASM leader's whole stack merged into the other two, without the harness patches; the merge
question on the shared concurrent MSM gate resolved (the rollup stack's gate, not slower for AVM); and a
client test made to compile on x86 (-Wconversion).

Squashed from the PR's 98 commits (each original patch with its author; they stay on the PR's page).

Co-authored-by: bench <bench@local>
Co-authored-by: iAmMichaelConnor <mike@aztec.foundation>
Co-authored-by: opt <a@b>
Co-authored-by: Golf Research <golf@invalid>
Co-authored-by: Astra Ideator 1 <astra-ideator1@codex.invalid>
Co-authored-by: Golf Research <golf-research@example.invalid>
Co-authored-by: alejoamiras <alejo.amiras@gmail.com>
@asterite
asterite force-pushed the leaders/client-wasm branch from af0705e to e4f9c23 Compare November 27, 2026 00:14
@asterite
asterite merged commit eb05412 into main Nov 27, 2026
8 of 14 checks passed
@asterite
asterite deleted the leaders/client-wasm branch November 27, 2026 00:15
asterite added a commit that referenced this pull request Nov 27, 2026
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.
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