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.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6
9#include <benchmark/benchmark.h>
10
11using namespace benchmark;
12using namespace bb;
13
14namespace {
15
16void compute_pow_poly(benchmark::State& state)
17{
18 // just set up huge vector
19 std::vector<bb::fr> betas{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
20 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 };
21
22 for (auto _ : state) {
23 int64_t num_betas = state.range(0);
24 std::vector<bb::fr> cur_betas(betas.begin(), betas.begin() + num_betas);
25 GateSeparatorPolynomial poly{ cur_betas, cur_betas.size() };
26 }
27}
28
29BENCHMARK(compute_pow_poly)->Unit(benchmark::kMillisecond)->Arg(20);
30
31} // namespace
BENCHMARK_MAIN()
std::vector< FF > betas
The challenges .
Entry point for Barretenberg command-line interface.
BENCHMARK(vector_of_evaluations) -> DenseRange(15, 21) ->Unit(kMillisecond) ->Iterations(1)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Implementation of the methods for the -polynomials used in Protogalaxy and -polynomials used in Sumch...