aboutsummaryrefslogtreecommitdiffstats
path: root/benches/abseil_bench.cpp
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-04-13 16:44:23 +0200
committerFabrice <fabrice@schaub-dev.xyz>2026-04-13 16:44:23 +0200
commit8889837da535b1164d0fc52e8afeb671ad993b32 (patch)
treef781d48197eee3819534fb9c9e6bccd2988561a0 /benches/abseil_bench.cpp
parentb7210745c9d3920db5e09f3ebbe0f9cb7051311c (diff)
fix file naming
Diffstat (limited to 'benches/abseil_bench.cpp')
-rw-r--r--benches/abseil_bench.cpp87
1 files changed, 0 insertions, 87 deletions
diff --git a/benches/abseil_bench.cpp b/benches/abseil_bench.cpp
deleted file mode 100644
index 813bf51..0000000
--- a/benches/abseil_bench.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-#include <benchmark/benchmark.h>
-
-#include "bench_common.hpp"
-
-namespace {
-
-using namespace cmbench;
-
-static void BM_Insert_Scalar(benchmark::State& state) {
- bench_insert<AbseilAdapter<std::uint64_t, ScalarValue>>(
- state, scalar_workload(),
- {"absl::flat_hash_map", "c++", "Scalar", "Insert"});
-}
-static void BM_LookupHit_Scalar(benchmark::State& state) {
- bench_lookup_hit<AbseilAdapter<std::uint64_t, ScalarValue>>(
- state, scalar_workload(),
- {"absl::flat_hash_map", "c++", "Scalar", "LookupHit"});
-}
-static void BM_LookupMiss_Scalar(benchmark::State& state) {
- bench_lookup_miss<AbseilAdapter<std::uint64_t, ScalarValue>>(
- state, scalar_workload(),
- {"absl::flat_hash_map", "c++", "Scalar", "LookupMiss"});
-}
-static void BM_Erase_Scalar(benchmark::State& state) {
- bench_erase<AbseilAdapter<std::uint64_t, ScalarValue>>(
- state, scalar_workload(),
- {"absl::flat_hash_map", "c++", "Scalar", "Erase"});
-}
-
-static void BM_Insert_HandlePayload(benchmark::State& state) {
- bench_insert<AbseilAdapter<EntityId, ComponentPayload>>(
- state, entity_workload(),
- {"absl::flat_hash_map", "c++", "HandlePayload", "Insert"});
-}
-static void BM_LookupHit_HandlePayload(benchmark::State& state) {
- bench_lookup_hit<AbseilAdapter<EntityId, ComponentPayload>>(
- state, entity_workload(),
- {"absl::flat_hash_map", "c++", "HandlePayload", "LookupHit"});
-}
-static void BM_LookupMiss_HandlePayload(benchmark::State& state) {
- bench_lookup_miss<AbseilAdapter<EntityId, ComponentPayload>>(
- state, entity_workload(),
- {"absl::flat_hash_map", "c++", "HandlePayload", "LookupMiss"});
-}
-static void BM_Erase_HandlePayload(benchmark::State& state) {
- bench_erase<AbseilAdapter<EntityId, ComponentPayload>>(
- state, entity_workload(),
- {"absl::flat_hash_map", "c++", "HandlePayload", "Erase"});
-}
-
-static void BM_Insert_CompositeKey(benchmark::State& state) {
- bench_insert<AbseilAdapter<ComponentKey, ComponentMeta>>(
- state, component_workload(),
- {"absl::flat_hash_map", "c++", "CompositeKey", "Insert"});
-}
-static void BM_LookupHit_CompositeKey(benchmark::State& state) {
- bench_lookup_hit<AbseilAdapter<ComponentKey, ComponentMeta>>(
- state, component_workload(),
- {"absl::flat_hash_map", "c++", "CompositeKey", "LookupHit"});
-}
-static void BM_LookupMiss_CompositeKey(benchmark::State& state) {
- bench_lookup_miss<AbseilAdapter<ComponentKey, ComponentMeta>>(
- state, component_workload(),
- {"absl::flat_hash_map", "c++", "CompositeKey", "LookupMiss"});
-}
-static void BM_Erase_CompositeKey(benchmark::State& state) {
- bench_erase<AbseilAdapter<ComponentKey, ComponentMeta>>(
- state, component_workload(),
- {"absl::flat_hash_map", "c++", "CompositeKey", "Erase"});
-}
-
-} // namespace
-
-BENCHMARK(BM_Insert_Scalar);
-BENCHMARK(BM_LookupHit_Scalar);
-BENCHMARK(BM_LookupMiss_Scalar);
-BENCHMARK(BM_Erase_Scalar);
-
-BENCHMARK(BM_Insert_HandlePayload);
-BENCHMARK(BM_LookupHit_HandlePayload);
-BENCHMARK(BM_LookupMiss_HandlePayload);
-BENCHMARK(BM_Erase_HandlePayload);
-
-BENCHMARK(BM_Insert_CompositeKey);
-BENCHMARK(BM_LookupHit_CompositeKey);
-BENCHMARK(BM_LookupMiss_CompositeKey);
-BENCHMARK(BM_Erase_CompositeKey);