Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Benchmark commit function (AztecProtocol#4178)
Straightforwardly added a benchmark to our fundamental `commit` function over BN254. Results: ``` % taskset -c 0-15 ./bin/commit_bench 1m 4s ~/barretenberg-cpp/build master + mainframe 2024-01-22T16:21:55+00:00 Running ./bin/commit_bench Run on (128 X 2649.99 MHz CPU s) CPU Caches: L1 Data 32 KiB (x64) L1 Instruction 32 KiB (x64) L2 Unified 512 KiB (x64) L3 Unified 32768 KiB (x8) Load Average: 6.56, 8.97, 11.08 ------------------------------------------------------------------------ Benchmark Time CPU Iterations ------------------------------------------------------------------------ bench_commit<curve::BN254>/10 0.443 ms 0.351 ms 2010 bench_commit<curve::BN254>/11 0.853 ms 0.828 ms 833 bench_commit<curve::BN254>/12 0.900 ms 0.874 ms 860 bench_commit<curve::BN254>/13 0.845 ms 0.819 ms 788 bench_commit<curve::BN254>/14 1.06 ms 0.857 ms 822 bench_commit<curve::BN254>/15 1.32 ms 0.918 ms 744 bench_commit<curve::BN254>/16 2.08 ms 1.15 ms 606 bench_commit<curve::BN254>/17 3.42 ms 1.65 ms 421 bench_commit<curve::BN254>/18 5.21 ms 2.37 ms 300 bench_commit<curve::BN254>/19 10.2 ms 2.69 ms 200 bench_commit<curve::BN254>/20 21.4 ms 1.60 ms 331 bench_commit<curve::BN254>/21 53.9 ms 1.88 ms 100 bench_commit<curve::BN254>/22 103 ms 3.38 ms 100 bench_commit<curve::BN254>/23 225 ms 9.47 ms 55 bench_commit<curve::BN254>/24 505 ms 30.1 ms 10 ```
- Loading branch information