diff --git a/benchmark/uint32.cpp b/benchmark/uint32.cpp index f983a05a..9747dcbf 100644 --- a/benchmark/uint32.cpp +++ b/benchmark/uint32.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";