11#include <unordered_map>
14template <
typename Map>
33 auto map = std::unordered_map<uint64_t, uint64_t>();
39 using Map = std::unordered_map<
uint64_t,
42 std::equal_to<uint64_t>,
44 sizeof(std::pair<const uint64_t, uint64_t>) + 4 *
sizeof(
void*)>>;
48 auto map = Map{0, std::hash<uint64_t>{}, std::equal_to<uint64_t>{}, &
pool_resource};
Forwards all allocations/deallocations to the PoolResource.
Main entry point to nanobench's benchmarking facility.
An extremely fast random generator.
void BenchFillClearMap(benchmark::Bench &bench, Map &map)
static void PoolAllocator_StdUnorderedMapWithPoolResource(benchmark::Bench &bench)
static void PoolAllocator_StdUnorderedMap(benchmark::Bench &bench)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.