Generated by packages/zk-noir/src/bench.test.ts (QUANTLAYER_BENCH=1) on 2026-11-13.
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 | 112 | 690 | 876 | 2.2 | 9.7 | 681 | 702 |
credential-ownership | 16 | 113 | 707 | 908 | 2.2 | 6.9 | 672 | 812 |
credential-validity | 16 | 114 | 719 | 896 | 2.2 | 6.2 | 721 | 664 |
balance-threshold | 16 | 113 | 724 | 907 | 2.2 | 6.9 | 717 | 697 |
nullifier-uniqueness | 16 | 117 | 725 | 918 | 2.2 | 6.9 | 717 | 775 |
eligibility | 16 | 117 | 726 | 919 | 2.2 | 6.7 | 725 | 744 |
First proof after start-up (CRS load, key construction): native 895 ms, WASM 1,412 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,145 | 2,657,038 | 18,032 | 14,261 |
credential-ownership | 2,600,382 | 2,634,332 | 18,096 | 14,261 |
credential-validity | 2,602,031 | 2,636,432 | 18,094 | 14,261 |
balance-threshold | 2,603,691 | 2,638,218 | 18,096 | 14,261 |
nullifier-uniqueness | 2,604,423 | 2,659,659 | 18,094 | 14,261 |
eligibility | 2,607,425 | 2,663,239 | 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.