Benchmarks
Benchmark results
Controlled measurements of StateSync-GKR v1.2.0 against v1.1.0 on the same instance types, with the earlier v1.1.0 results kept as their own series, for serving capacity, tail latency, proving speed, memory, prepared verification, preparation reuse, batch output, proof size and build settings.
This page summarizes the controlled measurements of StateSync-GKR. The v1.2.0 results come from studies of the released version that also ran v1.1.0 on the same host type on the same day as the reference, and version 2 of the design and evaluation paper (opens in a new tab) reports them. The earlier v1.1.0 results of its first version stay on this page as their own series. Use it to estimate what StateSync-GKR changes for memory, repeated requests and serving, and read each result together with its comparison table.
What v1.2.0 changes#
Version 1.2.0 keeps the verifier, the proof format, the transcript order and every proof byte: the engine study compared every proof hash with the v1.1.0 reference, and the serving studies checked every accepted reply against the reference proofs. It changes how the prover computes its messages, adds serving components with a reference server, and refuses two misuses in every build profile. The changelog lists the changes.
Results at a glance#
| Result | v1.2.0 | Reference | Scope |
|---|---|---|---|
| Serving capacity, 192 cores | 3,300 requests/s with every request accepted within 1 s over one connection; at least 5,000 over two | v1.1.0, same day: 1,150 requests/s | Reference server in continuous mode, 1:1:1 mix at depth 24, separate 48-core frontend; the two-connection value from 15-second screens |
| Serving capacity, 48 and 96 cores | 2,000 and 3,000 requests/s within 1 s | v1.1.0, same day: 500 requests/s on each | Continuous mode, same mix, one 15-second run per rate |
| Tail latency at 1,000 requests/s, 192 cores | p99 33.7–33.9 ms | v1.1.0, same day: p99 433.8–475.1 ms | Three 60-second runs each, 16-core frontend |
| Long run, 192 cores | 5,940,000 requests in 30 minutes at 3,300 requests/s, every one within 1 s | Repeated at that rate on a second VM | |
| Overload, 192 cores | Peak server memory 535.2 MiB sampled (393.5 MiB by GNU time) at 5,100 requests/s under a 2,760 MiB limit; normal exit | 60 seconds; the frontend held back the excess | |
| Compute cost per million requests, 192 cores | About $0.87 at 3,300 requests/s | v1.1.0, same day: about $2.50 at 1,150 requests/s, an upper bound as it was not offered more | Estimate from the server VM's on-demand hourly price and continuous operation; frontend, storage, network and tax excluded |
| Prover time, one thread | 16.95–24.62 ms per prepared depth-24 proof | v1.1.0, same day: 42.10–65.03 ms | Bare metal, native build |
| Proving throughput | 2.41–2.71× the proofs per second of v1.1.0 at 1, 48, 96 and 192 workers | v1.1.0, same day | Prepared proving only, depth 24, batch 768 |
| Allocations per proof | 85 and 101 | v1.1.0, same day: 1,282 and 1,698 | Generic two-layer circuit, widths 4,096 and 65,536 |
| Build profile | The default release build proved 1.66–1.71× slower than a native build | One thread, v1.2.0 | |
| Peak process memory | 89.46× lower whole-process RSS | Test-only Dense prover reference in the same engine | v1.1.0 measurement; v1.2.0 measured 88.87× under the same conditions |
| Prover allocation | 3,242.41× lower additional requested allocation | Same Dense reference | Unchanged in v1.2.0 |
| Prepared verification | 10.80–23.68× faster | Table wiring on the same proof and request | Unchanged in v1.2.0: the verifier did not change |
| Preparation reuse | 7.19–10.13× lower latency | Fresh setup for every request | Depth 24; v1.1.0 measured 3.46–4.45× |
| Complete local batch | 14.10–14.64× lower time | Serial encoding and encoded verification | Depth 24, batch 768, 192 workers; v1.1.0 measured 9.71–10.71× |
| Proof size across depth | About 2.93% larger | Membership proof at depth 24 | Unchanged in v1.2.0 |
For a visual overview, see StateSync-GKR performance.
Serving on one server#
The serving studies send complete encoded proofs over private TCP to a separate frontend. A request counts as served only when the frontend's strict encoded verifier accepts it against the original request, so queueing and transport are inside the measured latency. Serving capacity has every v1.2.0 serving result with its conditions; this section gives the main ones.
More requests within one second on every machine size.
Highest offered rate at which every request was accepted within 1 s, with v1.1.0 measured the same day. On 192 cores three 60-second runs confirm the one-connection value and 15-second screens the two-connection value; 48 and 96 cores ran 15 to 20 seconds per rate. The limit was server CPU on 48 cores and one connection's reply traffic on 96 and 192. A ≥ marks a lower bound. Past their limits v1.2.0 completed 3.31 times (48 cores) and 4.10 times (96 cores) as many requests per second as v1.1.0.
| Item | Condition |
|---|---|
| Arrivals | Periodic and scheduled independently of responses |
| Workload | Membership, non-membership and update in a 1:1:1 mix at depth 24; 192 fixed fixtures per operation kind, cycled |
| v1.2.0 worker policy | The reference server in continuous mode: up to 190, 94 or 46 jobs compute at once on 192, 96 or 48 cores, and each worker starts the oldest admitted job when it finishes the previous one; batch-fused runs keep one queue per kind with batch cap equal to the cores and a 5-ms maximum wait |
| v1.1.0 worker policy | One FIFO per operation kind, oldest ready batch first, one compute batch at a time, 5-ms maximum batch wait |
| Endpoint | Frontend checks framing, hash and original-request binding, then strict encoded verification accepts |
| Latency | From the scheduled arrival to acceptance, on the frontend's monotonic clock |
| Excluded | Database commits, root adoption, consensus and settlement |
On 192 cores the limit over one connection was the reply traffic of that connection, about 4.96 Gbit/s, while server CPU stayed at or below 50% in every run up to 3,400 requests/s; in 15-second screens, two connections to the same server carried 5,000 requests per second within one second. On 48 cores the limit was server CPU.
192 cores at 1,000 and 1,150 requests per second#
At 1,000 requests/s, three 60-second runs of each version accepted all 60,000 timed requests per run within one second. Process p99 was 33.7–33.9 ms for v1.2.0 continuous, 95.6–96.0 ms for v1.2.0 batch-fused and 433.8–475.1 ms for v1.1.0 measured the same day. v1.2.0 continuous kept 20.6 of the 192 cores busy on average, against 65.1 for v1.1.0.
The same 1,000 requests a second, with a tail under 34 ms.
Three 60-second runs per series on one 192-core VM with a separate 16-core frontend; the lines show run 1. Every run accepted all 60,000 timed requests within 1 s. Process p99: v1.1.0 433.8–475.1 ms on the v1.2.0 measurement day (426.0–443.5 ms in the earlier campaign), v1.2.0 batch-fused 95.6–96.0 ms and v1.2.0 continuous 33.7–33.9 ms. Over the input window v1.2.0 continuous kept 20.6 of the 192 cores busy on average, against 65.1 for v1.1.0.
At 1,150 requests/s, three 60-second runs per v1.2.0 mode accepted every request within one second, with p99 33.6 ms continuous and 96.1–96.3 ms batch-fused. v1.1.0 on the same day met one second for every request with p99 580.1 ms in one run.
At 1,150 requests a second, continuous replies stay in the tens of milliseconds.
One 60-second window per line at 1,150 requests per second on a 192-core server with a separate 16-core frontend. In the earlier v1.1.0 campaign (192 workers, batch cap 192) all 69,000 requests were accepted within 2 seconds and 70.37% within 1 second while the queue grew; on the v1.2.0 measurement day v1.1.0 met 1 second for every request with a p99 of 580.1 ms. Version 1.2.0 met 1 second in three runs per mode, with p99 96.1–96.3 ms batch-fused and 33.6 ms continuous.
The earlier v1.1.0 campaign measured the same deployment with this result at 1,150 requests/s:
| Metric, earlier v1.1.0 campaign | Value |
|---|---|
| Timed requests | 69,000 (256 warmups excluded) |
| Accepted within 2 s | All 69,000 |
| Accepted within 1 s | 48,553 (70.3667%) |
| p99 / maximum latency | 1,471.284 / 1,598.489 ms |
| Pending requests | Grew from 562 at 5 s to 1,559 at 60 s |
| Completion-window rate | 1,123.89 accepted requests/s, including drain |
At 1,000 requests/s that campaign's three runs had process p99 426.032, 438.775 and 443.471 ms. Most of its added delay at 1,150 requests/s occurred before computation began: the serving caller processed one batch at a time and finished hashing, framing, writing and logging each result before it started the next batch. The v1.2.0 studies measured that return path directly; Serving capacity gives the breakdown.
48 cores for 15 minutes#
Fifteen minutes at a steady 500 requests a second.
One 900-second run per version on a 48-core server: a 1:1:1 mix of membership, non-membership and update at depth 24, offered at 500 per second, with a separate 16-core frontend. Latency ends when the complete proof is cryptographically accepted against its original request. Both runs accepted all 450,000 requests within 500 ms. Whole-run p50 / p99 / maximum: v1.1.0 (48 workers, batch cap 48) 165 / 267 / 307 ms; v1.2.0 continuous (46 jobs in flight) 25.6 / 33.4 / 34.0 ms.
| Metric, 450,000 timed requests at 500 requests/s over 900 s | v1.1.0, earlier campaign | v1.2.0 continuous |
|---|---|---|
| Accepted within 500 ms | All | All |
| p50 / p99 / maximum | 165.114 / 267.025 / 307.096 ms | 25.6 / 33.4 / 34.0 ms |
| Largest server queue | 84 | 1 |
| Mean server CPU | 25.5 cores | 9.6 cores |
The v1.1.0 run used 48 workers and batch cap 48; the v1.2.0 run used 46 jobs in flight. Server CPU was averaged over each run by the same method for both versions. The result covers this 15-minute window; the 30-minute run at 3,300 requests/s on 192 cores is in Serving capacity.
Two 48-core workers against one 96-core worker#
This comparison holds total worker resources at 96 cores and 192 GiB and uses the same 16-core frontend. Each policy ran three 20-second processes at 1,000 requests/s in total.
With v1.2.0, both ways of splitting the cores hold the same tail.
Three 20-second runs per policy at 1,000 requests per second with the same total worker resources (96 cores, 192 GiB) and a separate 16-core frontend; bar labels are in milliseconds unless marked. With v1.1.0, two workers with batch cap 48 each accepted every request within 500 ms and one worker with batch cap 96 built a queue. With v1.2.0 in continuous mode both policies accepted every request within 1 s, using 20.8 and 20.5 worker cores. This compares deployment policies, not topology alone.
| Policy | v1.1.0, earlier campaign | v1.2.0 continuous |
|---|---|---|
| Two 48-core workers | Every timed request within 500 ms; process p99 282.108–329.785 ms | Every timed request within 1 s; process p99 33.88–34.13 ms |
| One 96-core worker | Every request eventually accepted while the queue grew; process p99 2.545–2.752 s; 27.075–32.31% within one second | Every timed request within 1 s; process p99 33.74–33.88 ms |
With v1.1.0 the result supported the two-worker policy at this load. With v1.2.0 both policies hold the same tail at 500 and 1,000 requests/s. Each policy has its own settings, so this compares deployment policies as a whole.
Tuning on 48 cores#
A fine-grained study on the 48-core VM tested worker count, batch cap, wait, rate and operation mix, three processes per condition. With v1.2.0, every one of the 19 batch-fused and 16 continuous conditions accepted every timed request within one second; under the mixed load, p99 stayed at 93.1–98.6 ms batch-fused and 33.3–34.0 ms continuous. The settings barely change the result in v1.2.0, while v1.1.0 ranged from hundreds of milliseconds to more than ten seconds:
| Condition, 48-core VM | v1.1.0, earlier campaign | v1.2.0 batch-fused | v1.2.0 continuous |
|---|---|---|---|
| 48 workers, batch cap 48, 5-ms wait, 1,000 requests/s | p99 10.5 s, 6.6% within 1 s | 95.4 ms, all within 1 s | 34.0 ms, all within 1 s |
| 48 workers, batch cap 16, 500 requests/s | p99 11.3 s, 3.8% within 1 s | 93.8 ms | 33.5 ms |
| 32 workers, batch cap 48, 500 requests/s | p99 4.6 s, 16.2% within 1 s | 93.6 ms | 33.6 ms |
| Update-only load, 500 requests/s | p99 993 ms, 99.5% within 1 s | 59.3 ms | 33.5 ms |
Continuous runs map each batch cap to jobs in flight, the smaller of the cap and the worker count minus two, and the wait settings fold into one condition because continuous mode has no wait. In the v1.1.0 study, 5,321 of 456,750 timed offers received explicit server-run-limit refusals at batch cap 16 with 500 requests/s and at batch cap 48 with 1,000 requests/s, and they stay in its success denominators. To apply these results to your own deployment, see Performance tuning.
Proving speed#
CPU throughput#
These rates measure inner proof jobs on one large host. They show how much prepared work the engine completes in parallel.
| Item | Condition |
|---|---|
| Host | Two AMD EPYC 9R45 sockets, 192 physical cores, SMT off, 384 GiB installed RAM, Linux, Rust 1.96.1 with -Ctarget-cpu=native |
| Workload | Depth 24, batch 768, two-field occupied payloads, fixtures with independent roots |
| Sample | Each value is the median of three process-level rates; each rate uses the median of three measured batch intervals |
| Excluded | Encoding, hash and control checks, and delivery |
Independent proofs scale with the cores you give them.
Prepared proving at depth 24, batch 768, three processes per point on a two-socket bare-metal host. Grey lines are v1.1.0 measured the same day at 1, 48, 96 and 192 workers; v1.2.0 completed 2.41–2.71 times as many proofs per second there, with the same proof bytes in 13,824 comparisons. Worker counts are threads on one machine; witness generation, encoding and transport are excluded.
| Workers | Membership (proofs/s) | Non-membership (proofs/s) | Update (proofs/s) |
|---|---|---|---|
| 1 | 60.70 | 56.15 | 42.40 |
| 8 | 480.80 | 444.39 | 335.82 |
| 48 | 2,798.72 | 2,579.21 | 1,970.26 |
| 96 | 4,956.77 | 4,615.04 | 3,515.38 |
| 192 | 7,713.71 | 7,220.36 | 5,390.07 |
Measured against v1.1.0 on the same host the same day, v1.2.0 completed 2.53, 2.48, 2.43 and 2.41 times as many membership proofs per second at 1, 48, 96 and 192 workers, 2.45–2.56 times for non-membership and 2.56–2.71 times for update. At its check points, membership on 1 and 192 workers, the same-day v1.1.0 was within 0.4% of the earlier campaign, whose 192-worker rates were 3,207.74, 2,930.85 and 2,092.03 proofs/s, so the figure keeps the earlier curve as the v1.1.0 reference.
In a probe that keeps every thread proving one request after another, each proof takes about 1.2 times as long with 192 threads as on one pinned thread. The effective clock falls from 4.54 GHz with one thread to 3.73–3.85 GHz with all cores busy, and that clock ratio accounts for almost all of the difference, in v1.1.0 and v1.2.0 alike.
| Operation, 192 workers, v1.2.0 | Proving only (proofs/s) | Serial witness and proving (proofs/s) | Parallel witness and proving (proofs/s) |
|---|---|---|---|
| Membership | 7,713.71 | 1,323.71 | 6,323.95 |
| Non-membership | 7,220.36 | 1,313.25 | 5,899.04 |
| Update | 5,390.07 | 716.64 | 4,782.21 |
The earlier v1.1.0 campaign measured 1,060.35, 1,021.87 and 594.56 proofs/s with serial witnesses and 2,881.55, 2,654.03 and 1,984.00 with parallel witnesses. The parallel-witness column is orchestration in the benchmark caller around the public APIs; the facade has no built-in witness-parallel method. These are inner-job computation rates; the serving results above add queueing and transport.
Prepared request on one thread#
| Operation | v1.2.0 prepared p50 | v1.1.0 prepared p50, same day | v1.2.0 / v1.1.0 |
|---|---|---|---|
| Membership | 16.95 ms | 42.10 ms | 0.40 |
| Non-membership | 18.22 ms | 46.10 ms | 0.40 |
| Update | 24.62 ms | 65.03 ms | 0.38 |
Each value is the median of three processes of 1,000 timed requests at depth 24 on one worker of the bare-metal host. Only the proving step changed: in direct calls, proving took 16.35 ms against 41.54 ms for depth-24 membership, while compilation, commitment, witness generation and encoding stayed within 2% of their v1.1.0 times.
Build profile#
Build for the CPU that runs the prover.
Prepared depth-24 requests on one thread of the 192-core bare-metal host (AMD EPYC 9R45), v1.2.0, median of 1,000 timed requests in one process per build. On this host the x86-64-v3 build, which uses AVX2, took 0.90 times the time of the native build, which uses AVX-512. Every build produces the same proof bytes.
On this host, the default --release build proved 1.66–1.71 times slower than a build with -Ctarget-cpu=native, and a build with -Ctarget-cpu=x86-64-v3 took 0.90 times the native time. Each build ran in one process of 1,000 timed requests on one thread. Every build produces the same proof bytes. Installation shows how to build for speed.
Memory with sparse layer reduction#
The production prover uses a Libra-style two-phase sparse oracle. It keeps input-sized buffers and a sparse list of multiplication gates instead of quadratic input-pair tables. What you gain is room for a wider circuit or more concurrent proof jobs within the same RAM budget.
| Item | Condition |
|---|---|
| Comparison | Production SparseLayerOracle against the test-only DenseLayerOracle, which builds six quadratic factor tables |
| Held fixed | Circuit, field, transcript order and prover driver |
| Workload | Two-layer mixed linear and product circuit, width 4,096 |
| Host | One prover job pinned to CPU 0 of a 48-core VM |
| Sample | Three processes per mode, each with one warmup and three timed proofs; each value is the median of the three process medians |
| Result check | Canonical proof observations match for cases where both modes complete, and verification accepts every completed pair |
| Excluded | Allocator metadata and slack, stacks and transient reallocation overlap are outside requested bytes |
| Boundary | Dense reference | Sparse, v1.1.0 | Sparse, v1.2.0 |
|---|---|---|---|
| Additional requested allocation peak | 1,879,247,872 B | 579,584 B | 579,584 B |
Exposed oracle Vec capacity | 1,610,612,736 B | 508,096 B | 508,096 B |
| Whole-process peak RSS (GNU time) | 1,855,016 KiB | 20,736 KiB | 20,876 KiB |
| Observed prover interval | 11,610,216,436 ns | 4,630,590 ns | 1,795,734 ns |
| Allocation calls per proof | 1,282 | 85 |
Measured on v1.1.0, requested allocation is 3,242.41 times lower and whole-process RSS is 89.46 times lower. Measured again on v1.2.0 under the same conditions, the two ratios were 3,242.41 and 88.87. The two ratios cover different ownership intervals and cannot be substituted for each other. Allocator counters and stage observation stay inside both prover timers and are not subtracted. JSON construction, hashing and verification run after the timer but remain inside process RSS.
The wider the circuit, the larger the saving.
Same engine and circuit; only the layer representation changes. The dense baseline, the engine's own conventional layout, ran the same day on the same 48-core VM; each point is the median of three processes. v1.1.0 has the same layout and gave 89.46×. At width 4,096 the dense baseline took 11.63 s to prove, the sparse prover 1.80 ms.
The Dense reference is a test-only part of StateSync-GKR, so the result measures a representation change inside one engine, on a generic two-layer circuit, for one job on CPU 0. Plonky3 supplies field, hash and challenger code to both modes and is not a comparison target. The ratio does not predict the memory reduction for a production sparse-Merkle circuit, and a single pinned job says nothing about 48-core throughput.
Allocations per proof#
Far fewer allocations for the same proof.
Generic two-layer mixed circuit of the memory study, one job on CPU 0 of a 48-core VM, three processes per point, counted by an allocator that records every request; the v1.1.0 prover was built from its source and measured the same day. Allocated bytes per proof rose 8.8% and 12.7% because many small requests became a few larger ones. The requested peak and the whole-process peak memory did not change, and proving took 1.80 ms against 4.64 ms at width 4,096 and 28.8 ms against 79.1 ms at width 65,536.
v1.2.0 makes 93–94% fewer allocations per proof on the generic circuit: 85 against 1,282 at width 4,096 and 101 against 1,698 at width 65,536, with the v1.1.0 prover built from its source and measured the same day. Allocated bytes per proof rose 8.8% and 12.7%, because many small requests became a few larger ones, and the requested peak and whole-process peak memory did not change. Allocation counts come from an observer build with a counting allocator, so they describe this circuit and not a depth-24 sparse-Merkle request.
Memory limits and tested scale#
A separate study on an isolated development host ran Sparse and Dense under explicit memory limits. It preserved 17 attempts: 14 successes, one address-space allocation abort and two native out-of-memory kills. Concurrent jobs share one generic circuit and witness while each keeps its own oracle and proof state.
| Constraint | Width | Sparse (production) | Dense reference |
|---|---|---|---|
| 4-GiB address-space guard, concurrent jobs | 2,048 | 1, 2, 4 and 8 jobs completed | 1, 2 and 4 jobs completed; allocation abort at 8 |
| 3-GiB cgroup with swap disabled, concurrent jobs | 2,048 | 4 and 8 jobs completed | 4 jobs completed; killed by the out-of-memory mechanism at 8 |
| 3-GiB cgroup with swap disabled, one job | 8,192 to 65,536 | Each width returned one warmup and three timed proofs | Killed at width 8,192 before returning a proof |
v1.2.0 repeated all 17 attempts with the same outcome for each, and its proofs matched the earlier campaign's. With eight concurrent jobs the combined requested peak was higher than in the earlier campaign, because all eight jobs overlapped in time where the earlier starts were spread out; with one, two and four jobs the peaks were the same or lower. Width 65,536 is the largest width tested. It bounds the evidence without defining a supported maximum.
Prepared verification with derived wiring#
Derived wiring evaluates regular gate families in closed form and keeps an exact sparse residue for the rest. It lowers the repeated work of checking a prepared circuit's connections while the proof stays the same. These are v1.1.0 measurements, unchanged in v1.2.0: the verifier and both wiring evaluators are the same code.
| Item | Condition |
|---|---|
| Comparison | TableWiring, a sparse gate-list oracle, against DerivedRegularWiring |
| Held fixed | Circuit, request, proof, commitment and verifier body; call order randomized |
| Timed | The complete prepared typed verify_sync_op_with call, including request validation and native leaf and path hashing |
| Excluded | Circuit, wiring and commitment preparation, proof generation, encoding and transport |
| Host | 192-core host, single worker |
| Sample | Five processes per profile, 300 measured requests and five warmups per process; each process is summarized by the median of its 300 same-proof paired ratios, and the reported value is the median of the five process summaries |
Table/Derived time ratio (higher means derived wiring is faster):
| Operation | Depth 24 | Depth 28 | Depth 32 |
|---|---|---|---|
| Membership | 11.11× | 12.08× | 14.05× |
| Non-membership | 10.80× | 11.95× | 13.86× |
| Update | 18.95× | 19.96× | 23.68× |
The advantage grows as the tree gets deeper.
Same proof and request, verified with derived wiring instead of explicit table wiring, which is already sparse. Each bar is the median of five process medians of 300 paired calls, timing the whole verification call. Measured on v1.1.0; v1.2.0 keeps the same verifier.
TableWiring already iterates a sparse gate list and is unrelated to the quadratic Dense prover reference in the memory comparison. Both wiring evaluators are part of StateSync-GKR. The verifier still recomputes native leaf and path hashes from the private witness, and that work stays inside both timers.
Preparation reuse#
PreparedSync holds the compiled circuit, its full circuit commitment and the derived wiring for one operation kind and configuration. Reusing it removes per-request compilation and commitment work. Each request still has its own witness, transcript and proof.
| Item | Condition |
|---|---|
| Comparison | Fresh path, which compiles the circuit and computes its commitment for every request, against the prepared path, which reuses that material |
| Timed | Per-request proving path |
| Excluded | Encoding, transport and acceptance |
| Sample | Depth 24; three processes per operation and mode, 1,000 timed requests per process; ratios compare run-matched process summaries, not individual requests |
| Reuse condition | Same operation kind, SMT parameters, strategy, configuration and circuit |
| Operation | v1.2.0 fresh/prepared | v1.1.0 fresh/prepared |
|---|---|---|
| Membership | About 7.66× | About 3.69× |
| Non-membership | About 7.19× | About 3.46× |
| Update | About 10.13× | About 4.45× |
Prepare the circuit once. Pay less for every request.
Depth 24, one request per call, three processes of 1,000 requests per operation on a 192-core bare-metal host. Fresh requests compile, commit, build the witness and prove; prepared requests, for the same operation kind and configuration, only build the witness and prove. v1.1.0 measured 3.46–4.45×; faster proving in v1.2.0 makes the one-time setup a larger share.
v1.2.0 shortened the proving step that both paths share, so the one-time setup is a larger share of a fresh request and the ratio rose. Direct calls show where the setup cost sits. These are medians of five run-specific request p50 values for depth-24 membership, with 300 measured requests and five warmups per process. They are separate direct measurements; for the end-to-end comparison, use the fresh/prepared ratios above.
| Direct call | v1.2.0 p50 (ms) | v1.1.0 p50 (ms) |
|---|---|---|
| Compile with hints | 7.8161 | 7.9021 |
| Derive verifier wiring | Unchanged | 4.4190 |
| Circuit commitment | 104.2647 | 105.0273 |
| Witness generation | 0.5552 | 0.5544 |
| Prove on circuit | 16.3522 | 41.5387 |
| Encode | 0.0869 | 0.0864 |
| Derived verifier | Unchanged | 5.8663 |
| Table verifier | Unchanged | 65.1941 |
Complete local batch with parallel output#
Parallelizing the output stages, encoding and encoded verification, lowered the time of the complete prepared local batch. Both policies already parallelize witness generation and proving.
| Item | Condition |
|---|---|
| Comparison | Parallel output policy against serial output policy; only encoding and encoded verification change mode |
| Timed | The complete prepared local batch: witness generation, proving, encoding and encoded verification |
| Excluded | Preparation, transport, post-timer proof hashing and logging, and state commits |
| Workload | Depth 24, batch 768, 192 workers, two-field occupied payloads |
| Sample | Five processes per operation; each process is summarized by the median of ten paired serial/parallel interval ratios, and the range spans the three operation medians across processes |
| Result check | Serial and parallel proof bytes are compared and preserve the canonical result |
| Operation | v1.2.0 serial/parallel ratio | v1.2.0 parallel (proofs/s) | v1.2.0 serial (proofs/s) | v1.1.0 serial/parallel ratio | v1.1.0 parallel (proofs/s) | v1.1.0 serial (proofs/s) |
|---|---|---|---|---|---|---|
| Membership | 14.64× | 2,264.06 | 153.81 | 10.71× | 1,593.17 | 148.98 |
| Non-membership | 14.10× | 2,107.57 | 149.30 | 9.97× | 1,431.66 | 144.01 |
| Update | 14.45× | 1,815.31 | 125.59 | 9.71× | 1,167.49 | 121.01 |
Parallel output keeps a full batch moving.
Depth 24, batch of 768, 192 workers on a 192-core bare-metal host, five processes with ten paired batches each. Witness generation and proving are parallel in both modes; only encoding and encoded verification change. With faster proving the parallel batch finished sooner in v1.2.0, while the serial policy stayed bound by its serial output stages, so the ratio rose from 9.71–10.71× in v1.1.0. Each request keeps its own proof, nothing is aggregated, and transport is excluded.
The ratio comes from paired interval ratios, so it can differ from the quotient of the two throughput columns. Each throughput value is the median of five process rates, and each process rate is 768 divided by the median of ten complete-pipeline intervals after one warmup batch. In the same study, smaller batches and runs with 48 workers produced smaller ratios. The v1.1.0 study compared 327,360 serial and parallel proof-byte pairs.
Proof size across tree depth#
Cube gates with affine fusion represent a Poseidon2 round in one layer, and Merkle path compressions are checked as parallel constraints. As a result, the compiler produces 118 layers in all nine measured profiles: membership, non-membership and update at depths 24, 28 and 32. Proof sizes are unchanged in v1.2.0, which produces the same proof bytes.
| Item | Condition |
|---|---|
| Comparison | Each operation's proof at depth 32 against the same operation's proof at depth 24 |
| Measured | Length of the complete inner-proof-v1 encoded proof, before any external wrapping |
| Profiles | Membership, non-membership and update at depths 24, 28 and 32 |
| Sample | The encoded layout is fixed by the compiled circuit, so each profile has one proof length |
| Excluded | The private witness, which is never part of the encoding |
| Profile | Depth 24 | Depth 32 | Change |
|---|---|---|---|
| Membership encoded proof | 176,948 bytes | 182,132 bytes | About +2.93% |
| Non-membership encoded proof | 181,646 bytes | 182,132 bytes | About +0.27% |
| Single-leaf update encoded proof | 186,992 bytes | 201,086 bytes | About +7.54% |
Deeper trees add only a few percent to the proof.
Complete encoded proofs, 768 per operation and depth. From depth 24 to 32 membership grows 2.93%, non-membership 0.27% and update 7.54%. v1.2.0 produces the same proof bytes.
Circuit width, witness work and total computation still grow with depth, so the compact schedule limits proof growth without making the work constant. Cube and affine fusion has no separately measured speed multiplier.
Overload, cost and long runs#
Serving capacity reports the remaining v1.2.0 serving results: the one-connection network limit, the 30-minute run and the second VM, the memory-limited and send-limited overload runs, where the role of the return budget is shown, and the estimate of compute cost per million requests.