From 492df9c9c6644ac964880c3f3369ea280c037afa Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 25 Oct 2022 14:33:07 +0200 Subject: [PATCH] restored uint64.cpp --- benchmark/uint64.cpp | 47 +------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/benchmark/uint64.cpp b/benchmark/uint64.cpp index e6eb18d0..a2c1b3a3 100644 --- a/benchmark/uint64.cpp +++ b/benchmark/uint64.cpp @@ -5,14 +5,12 @@ #define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING #include -#include #include #include #include #include #include #include -#include #ifdef HAVE_ABSEIL # include "absl/container/node_hash_map.h" # include "absl/container/flat_hash_map.h" @@ -313,46 +311,6 @@ template using std_unordered_map = template using boost_unordered_map = boost::unordered_map, std::equal_to, allocator_for>; -template struct map_types -{ - using key_type = Key; - using raw_key_type = typename std::remove_const::type; - using raw_mapped_type = typename std::remove_const::type; - - using init_type = std::pair; - using moved_type = std::pair; - using value_type = std::pair; - - template - static raw_key_type const& extract(std::pair const& kv) - { - return kv.first; - } - - static moved_type move(value_type& x) - { - // TODO: we probably need to launder here - return {std::move(const_cast(x.first)), - std::move(const_cast(x.second))}; - } -}; - -template -using boost_unordered_detail_foa_table = - boost::unordered::detail::foa::table, - absl::container_internal::hash_default_hash, std::equal_to, - allocator_for >; - -template -using boost_unordered_flat_map = boost::unordered::unordered_flat_map, std::equal_to, - allocator_for >; - -template -using rc15_flat_map = foa_unordered_rc_map, std::equal_to, - allocator_for >; - #ifdef HAVE_ABSEIL template using absl_node_hash_map = @@ -389,9 +347,6 @@ int main() test( "std::unordered_map" ); test( "boost::unordered_map" ); - test( "boost_unordered_detail_foa_table" ); - test( "boost::unordered_flat_map" ); - test( "rc15_flat_map" ); test( "multi_index_map" ); #ifdef HAVE_ABSEIL @@ -419,7 +374,7 @@ int main() for( auto const& x: times ) { - std::cout << std::setw( 34 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms, " << std::setw( 9 ) << x.bytes_ << " bytes in " << x.count_ << " allocations\n"; + std::cout << std::setw( 25 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms, " << std::setw( 9 ) << x.bytes_ << " bytes in " << x.count_ << " allocations\n"; } }