From be467b3dc40d2432c2b76044dadd0faaf45a9ac0 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 1 Jul 2022 19:03:52 +0300 Subject: [PATCH] Add tsl::hopscotch_map to uint64.cpp --- benchmark/uint64.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/benchmark/uint64.cpp b/benchmark/uint64.cpp index 93401f2b..5b068da6 100644 --- a/benchmark/uint64.cpp +++ b/benchmark/uint64.cpp @@ -14,6 +14,9 @@ # include "absl/container/node_hash_map.h" # include "absl/container/flat_hash_map.h" #endif +#ifdef HAVE_TSL_HOPSCOTCH +# include "tsl/hopscotch_map.h" +#endif #include #include #include @@ -311,6 +314,16 @@ template using absl_flat_hash_map = #endif +#ifdef HAVE_TSL_HOPSCOTCH + +template using tsl_hopscotch_map = + tsl::hopscotch_map, std::equal_to, allocator_for>; + +template using tsl_hopscotch_pg_map = + tsl::hopscotch_pg_map, std::equal_to, allocator_for>; + +#endif + int main() { init_indices(); @@ -324,6 +337,13 @@ int main() test( "absl::node_hash_map" ); test( "absl::flat_hash_map" ); +#endif + +#ifdef HAVE_TSL_HOPSCOTCH + + test( "tsl::hopscotch_map" ); + test( "tsl::hopscotch_pg_map" ); + #endif std::cout << "---\n\n";