1#include <benchmark/benchmark.h>
6using namespace benchmark;
12static void construct_proof_megahonk_zk(State& state,
15 size_t num_iterations = 10;
16 bb::mock_circuits::construct_proof_with_specified_num_iterations<MegaZKProver>(
17 state, test_circuit_function, num_iterations);
23static void construct_proof_megahonk_power_of_2_zk(State& state)
noexcept
25 auto log2_of_gates =
static_cast<size_t>(state.range(0));
26 bb::mock_circuits::construct_proof_with_specified_num_iterations<MegaZKProver>(
27 state, &bb::mock_circuits::generate_basic_arithmetic_circuit<MegaCircuitBuilder>, log2_of_gates);
33BENCHMARK_CAPTURE(construct_proof_megahonk_zk, sha256, &generate_sha256_test_circuit<MegaCircuitBuilder>)
35BENCHMARK_CAPTURE(construct_proof_megahonk_zk,
keccak, &stdlib::generate_keccak_test_circuit<MegaCircuitBuilder>)
39 &stdlib::generate_ecdsa_verification_test_circuit<MegaCircuitBuilder>)
42BENCHMARK(construct_proof_megahonk_power_of_2_zk)
Entry point for Barretenberg command-line interface.
BENCHMARK_CAPTURE(bench_round_mega, oink, [](auto &prover) { prover.run_oink_prover_on_each_incomplete_key();}) -> DenseRange(14, 20) -> Unit(kMillisecond)
BENCHMARK(vector_of_evaluations) -> DenseRange(15, 21) ->Unit(kMillisecond) ->Iterations(1)