This is a copy from 0xPARC recursion-benchmarks repo containing only benchmark code for the Barretenberg backend.
Compare diverse properties (proving time, proof size, etc) for a recursive circuit that does the same set of operations (recursion, hash, signature verification, etc) across different proving systems.
Having a reproducible setup that we can run on different devices.
- barretenberg:
- setup:
- install Noir v0.31.0 and the Barretenberg backend
noirup --version 0.31.0
- (To get
noirup
, runcurl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash
)
- (To get
bbup
- (To get
bbup
, runcurl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash
)
- (To get
cd nonrust/barretenberg/browser
npm install && npm run build
- install Noir v0.31.0 and the Barretenberg backend
- to run the benchmarks:
- native:
cd nonrust/barretenberg
python native.py
- browser:
cd nonrust/barretenberg/browser
npm run preview
- go to http://localhost:4173/
- native:
- setup: