mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +02:00
Add Abseil+FNV-1a to benchmark/string.cpp
This commit is contained in:
@ -267,6 +267,15 @@ template<class K, class V> using multi_index_map_fnv1a = multi_index_container<
|
|||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
#ifdef HAVE_ABSEIL
|
||||||
|
|
||||||
|
template<class K, class V> using absl_node_hash_map_fnv1a =
|
||||||
|
absl::node_hash_map<K, V, fnv1a_hash>;
|
||||||
|
|
||||||
|
template<class K, class V> using absl_flat_hash_map_fnv1a =
|
||||||
|
absl::flat_hash_map<K, V, fnv1a_hash>;
|
||||||
|
|
||||||
|
#endif
|
||||||
//
|
//
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
@ -285,7 +294,10 @@ int main()
|
|||||||
#ifdef HAVE_ABSEIL
|
#ifdef HAVE_ABSEIL
|
||||||
|
|
||||||
test<absl::node_hash_map>( "absl::node_hash_map" );
|
test<absl::node_hash_map>( "absl::node_hash_map" );
|
||||||
|
test<absl_node_hash_map_fnv1a>( "absl::node_hash_map, FNV-1a" );
|
||||||
|
|
||||||
test<absl::flat_hash_map>( "absl::flat_hash_map" );
|
test<absl::flat_hash_map>( "absl::flat_hash_map" );
|
||||||
|
test<absl_flat_hash_map_fnv1a>( "absl::flat_hash_map, FNV-1a" );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user