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#

Resultv1.2.0ReferenceScope
, 192 cores3,300 requests/s with every request accepted within 1 s over one connection; at least 5,000 over twov1.1.0, same day: 1,150 requests/sReference server in , 1:1:1 mix at depth 24, separate 48-core frontend; the two-connection value from 15-second screens
Serving capacity, 48 and 96 cores2,000 and 3,000 requests/s within 1 sv1.1.0, same day: 500 requests/s on eachContinuous mode, same mix, one 15-second run per rate
Tail latency at 1,000 requests/s, 192 coresp99 33.7–33.9 msv1.1.0, same day: p99 433.8–475.1 msThree 60-second runs each, 16-core frontend
Long run, 192 cores5,940,000 requests in 30 minutes at 3,300 requests/s, every one within 1 sRepeated at that rate on a second VM
Overload, 192 coresPeak server memory 535.2 MiB sampled (393.5 MiB by GNU time) at 5,100 requests/s under a 2,760 MiB limit; normal exit60 seconds; the frontend held back the excess
Compute cost per million requests, 192 coresAbout $0.87 at 3,300 requests/sv1.1.0, same day: about $2.50 at 1,150 requests/s, an upper bound as it was not offered moreEstimate from the server VM's on-demand hourly price and continuous operation; frontend, storage, network and tax excluded
Prover time, one thread16.95–24.62 ms per prepared depth-24 proofv1.1.0, same day: 42.10–65.03 msBare metal, native build
Proving throughput2.41–2.71× the proofs per second of v1.1.0 at 1, 48, 96 and 192 workersv1.1.0, same dayPrepared proving only, depth 24, batch 768
Allocations per proof85 and 101v1.1.0, same day: 1,282 and 1,698Generic two-layer circuit, widths 4,096 and 65,536
Build profileThe default release build proved 1.66–1.71× slower than a native buildOne thread, v1.2.0
Peak process memory89.46× lower whole-process RSSTest-only Dense prover reference in the same enginev1.1.0 measurement; v1.2.0 measured 88.87× under the same conditions
Prover allocation3,242.41× lower additional requested allocationSame Dense referenceUnchanged in v1.2.0
Prepared verification10.80–23.68× fasterTable wiring on the same proof and requestUnchanged in v1.2.0: the verifier did not change
Preparation reuse7.19–10.13× lower latencyFresh setup for every requestDepth 24; v1.1.0 measured 3.46–4.45×
Complete local batch14.10–14.64× lower timeSerial encoding and encoded verificationDepth 24, batch 768, 192 workers; v1.1.0 measured 9.71–10.71×
Proof size across depthAbout 2.93% largerMembership proof at depth 24Unchanged 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.

Serving capacity

More requests within one second on every machine size.

3,300/swithin 1 s on one 192-core server, v1.2.0
01,0002,0003,0004,0005,000≥ 5002,00048 coreslimit: server CPU≥ 5003,00096 coreslimit: one connection≥ 1,1503,300≥ 5,000192 coreslimit: one connection

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.

ItemCondition
ArrivalsPeriodic and scheduled independently of responses
WorkloadMembership, non-membership and update in a 1:1:1 mix at depth 24; 192 fixed fixtures per operation kind, cycled
v1.2.0 worker policyThe 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 policyOne FIFO per operation kind, oldest ready batch first, one compute batch at a time, 5-ms maximum batch wait
EndpointFrontend checks framing, hash and original-request binding, then strict encoded verification accepts
LatencyFrom the scheduled arrival to acceptance, on the frontend's monotonic clock
ExcludedDatabase 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 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.

Tail latency

The same 1,000 requests a second, with a tail under 34 ms.

33.7–33.9 msp99 at 1,000/s on 192 cores, v1.2.0 continuous
0 ms100 ms200 ms300 ms400 ms500 ms600 ms0102030405060Second of the input window99th percentile, per arrival second

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.

Peak delivery

At 1,150 requests a second, continuous replies stay in the tens of milliseconds.

33.6 msp99 at 1,150/s on 192 cores, v1.2.0 continuous
0 ms500 ms1 s1.5 s2 s0102030405060Second of the input window99th percentile, per arrival second2 s budget1 s

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 campaignValue
Timed requests69,000 (256 warmups excluded)
Accepted within 2 sAll 69,000
Accepted within 1 s48,553 (70.3667%)
p99 / maximum latency1,471.284 / 1,598.489 ms
Pending requestsGrew from 562 at 5 s to 1,559 at 60 s
Completion-window rate1,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#

Sustained serving

Fifteen minutes at a steady 500 requests a second.

33.4 msp99 for 15 minutes at 500/s on 48 cores, v1.2.0
0 ms100 ms200 ms300 ms400 ms500 ms03691215Minute of the run99th percentile, per second500 ms budget

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 sv1.1.0, earlier campaignv1.2.0 continuous
Accepted within 500 msAllAll
p50 / p99 / maximum165.114 / 267.025 / 307.096 ms25.6 / 33.4 / 34.0 ms
Largest server queue841
Mean server CPU25.5 cores9.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.

