10 for (
int i = 0; i < 10000; ++i) {
12 element[0] =
static_cast<uint8_t
>(i);
13 element[1] =
static_cast<uint8_t
>(i >> 8);
17 uint64_t siphash_k0 = 0;
27 for (
int i = 0; i < 10000; ++i) {
29 element[0] =
static_cast<uint8_t
>(i);
30 element[1] =
static_cast<uint8_t
>(i >> 8);
This implements a Golomb-coded set as defined in BIP 158.
std::unordered_set< Element, ByteVectorHash > ElementSet
std::vector< uint8_t > Element
Main entry point to nanobench's benchmarking facility.
ANKERL_NANOBENCH(NODISCARD) std Bench & batch(T b) noexcept
Sets the batch size.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & unit(char const *unit)
Sets the operation unit.
static void ConstructGCSFilter(benchmark::Bench &bench)
static void MatchGCSFilter(benchmark::Bench &bench)
BENCHMARK(ConstructGCSFilter)
static unsigned char elements[DATACOUNT][DATALEN]