This repository hosts the source code and resources for benchmarking various Zero-Knowledge (ZK) proofs. It builds upon the original repositories of Halo2, RISC0, Nexus, SP1, Jolt, Circom, and Powdr with our implementations of proofs including but not limited to SHA256, Fibonacci, Poseidon operations.
Our aim is to benchmark the performance of these proofs, comparing them in terms of time, space, and other metrics. This comprehensive comparison will not only highlight the most popular ZK proofs and their implementations but also deepen our understanding of their inner workings, developer friendliness and proving systems.
-
Benchmark Operations:
- Fibonacci: Variants 1, 10, 100, 1000, 10000
- SHA256: Variants 32b, 1k, 10k Bytes
- Poseidon: Variants 32b, 100b
-
Additional Benchmarks:
- Arithmetic Operations: Addition, Subtraction, Multiplication, Division
- Loop: Variants 10, 100, 1000
- Hash Functions: Pederson, RPO, Keccak (Variants 1k, 10k Bytes)
- Merkle Tree: Generation, Membership/Inclusion, Merge
- nth Prime: Variants 1, 10, 100, 1000, 10000
- Cryptographic Verifications: ECDSA, Elliptic Curve, BLS Verification, BLS Aggregation
- Prover Time
- Verifier Time
- Prover Space
- Verifier Space
- Proof Size
- Parallel Execution
- CPU Usage
- Memory Usage
- Verifier Gas Consumption
- Cycles Count
- Developer Friendliness
The detailed reports can be found in the reports directory.
Detailed report has metrics for other variants and additional operations.
- Macbook M1 Pro: Core 8, Memory 8 GB
- AlmaLinux 8.10: Core 16, Memory 32 GB, Disk 1 TB
- Windows 11: Core 16, Memory 32 GB, Disk 1 TB
- Intel(R): Core 4 - Memory 8GB
- Macbook M2 Pro: Core 16, Memory 16 GB
Each project has its own README file with instructions on how to install the dependencies and run the benchmarks.
Please refer to the issues.
This project is part of the ZK and Scaling Bootcamp organized by Encode club.
- Tanmoy : https://x.com/mtanm0y
- Rosemary :https://x.com/rosekoikara
- Yogesh : https://x.com/yogesh_eth
- Anubha
- Benchmarking ZKP Development Frameworks: the Pantheon of ZKP
- Lurk 0.5 Benchmarks
- Lita Benchmark
- ZK Benchmark
- a16z Benchmark
- A zkVM Survey for the Nomos Coordination Layer
- Your definitive guide to zkVMs
- Risc Zero Benchmark
Special thanks to the ZK and Scaling Bootcamp team for organizing this event and providing us with the opportunity to learn and contribute to the ZK space.