From 35f96b39afb6e9dfd102647e0524aa7e7c3589b5 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 9 Dec 2022 01:53:43 +0200 Subject: [PATCH] Add mulx to benchmark/uuid.cpp --- benchmark/uuid.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/benchmark/uuid.cpp b/benchmark/uuid.cpp index 3363bee0..d89181f5 100644 --- a/benchmark/uuid.cpp +++ b/benchmark/uuid.cpp @@ -340,8 +340,11 @@ template using std_unordered_map = template using boost_unordered_map = boost::unordered_map, std::equal_to, allocator_for>; -template using boost_unordered_flat_map = - boost::unordered_flat_map, std::equal_to, allocator_for>; +template using boost_unordered_flat_map_xmx = + boost::unordered_flat_map, std::equal_to, allocator_for, boost::unordered::detail::foa::xmx_mix>; + +template using boost_unordered_flat_map_mulx = + boost::unordered_flat_map, std::equal_to, allocator_for, boost::unordered::detail::foa::mulx_mix>; #ifdef HAVE_ABSEIL @@ -366,7 +369,8 @@ int main() test( "std::unordered_map" ); test( "boost::unordered_map" ); - test( "boost::unordered_flat_map" ); + test( "boost::unordered_flat_map, xmx" ); + test( "boost::unordered_flat_map, mulx" ); #ifdef HAVE_ANKERL_UNORDERED_DENSE @@ -385,7 +389,7 @@ int main() for( auto const& x: times ) { - std::cout << std::setw( 30 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms, " << std::setw( 9 ) << x.bytes_ << " bytes in " << x.count_ << " allocations\n"; + std::cout << std::setw( 33 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms, " << std::setw( 9 ) << x.bytes_ << " bytes in " << x.count_ << " allocations\n"; } }