mirror of
https://github.com/logos-storage/zk-benchmarks.git
synced 2026-01-09 17:23:09 +00:00
Benchmarking inside sp1 ZKVM
- The
sp1/benchescontains the following hashprogram(the source code that will be proven inside the zkVM): sha256, keccak, blake2, blake3, and poseidon2 ober BN256. scriptfolder contains the benchmarking code that contains proof generation and verification code for each hash program.- The
build.shscript builds the whole code. run.shandrun_tree.shruns the benchmark. (run.shfor sha256, keccak, blake2, blake3 andrun_tree.shfor poseidon2 over BN256)- Benchmarks can be parameterized using environment variables. By convention, we start the names of these environment variables with the
ZKBENCH_prefix. - By default the
run.shwill run the sha256 benchmark over 1KB of data. other hashes can be run by settig the environment variables accordingly. - Additional files
bench.cfgandbench_tree.cfgspecifies the configurations and parameters.