Deployment

With v1.2.0, both ways of splitting the cores hold the same tail.

33.7–34.1 msp99 at 1,000/s in both splits of 96 cores
0 ms500 ms1 s1.5 s2 s2.5 s3 s284282330343434Two 48-core workers2.75 s2.55 s2.74 s343434One 96-core worker

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.

Policyv1.1.0, earlier campaignv1.2.0 continuous
Two 48-core workersEvery timed request within 500 ms; process p99 282.108–329.785 msEvery timed request within 1 s; process p99 33.88–34.13 ms
One 96-core workerEvery request eventually accepted while the queue grew; process p99 2.545–2.752 s; 27.075–32.31% within one secondEvery 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 VMv1.1.0, earlier campaignv1.2.0 batch-fusedv1.2.0 continuous
48 workers, batch cap 48, 5-ms wait, 1,000 requests/sp99 10.5 s, 6.6% within 1 s95.4 ms, all within 1 s34.0 ms, all within 1 s
48 workers, batch cap 16, 500 requests/sp99 11.3 s, 3.8% within 1 s93.8 ms33.5 ms
32 workers, batch cap 48, 500 requests/sp99 4.6 s, 16.2% within 1 s93.6 ms33.6 ms
Update-only load, 500 requests/sp99 993 ms, 99.5% within 1 s59.3 ms33.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.

ItemCondition
HostTwo AMD EPYC 9R45 sockets, 192 physical cores, SMT off, 384 GiB installed RAM, Linux, Rust 1.96.1 with -Ctarget-cpu=native
WorkloadDepth 24, batch 768, two-field occupied payloads, fixtures with independent roots
SampleEach value is the median of three process-level rates; each rate uses the median of three measured batch intervals
ExcludedEncoding, hash and control checks, and delivery
Parallel proving

Independent proofs scale with the cores you give them.

2.41–2.71×proofs per second against v1.1.0 the same day, same proof bytes
02,0004,0006,0008,000124816324896192Worker threads on one 192-core hostProofs per second7,714/s v1.2.03,196/s v1.1.0

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.

WorkersMembership (proofs/s)Non-membership (proofs/s)Update (proofs/s)
160.7056.1542.40
8480.80444.39335.82
482,798.722,579.211,970.26
964,956.774,615.043,515.38
1927,713.717,220.365,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.0Proving only (proofs/s)Serial witness and proving (proofs/s)Parallel witness and proving (proofs/s)
Membership7,713.711,323.716,323.95
Non-membership7,220.361,313.255,899.04
Update5,390.07716.644,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#

Operationv1.2.0 prepared p50v1.1.0 prepared p50, same dayv1.2.0 / v1.1.0
Membership16.95 ms42.10 ms0.40
Non-membership18.22 ms46.10 ms0.40
Update24.62 ms65.03 ms0.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 settings

Build for the CPU that runs the prover.

1.66–1.71×slower default build than a native build
0 ms10 ms20 ms30 ms40 ms28.1815.2616.96Membership30.4216.5618.33Non-membership42.0222.1024.63Single-leaf update

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.

ItemCondition
ComparisonProduction SparseLayerOracle against the test-only DenseLayerOracle, which builds six quadratic factor tables
Held fixedCircuit, field, transcript order and prover driver
WorkloadTwo-layer mixed linear and product circuit, width 4,096
HostOne prover job pinned to CPU 0 of a 48-core VM
SampleThree processes per mode, each with one warmup and three timed proofs; each value is the median of the three process medians
Result checkCanonical proof observations match for cases where both modes complete, and verification accepts every completed pair
ExcludedAllocator metadata and slack, stacks and transient reallocation overlap are outside requested bytes
BoundaryDense referenceSparse, v1.1.0Sparse, v1.2.0
Additional requested allocation peak1,879,247,872 B579,584 B579,584 B
Exposed oracle Vec capacity1,610,612,736 B508,096 B508,096 B
Whole-process peak RSS (GNU time)1,855,016 KiB20,736 KiB20,876 KiB
Observed prover interval11,610,216,436 ns4,630,590 ns1,795,734 ns
Allocation calls per proof1,28285

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.

Memory

The wider the circuit, the larger the saving.

88.87×lower peak process RAM at width 4,096, v1.2.0
2101001K416642561K4KWidth of one circuit layer (wires)Peak process RAM, MiB (log scale)1,811.8 MiB20.39 MiB

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#

Allocations

Far fewer allocations for the same proof.

93–94%fewer allocations per proof than v1.1.0 the same day
05001,0001,5001,28285Width 4,09693% fewer1,698101Width 65,53694% fewer

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.

