10 std::vector<uint8_t> data(32);
14 data[0] =
count & 0xFF;
15 data[1] = (
count >> 8) & 0xFF;
16 data[2] = (
count >> 16) & 0xFF;
17 data[3] = (
count >> 24) & 0xFF;
20 data[0] = (
count >> 24) & 0xFF;
21 data[1] = (
count >> 16) & 0xFF;
22 data[2] = (
count >> 8) & 0xFF;
23 data[3] =
count & 0xFF;
RollingBloomFilter is a probabilistic "keep track of most recently inserted" set.
void insert(Span< const uint8_t > vKey)
bool contains(Span< const uint8_t > vKey) const
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
static void RollingBloom(benchmark::Bench &bench)
static void RollingBloomReset(benchmark::Bench &bench)