Benchmarks
Benchmark methodology
How the StateSync-GKR measurements were controlled, how v1.2.0 was paired with v1.1.0 on the same day, which statistics, outcome classes and timer boundaries apply, which hardware ran them, how to replay the reproducible parts and what the measurements do not establish.
This page explains how the benchmark results and the serving capacity results were produced. Read it to judge whether a result applies to your workload, to compare your own measurements fairly and to replay the parts that can be replayed.
Measured subject#
The v1.2.0 studies measured the release tag v1.2.0, commit 8b2908160f36adc233d7b869a403d2ee4d3502a5, and ran v1.1.0 on the same day as the reference. The serving studies ran v1.1.0 from the binaries archived by the earlier campaign; the engine and memory studies built the v1.1.0 prover code from source with the same toolchain and ran it next to v1.2.0.
The earlier studies measured the historical 1.1.0 source, commit 1b8d2f829792172b347dedbfde969016c2c05789. That commit is identified in the papers' artifact records; the current public repository history begins after it. The benchmark callers and observers have their own source and binary identities, and no study edits the production source. The memory observer runs as a test child inside an isolated copy of the source.
The results describe those sources on the recorded hosts. Treat a different source revision, compiler, configuration or host as a new subject and measure it yourself.
Controlled comparisons#
Each ratio changes one thing inside StateSync-GKR and holds the rest fixed.
| Comparison | What changes | What stays fixed |
|---|---|---|
| v1.1.0 against v1.2.0, same day | The released version: prover arithmetic, serving loop or both | Host type, operating system image, toolchain, fixtures, frontend, offered rate and latency budget; proof bytes are checked for equality |
| Memory | Prover oracle: test-only Dense reference with six quadratic factor tables against the production Libra-style two-phase sparse oracle | Circuit, field, transcript order, prover driver and fixture; proof observations are checked for equality |
| Prepared verification | Wiring oracle: TableWiring against DerivedRegularWiring | Circuit, request, proof, commitment and verifier body; call order is randomized |
| Preparation reuse | Fresh compilation and commitment for every request against reused preparation | Operation, depth and configuration |
| Output policy | Serial against parallel encoding and encoded verification | Parallel witness generation and proving, batch size, worker count and fixtures; proof bytes are checked for equality |
The version comparison is the reason the v1.2.0 studies ran v1.1.0 again: every improvement ratio pairs runs made on the same host type on the same day. The earlier campaign's v1.1.0 results stay a separate series and are never divided by a later run. Where both are shown, the same-day v1.1.0 run also checks the environment: on 192 cores its compute rate was within 1.1% of the earlier campaign, and its single-worker and 192-worker membership rates on bare metal were within 0.4%.
StateSync-GKR implements its own sumcheck, GKR assembly and sparse reduction. Plonky3 0.4.3 supplies the field arithmetic, Poseidon2 hash and challenger primitives to both sides of every comparison. Plonky3 is a component provider in these studies, not a comparison baseline.
Study units and sample sizes#
v1.2.0 studies:
| Study | Execution units | Notes |
|---|---|---|
| Engine on bare metal | 502 cells, all completed | Worker scaling, prepared latency, the repeated CPU supplement, thread-count probes and build profiles, with same-day v1.1.0 cells |
| Serving, 192 cores | 187 replayed runs, a 30-minute run and a send-limited run | Two v1.2.0 modes, same-day v1.1.0, the v1.1.0 prover code under the new serving loop, the v1.2.0 prover under the earlier loop, two connections, two overload runs and a second VM |
| Serving, 48 and 96 cores | 181 processes | Fine study, capacity on 48 and 96 cores, equal resources and arrival runs, including the 900-second run |
| Memory and limits | 264 campaign processes, 12 two-point processes and 17 limit attempts | Same cells as the earlier memory study, plus a same-day v1.1.0 against v1.2.0 contrast at widths 4,096 and 65,536 |
Earlier v1.1.0 studies:
| Study | Execution units | Timed and warmup observations |
|---|---|---|
| Earlier CPU campaign | 81 conditions, three processes each: 243 | 63,540 timed samples |
| CPU supplement | 35 conditions, five processes each: 175 | 156,100 timed, 3,925 warmups |
| Generic memory | Four circuit families, eleven widths from 4 to 4,096, two oracle modes, three processes: 264 | 792 timed, 264 warmups |
| Memory limits and concurrency | 17 attempts: 14 successes, one address-space abort, two out-of-memory kills | 38 successful concurrent jobs; 12 timed and 4 warmup scale proofs |
| 48-core arrivals | 36 screens, one pilot, one confirmation | 730,000 timed, 5,888 warmups |
| Equal resources | 12 frontend and 18 worker processes | 180,000 timed, 3,072 warmups |
| 48-core fine study | 19 conditions, three process pairs each: 57 | 456,750 timed, 14,592 warmups |
| 192-core VM | 47 frontend and worker process pairs | 1,102,000 timed, 12,032 warmups |
These counts are different experimental units and are never added into one sample population. Process repeats share a host and a fixed corpus, so they measure run-to-run variation on one machine. A request cycled from the fixed corpus counts as a repeat of its fixture. Different hosts, profiles and confirmation periods are kept separate.
In the earlier 192-core study, the 1,114,032 offers equal 1,079,666 submitted and accepted requests plus 34,366 explicit pre-send frontend_max_pending outcomes. Submitted requests had no server rejection, loss, duplicate or unresolved response. In the v1.2.0 serving studies every accepted reply matched the reference proofs, and on 192 cores the replay of each run's records reproduced the first reading taken on the host exactly.
Statistics#
Each result is summarized per process first, and process distributions are never pooled into one sample.
| Result | Summary |
|---|---|
| Memory | Median of three timed observations per process; the reported value is the median of the three process medians |
| CPU throughput | Median of three process-level rates; each rate uses the median of three measured batch intervals |
| Complete local batch throughput | Each process rate is the batch size divided by the median of ten complete-pipeline intervals after one warmup batch; the reported value is the median of five process rates |
| Prepared verification ratio | Each process summarizes its 300 same-proof paired ratios by their median; the reported value is the median of five process summaries |
| Output policy ratio | Each process summarizes ten paired serial/parallel interval ratios by their median; the range spans the three operation medians across five processes |
| Preparation reuse ratio | Ratios of run-matched process summaries, not of individual requests |
| Serving capacity within 1 s | The highest offered rate at which every repeat accepted every timed request within 1 s, judged on runs where the frontend was not the limit and below the lowest such rate that failed |
The studies keep their original quantile conventions rather than unifying them after the fact:
| Study | Quantile convention |
|---|---|
| Arrival and serving studies | Observed nearest rank at sorted index ceil(q*N)-1, integer nanoseconds, no interpolation |
| Earlier CPU campaign and the v1.2.0 engine study | Sorted index floor((N-1)*q) |
| CPU supplement | Type-7 linear interpolation at (N-1)*q; p50 equals the ordinary sample median |
Ranges across processes describe the observed spread and are not confidence intervals. No outlier is removed, and no interpolated operating point is reported as measured. In the supplement, p99 from 300 or 128 requests is a descriptive sample statistic only.
Outcome classes in serving#
Every offered request ends in exactly one class, and success fractions divide by all timed offers:
| Class | Meaning |
|---|---|
| Accepted in time | The frontend's strict verifier accepted the reply within the latency budget |
| Accepted late | Accepted after the budget |
| Refused by the server | An explicit refusal reason, such as a full admission cap or the run limit before computation |
| Not sent | The frontend's own limit of 8,192 pending requests was full, so it never sent the request |
| No reply by the drain limit | Sent, but no reply had arrived when the frontend's drain window after the last offer ended |
Accepted-only latency distributions are reported separately and exclude the last three classes. A completion-window rate includes the drain after input stops. Dividing an accepted count by the scheduled duration can hide queue growth, so it is not used as a capacity measure.
A run is marked frontend-limited when the frontend's CPU is above 70% of its cores or its verification queue p99 is above 50 ms while the server stays below 90% CPU. Such runs are kept in the records and left out of the capacity judgment, which is why the v1.2.0 capacity points at 2,000 requests/s and above use a 48-core frontend.
Timer boundaries#
| Result | Inside the timer | Outside the timer |
|---|---|---|
Requested allocation and Vec capacity | The prover interval, with allocator counters and stage observation enabled and not subtracted | Allocator metadata and slack, stacks and transient reallocation overlap |
| Allocation calls per proof | Successful allocation calls between the allocator snapshots before and after each timed proof | Everything outside the proof |
| Whole-process RSS | The entire process, including fixtures, logging and the JSON, hashing and verification that follow the prover timer | Nothing is subtracted |
| Prepared verification | The complete verify_sync_op_with call, including request validation and native leaf and path hashing | Circuit, wiring and commitment preparation, proof generation, encoding and transport |
| Preparation reuse | The per-request proving path | Encoding, transport and acceptance |
| Complete local batch | Witness generation, proving, encoding and encoded verification | Preparation, transport and post-timer hashing and logging |
| CPU throughput | Proving, plus witness creation in the witness columns | Encoding, hash and control checks, and delivery |
| Serving latency | From each scheduled arrival to strict encoded-proof acceptance at the frontend, including queueing and transport | Database commits, root adoption, consensus and settlement |
| Per-job stages in v1.2.0 serving | Witness, proof, encoding, hash and release on the computing worker, and the wait from completion to the frame write | Network transfer and frontend verification |
Serving latency is measured from the intended arrival time, so a slow service cannot lower the offered demand by delaying its replies. The frontend uses its own monotonic clock, and original offered timestamps are preserved. Server queue, compute and job-stage times use the server's clock. Clocks are never subtracted across hosts to produce a one-way network latency.
Batch timers are shared by the jobs in a batch and counted once; the continuous mode has no batches and records each job on its own. CPU usage comes from tick counts at HZ 100 over actual telemetry intervals; missing telemetry stays missing. GNU time peaks and sampled /proc RSS are reported separately when they differ. In the serving runs the sampled RSS of the server was higher than its GNU time peak, so peak server memory is the largest sample, with the GNU time peak named beside it for the overload and confirmation runs, and the long-run memory trend is fitted to the per-second samples. Reply traffic is the size of the reply frames per second, without network headers or retransmissions. Logging stays inside the measured system and is not subtracted to claim a higher throughput.
Hardware and software#
| Study | Hosts |
|---|---|
| v1.2.0 engine study | A C8a bare-metal host with two AMD EPYC 9R45 sockets and 192 physical cores with one thread each, Amazon Linux 2023 with kernel 6.18, AVX-512 available to the native build; a 192-core VM ran the thread-count probe as a cross-check |
| v1.2.0 serving studies | C8a virtual machines with 48, 96 and 192 cores and advertised 96, 192 and 384 GiB of RAM, a second 192-core VM, and a separate 16-core, 32-GiB or 48-core, 96-GiB frontend, all on Amazon Linux 2023 with kernel 6.18 and private TCP in one network |
| v1.2.0 memory study | One prover job on CPU 0 of a 48-core VM; limit attempts with a 4-GiB address-space guard and a 3-GiB cgroup with swap disabled |
| Earlier CPU campaign and supplement | Separate C8a bare-metal hosts with two AMD EPYC 9R45 sockets, 192 physical cores, SMT off, two NUMA nodes and 384 GiB installed memory |
| Earlier serving studies | C8a virtual machines with 48, 96 and 192 cores and advertised 96, 192 and 384 GiB of RAM, plus a separate 16-core, 32-GiB frontend connected over private TCP |
| Earlier generic memory contrast | One prover job on CPU 0 of the 48-core virtual machine |
| Earlier memory limits | An isolated development host |
The earlier studies ran Ubuntu 22.04 with kernel 6.8; pairing each version comparison on one day keeps the image difference out of it. The CPU studies used Rust 1.96.1 with -Ctarget-cpu=native; the earlier ones recorded LLVM 22.1.2. The reported CPU model was AMD EPYC 9R45 with one thread per reported core. CPU frequency and the placement of individual worker threads were not fixed. Virtual machine sizes change CPU and RAM together, so these studies do not isolate a RAM-capacity effect. Runs with fewer workers on a large machine are labelled as such and say nothing about a smaller machine.
The serving workload cycles 192 fixed fixtures per operation kind with periodic arrivals. It supports repeated comparisons, and it does not represent random customer traffic, bursts or every circuit.
Reproduce the replayable parts#
Absolute values are comparable across machines only when hardware, firmware, operating system, compiler flags, thread placement, frequency control, background load and repetition policy are fixed. A small replay checks functional behavior. It does not reproduce an archived performance rate.
Development harness#
The repository includes a development harness for single-path latency, component timing, proof size before wrapping, sparse oracle memory and independent-job batch throughput at depths 24, 28 and 32:
RUSTFLAGS="-Ctarget-cpu=native" cargo run --release --locked --bin measureIts output is a development observation for your machine.
Reference server checks#
The reference server of the v1.2.0 serving studies builds from the repository and ships real-TCP checks:
cargo build --release --locked --manifest-path benches/serving/Cargo.toml
python3 benches/serving/service-checks.py --binary benches/serving/target/release/ssgkr-serving --suite smoke --out /tmp/ssgkr-serving-checkThe smoke suite confirms that a normal load is fully accepted in every mode and that a flipped proof byte, a changed job identifier and a changed run identifier are each caught. Serving components lists the other suites. The output directory must be new.
Small caller check#
The earlier campaign's serving caller has its own check. On Linux with Rust 1.96.1, from the repository root:
cargo build --release --locked --manifest-path benches/controlled-capacity-2026-10-07/Load/Cargo.toml
python3 benches/controlled-capacity-2026-10-07/smoke.py --binary benches/controlled-capacity-2026-10-07/Load/target/release/ssgkr-load-driver --out /tmp/ssgkr-caller-small-checkThis runs six small control proofs, two fixtures for each operation kind. It checks sequential and parallel equality and honest encoded acceptance, and it confirms rejection of a mutated typed proof, root, value digest and trailing bytes. The output directory must be new and empty. The script records the built binary hash and the source commit. It does not rerun the archived campaigns.
Supplement data check#
The two earlier CPU studies keep their notes and data in the repository under benches/controlled-cpu-2026-10-06 and benches/controlled-cpu-2026-10-06-supplement. From the supplement folder, recalculate its compressed public data without compiling or proving:
python3 data.py check-package .Full dataset#
The complete raw observations, detailed tables, figure sources and replay drivers of the earlier campaign form a separate measurement dataset (dataset identifier to follow). The dataset has been prepared for review. Its public identifier and its data and figure license are still pending, and those terms are decided separately from the software license. When the dataset is available, verify the extracted payload against the contract hash in its publication metadata:
python3 benches/controlled-capacity-2026-10-07/verify-dataset.py --contract PACKAGE_CONTRACT.json --contract-sha256 THE_PUBLISHED_CONTRACT_SHA256 --manifest PUBLIC_MANIFEST.json --public PublicThe verifier rejects empty or partial manifests, missing or unmanifested files, changed bytes and schema mismatches. Its result is file-contract verification. It does not reproduce a benchmark result.
Scope of the measurements#
- Comparisons: Every ratio compares StateSync-GKR with its own reference implementation or with its previous version under the same conditions, so each gain belongs to one design choice or one release.
- System outcomes: Measurements end at inner-proof acceptance. Database commits, root adoption, consensus, settlement and finality belong to the surrounding system.
- Service capacity: CPU throughput is a computation rate; only the serving studies include queueing and transport. Serving results describe the named host, mode, mix, connection count, period and latency budget.
- Causal attribution: The engine's nine design mechanisms (sparse reduction, derived wiring, cube and affine fusion, parallel path constraints, preparation reuse, independent jobs, three-state leaves, strict request binding and the reusable core) are supported by a mix of measurements, source structure, rejection controls and formal models, and each one names the kind of evidence behind it.
- Security: Security properties are covered in Formal verification and Trust boundaries.
- Development notes: The repository's development measurement report was produced on a development laptop and records development history, separate from the controlled studies on this page.