3#include <benchmark/benchmark.h>
5using namespace benchmark;
10 std::vector<fr>
inputs(count);
11 for (
size_t i = 0; i < count; ++i) {
21 for (
auto _ : state) {
22 const size_t count = (
static_cast<size_t>(state.range(0)));
30 std::vector<fr> to_hash{ x, y };
38 for (
auto _ : state) {
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
Entry point for Barretenberg command-line interface.
fr poseidon_hash_impl(const fr &x, const fr &y)
void poseidon_hash_bench(State &state) noexcept
BENCHMARK(native_poseidon2_commitment_bench) -> Arg(10) ->Arg(1000) ->Arg(10000)
void native_poseidon2_commitment_bench(State &state) noexcept
fr poseidon_function(const size_t count)
static field random_element(numeric::RNG *engine=nullptr) noexcept