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.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static void RollingBloom(benchmark::Bench &bench)
static void RollingBloomReset(benchmark::Bench &bench)