Gas Estimation
Cost estimation for ZK circuits and optimizations
Writing Circuits
⛽ Gas Consumption by Framework and Schema
This table compares gas consumption across different ZK frameworks and schemas. Lower gas consumption is highlighted with greener colors.
Framework | Schema | Public Inputs | Sepolia Deployment Gas | Sepolia Function Gas |
---|---|---|---|---|
gnark | groth16 | 2 | 1,917,298 | 220,583 |
gnark | groth16(compressed proof) | 2 | 1,945,169 | 231,209 |
gnark | groth16 with pedersen | 1 | 1,439,031 | 337,291 |
gnark | groth16(compressed with pedersen) | 1 | 1,439,031 | 350,842 |
gnark | plonk | 2 | 2,083,848 | 287,310 |
snarkjs | groth16 | 2 | 412,528 | 221,305 |
snarkjs | plonk | 2 | 1,591,128 | 291,197 |
snarkjs | fflonk | 2 | 5,273,847 | 201,077 |
noir | plonk | 1 | 2,571,102 | 441,681 |
halo2 | plonk(degree:16) | 16 | 308,351 + 828,497 | 321,377 |
halo2 | plonk(degree:16) | 2 | 308,315 + 828,497 | 305,073 |
halo2 | plonk(degree:16, efixed:200) | 2 | 2,904,633 + 841,012 | 307,900 |
Excellent
Very Good
Good
Moderate
High
Data source: https://github.com/wizicer/zkp-solidity-gas