Generated by packages/zk-noir/src/bench.test.ts (QUANTLAYER_BENCH=1) on 2026-11-21.
Raw data: benchmarks.json. Re-run on your target hardware before capacity planning.
- Toolchain: Noir 1.0.0, Barretenberg 6.0.0, UltraHonk-BN254 (evm target: ZK, Keccak)
- Machine: Apple M2, 8 cores, 16 GiB, darwin 27.0.0, Node v26.13.1
- Method: median of 5 witness / 3 proving / 10 verification runs, 4 prover threads, after one warm-up proof. Peak memory is the resident set of the whole process tree during proving.
All circuits use depth-20 trees and compile to 2^16-gate UltraHonk circuits (dominated by 22–23 circomlib-Poseidon hashes). Proofs are 8,768 bytes.
Proving (Node, off-chain)
| Circuit | log₂ gates | Witness (ms) | Prove native (ms) | Prove WASM (ms) | Verify native (ms) | Verify WASM (ms) | Peak RSS native (MiB) | Peak RSS WASM (MiB) |
|---|---|---|---|---|---|---|---|---|
membership | 16 | 115 | 735 | 858 | 2.4 | 10 | 689 | 1,040 |
credential-ownership | 16 | 116 | 825 | 899 | 2.3 | 6.7 | 750 | 1,103 |
credential-validity | 16 | 117 | 787 | 908 | 2.4 | 6.4 | 742 | 1,168 |
balance-threshold | 16 | 117 | 706 | 907 | 2.2 | 6.6 | 746 | 1,159 |
nullifier-uniqueness | 16 | 118 | 725 | 931 | 2.2 | 6.5 | 806 | 1,241 |
eligibility | 16 | 118 | 721 | 922 | 2.2 | 6.3 | 784 | 1,326 |
First proof after start-up (CRS load, key construction): native 937 ms, WASM 1,365 ms.
On-chain (EVM, Cancun; gas includes the 21 000 base and calldata)
| Circuit | Honk verify gas | QuantLayerProofVerifier.verifyProof gas | Verifier runtime (bytes) | Linked libraries (bytes) |
|---|---|---|---|---|
membership | 2,610,037 | 2,666,867 | 18,032 | 14,261 |
credential-ownership | 2,600,610 | 2,641,497 | 18,096 | 14,261 |
credential-validity | 2,602,139 | 2,643,491 | 18,093 | 14,261 |
balance-threshold | 2,603,511 | 2,644,985 | 18,096 | 14,261 |
nullifier-uniqueness | 2,604,255 | 2,669,444 | 18,094 | 14,261 |
eligibility | 2,607,557 | 2,673,331 | 18,095 | 14,261 |
verifyProof adds the binding checks (field range, context, root registry, freshness, scope) and the
two SSTOREs that consume the context and nullifier on top of the Honk verification.