ConstraintWidthSparse (production)Dense reference
4-GiB address-space guard, concurrent jobs2,0481, 2, 4 and 8 jobs completed1, 2 and 4 jobs completed; allocation abort at 8
3-GiB cgroup with swap disabled, concurrent jobs2,0484 and 8 jobs completed4 jobs completed; killed by the out-of-memory mechanism at 8
3-GiB cgroup with swap disabled, one job8,192 to 65,536Each width returned one warmup and three timed proofsKilled 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.

ItemCondition
ComparisonTableWiring, a sparse gate-list oracle, against DerivedRegularWiring
Held fixedCircuit, request, proof, commitment and verifier body; call order randomized
TimedThe complete prepared typed verify_sync_op_with call, including request validation and native leaf and path hashing
ExcludedCircuit, wiring and commitment preparation, proof generation, encoding and transport
Host192-core host, single worker
SampleFive 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):

OperationDepth 24Depth 28Depth 32
Membership11.11×12.08×14.05×
Non-membership10.80×11.95×13.86×
Update18.95×19.96×23.68×
Prepared verification

The advantage grows as the tree gets deeper.

23.68×peak, single-leaf update at depth 32
0×5×10×15×20×25×11.11×12.08×14.05×Membership10.80×11.95×13.86×Non-membership18.95×19.96×23.68×Single-leaf update

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.

ItemCondition
ComparisonFresh path, which compiles the circuit and computes its commitment for every request, against the prepared path, which reuses that material
TimedPer-request proving path
ExcludedEncoding, transport and acceptance
SampleDepth 24; three processes per operation and mode, 1,000 timed requests per process; ratios compare run-matched process summaries, not individual requests
Reuse conditionSame operation kind, SMT parameters, strategy, configuration and circuit
Operationv1.2.0 fresh/preparedv1.1.0 fresh/prepared
MembershipAbout 7.66×About 3.69×
Non-membershipAbout 7.19×About 3.46×
UpdateAbout 10.13×About 4.45×
Repeated requests

Prepare the circuit once. Pay less for every request.

7.19–10.13×lower per-request proving time, prepared against fresh, depth 24, v1.2.0
0 ms80 ms160 ms240 ms320 ms155.6342.14129.9216.95Membershipv1.2.0: 7.66× below fresh159.4846.11130.9818.22Non-membershipv1.2.0: 7.19× below fresh289.0664.94250.0924.62Single-leaf updatev1.2.0: 10.13× below fresh

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 callv1.2.0 p50 (ms)v1.1.0 p50 (ms)
Compile with hints7.81617.9021
Derive verifier wiringUnchanged4.4190
Circuit commitment104.2647105.0273
Witness generation0.55520.5544
Prove on circuit16.352241.5387
Encode0.08690.0864
Derived verifierUnchanged5.8663
Table verifierUnchanged65.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.

ItemCondition
ComparisonParallel output policy against serial output policy; only encoding and encoded verification change mode
TimedThe complete prepared local batch: witness generation, proving, encoding and encoded verification
ExcludedPreparation, transport, post-timer proof hashing and logging, and state commits
WorkloadDepth 24, batch 768, 192 workers, two-field occupied payloads
SampleFive 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 checkSerial and parallel proof bytes are compared and preserve the canonical result
Operationv1.2.0 serial/parallel ratiov1.2.0 parallel (proofs/s)v1.2.0 serial (proofs/s)v1.1.0 serial/parallel ratiov1.1.0 parallel (proofs/s)v1.1.0 serial (proofs/s)
Membership14.64×2,264.06153.8110.71×1,593.17148.98
Non-membership14.10×2,107.57149.309.97×1,431.66144.01
Update14.45×1,815.31125.599.71×1,167.49121.01
Local batches

Parallel output keeps a full batch moving.

14.10–14.64×faster complete batch of 768 proofs, parallel against serial output, v1.2.0
0 s1 s2 s3 s4 s5 s6 s7 s5.160.484.990.34Membershipv1.2.0: 14.64× faster than serial5.330.545.140.36Non-membershipv1.2.0: 14.10× faster than serial6.350.666.120.42Single-leaf updatev1.2.0: 14.45× faster than serial

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.

ItemCondition
ComparisonEach operation's proof at depth 32 against the same operation's proof at depth 24
MeasuredLength of the complete inner-proof-v1 encoded proof, before any external wrapping
ProfilesMembership, non-membership and update at depths 24, 28 and 32
SampleThe encoded layout is fixed by the compiled circuit, so each profile has one proof length
ExcludedThe private witness, which is never part of the encoding
ProfileDepth 24Depth 32Change
Membership encoded proof176,948 bytes182,132 bytesAbout +2.93%
Non-membership encoded proof181,646 bytes182,132 bytesAbout +0.27%
Single-leaf update encoded proof186,992 bytes201,086 bytesAbout +7.54%
Proof size

Deeper trees add only a few percent to the proof.

+0.27–7.54%encoded proof bytes, depth 24 to 32, by operation
0 KiB50 KiB100 KiB150 KiB200 KiB173178178Membership177178178Non-membership183196196Single-leaf update

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.