This repository contains a bunch of extendable benchmarks mostly for following containers:
std:unordered_mapfrom STL.google::dense_hash_mapfromsparsehash/sparsehashv2.0.4.google::sparse_hash_mapfromsparsehash/sparsehashv2.0.4.tsl::sparse_mapfromtessil/sparse-mapv0.6.2.tsl::hopscotch_mapfromtessil/hopscotch-mapv2.3.0.tsl::robin_mapfromtessil/robin-mapv0.6.3.
The keys and values are generally set to 64-bit integers to mimic most workloads.
Keys are generated with the uniform ditribution. The hash function is set to std::hash.
Running bash -i build.sh will build following executables:
./build/build/bin/mixed_ops- speed test comparing insertions, removals and lookups across containers../build/build/bin/ram_usage- a benchmark analyzing the space overhead of each container, which shouldn't be called directly, only throughpython ram_usage_bench.py../build/build/bin/ram_speed- a memory-bandwidth utilization benchmark.