Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
poseidon2.bench.cpp File Reference
#include "barretenberg/crypto/poseidon2/poseidon2.hpp"
#include "barretenberg/ecc/curves/bn254/fr.hpp"
#include <benchmark/benchmark.h>

Go to the source code of this file.

Functions

fr poseidon_function (const size_t count)
 
void native_poseidon2_commitment_bench (State &state) noexcept
 
 BENCHMARK (native_poseidon2_commitment_bench) -> Arg(10) ->Arg(1000) ->Arg(10000)
 
fr poseidon_hash_impl (const fr &x, const fr &y)
 
void poseidon_hash_bench (State &state) noexcept
 
 BENCHMARK (poseidon_hash_bench) -> Unit(benchmark::kMillisecond)
 
 BENCHMARK_MAIN ()
 

Function Documentation

◆ BENCHMARK() [1/2]

BENCHMARK ( native_poseidon2_commitment_bench  ) -> Arg(10) ->Arg(1000) ->Arg(10000)

◆ BENCHMARK() [2/2]

BENCHMARK ( poseidon_hash_bench  ) -> Unit(benchmark::kMillisecond)

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ native_poseidon2_commitment_bench()

void native_poseidon2_commitment_bench ( State &  state)
noexcept

Definition at line 19 of file poseidon2.bench.cpp.

◆ poseidon_function()

fr poseidon_function ( const size_t  count)

Definition at line 8 of file poseidon2.bench.cpp.

◆ poseidon_hash_bench()

void poseidon_hash_bench ( State &  state)
noexcept

Definition at line 34 of file poseidon2.bench.cpp.

◆ poseidon_hash_impl()

fr poseidon_hash_impl ( const fr x,
const fr y 
)

Definition at line 28 of file poseidon2.bench.cpp.