Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
indexed_tree.bench.cpp File Reference

Go to the source code of this file.

Typedefs

using StoreType = ContentAddressedCachedTreeStore< NullifierLeafValue >
 
using Poseidon2 = ContentAddressedIndexedTree< StoreType, Poseidon2HashPolicy >
 
using Pedersen = ContentAddressedIndexedTree< StoreType, PedersenHashPolicy >
 

Enumerations

enum  InsertionStrategy { SEQUENTIAL , BATCH }
 

Functions

template<typename TreeType >
void add_values (TreeType &tree, const std::vector< NullifierLeafValue > &values)
 
template<typename TreeType >
void add_values_with_witness (TreeType &tree, const std::vector< NullifierLeafValue > &values)
 
template<typename TreeType >
void add_values_sequentially (TreeType &tree, const std::vector< NullifierLeafValue > &values)
 
template<typename TreeType >
void add_values_sequentially_with_witness (TreeType &tree, const std::vector< NullifierLeafValue > &values)
 
template<typename TreeType , InsertionStrategy strategy>
void multi_thread_indexed_tree_bench (State &state) noexcept
 
template<typename TreeType , InsertionStrategy strategy>
void single_thread_indexed_tree_bench (State &state) noexcept
 
template<typename TreeType , InsertionStrategy strategy>
void multi_thread_indexed_tree_with_witness_bench (State &state) noexcept
 
template<typename TreeType , InsertionStrategy strategy>
void single_thread_indexed_tree_with_witness_bench (State &state) noexcept
 
 Unit (benchmark::kMillisecond) -> RangeMultiplier(2) ->Range(2, MAX_BATCH_SIZE) ->Iterations(1000)
 
 BENCHMARK_MAIN ()
 

Variables

const size_t TREE_DEPTH = 40
 
const size_t MAX_BATCH_SIZE = 64
 

Typedef Documentation

◆ Pedersen

◆ Poseidon2

◆ StoreType

Enumeration Type Documentation

◆ InsertionStrategy

Enumerator
SEQUENTIAL 
BATCH 

Definition at line 99 of file indexed_tree.bench.cpp.

Function Documentation

◆ add_values()

template<typename TreeType >
void add_values ( TreeType tree,
const std::vector< NullifierLeafValue > &  values 
)

Definition at line 26 of file indexed_tree.bench.cpp.

◆ add_values_sequentially()

template<typename TreeType >
void add_values_sequentially ( TreeType tree,
const std::vector< NullifierLeafValue > &  values 
)

Definition at line 62 of file indexed_tree.bench.cpp.

◆ add_values_sequentially_with_witness()

template<typename TreeType >
void add_values_sequentially_with_witness ( TreeType tree,
const std::vector< NullifierLeafValue > &  values 
)

Definition at line 81 of file indexed_tree.bench.cpp.

◆ add_values_with_witness()

template<typename TreeType >
void add_values_with_witness ( TreeType tree,
const std::vector< NullifierLeafValue > &  values 
)

Definition at line 44 of file indexed_tree.bench.cpp.

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ multi_thread_indexed_tree_bench()

template<typename TreeType , InsertionStrategy strategy>
void multi_thread_indexed_tree_bench ( State &  state)
noexcept

Definition at line 101 of file indexed_tree.bench.cpp.

◆ multi_thread_indexed_tree_with_witness_bench()

template<typename TreeType , InsertionStrategy strategy>
void multi_thread_indexed_tree_with_witness_bench ( State &  state)
noexcept

Definition at line 184 of file indexed_tree.bench.cpp.

◆ single_thread_indexed_tree_bench()

template<typename TreeType , InsertionStrategy strategy>
void single_thread_indexed_tree_bench ( State &  state)
noexcept

Definition at line 142 of file indexed_tree.bench.cpp.

◆ single_thread_indexed_tree_with_witness_bench()

template<typename TreeType , InsertionStrategy strategy>
void single_thread_indexed_tree_with_witness_bench ( State &  state)
noexcept

Definition at line 226 of file indexed_tree.bench.cpp.

◆ Unit()

Unit ( benchmark::kMillisecond  ) -> RangeMultiplier(2) ->Range(2, MAX_BATCH_SIZE) ->Iterations(1000)

Variable Documentation

◆ MAX_BATCH_SIZE

const size_t MAX_BATCH_SIZE = 64

Definition at line 24 of file indexed_tree.bench.cpp.

◆ TREE_DEPTH

const size_t TREE_DEPTH = 40

Definition at line 23 of file indexed_tree.bench.cpp.