Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
gate_separator.bench.hpp
Go to the documentation of this file.
3#include <benchmark/benchmark.h>
4
5using namespace benchmark;
6using namespace bb;
7
8namespace {
9
10void compute_pow_poly(benchmark::State& state)
11{
12 // just set up huge vector
13 std::vector<bb::fr> betas{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
14 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 };
15
16 for (auto _ : state) {
17 int64_t num_betas = state.range(0);
18 std::vector<bb::fr> cur_betas(betas.begin(), betas.begin() + num_betas);
19 GateSeparatorPolynomial poly{ cur_betas, cur_betas.size() };
20 }
21}
22
23BENCHMARK(compute_pow_poly)->Unit(benchmark::kMillisecond)->Arg(20);
24
25} // namespace
BENCHMARK_MAIN()
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
BENCHMARK(bench_commit_structured_random_poly< curve::BN254 >) -> Unit(benchmark::kMillisecond)
Implementation of the methods for the -polynomials used in in Sumcheck.