diff --git a/benchmark/unordered.cpp b/benchmark/unordered.cpp index 1e3e342..7519b50 100644 --- a/benchmark/unordered.cpp +++ b/benchmark/unordered.cpp @@ -170,28 +170,6 @@ template<> struct fnv1a_hash_impl<64> struct fnv1a_hash: fnv1a_hash_impl< std::numeric_limits::digits > {}; -// old_boost_hash - -class old_boost_hash -{ -public: - - std::size_t operator()( std::string const& st ) const BOOST_NOEXCEPT - { - char const * p = st.data(); - std::size_t n = st.size(); - - std::size_t h = 0; - - for( std::size_t i = 0; i < n; ++i ) - { - h ^= static_cast( p[i] ) + 0x9e3779b9 + ( h << 6 ) + ( h >> 2 ); - } - - return h; - } -}; - // mulxp_hash #ifdef HAVE_MULXP_HASH @@ -387,7 +365,6 @@ int main() test_hash_speed( N * 16, v ); test_hash_speed( N * 16, v ); test_hash_speed( N * 16, v ); - test_hash_speed( N * 16, v ); test_hash_speed >( N * 16, v ); test_hash_speed >( N * 16, v ); #ifdef HAVE_ABSEIL @@ -421,7 +398,6 @@ int main() test_hash_collision( N * 16, v, n ); test_hash_collision( N * 16, v, n ); test_hash_collision( N * 16, v, n ); - test_hash_collision( N * 16, v, n ); test_hash_collision >( N * 16, v, n ); test_hash_collision >( N * 16, v, n ); #ifdef HAVE_ABSEIL @@ -444,7 +420,6 @@ int main() test_container_speed( N, v ); test_container_speed( N, v ); test_container_speed( N, v ); - test_container_speed( N, v ); test_container_speed >( N, v ); test_container_speed >( N, v ); #ifdef HAVE_ABSEIL diff --git a/benchmark/unordered_flat.cpp b/benchmark/unordered_flat.cpp index 135d122..81f365e 100644 --- a/benchmark/unordered_flat.cpp +++ b/benchmark/unordered_flat.cpp @@ -364,30 +364,6 @@ struct fnv1a_hash: fnv1a_hash_impl< std::numeric_limits::digits > using is_avalanching = void; }; -// old_boost_hash - -class old_boost_hash -{ -public: - - // not avalanching - - std::size_t operator()( std::string const& st ) const BOOST_NOEXCEPT - { - char const * p = st.data(); - std::size_t n = st.size(); - - std::size_t h = 0; - - for( std::size_t i = 0; i < n; ++i ) - { - h ^= static_cast( p[i] ) + 0x9e3779b9 + ( h << 6 ) + ( h >> 2 ); - } - - return h; - } -}; - // std_hash struct std_hash: std::hash @@ -463,7 +439,6 @@ int main() test< mul31_hash >( "mul31_hash" ); test< mul31_unrolled_hash >( "mul31_unrolled_hash" ); test< fnv1a_hash >( "fnv1a_hash" ); - test< old_boost_hash >( "old_boost_hash" ); #ifdef HAVE_ABSEIL