Add ankerl::unordered_dense::hash to benchmarks

This commit is contained in:
Peter Dimov
2022-12-01 02:22:07 +02:00
parent 2f4efbced4
commit 4d9f7b8931
3 changed files with 38 additions and 8 deletions
+10 -1
View File
@@ -11,6 +11,9 @@
#ifdef HAVE_ABSEIL
# include "absl/hash/hash.h"
#endif
#ifdef HAVE_ANKERL_UNORDERED_DENSE
# include "ankerl/unordered_dense.h"
#endif
#ifdef HAVE_MULXP_HASH
# include "mulxp_hash.hpp"
#endif
@@ -470,6 +473,12 @@ int main()
#endif
#ifdef HAVE_ANKERL_UNORDERED_DENSE
test< ankerl::unordered_dense::hash<std::string> >( "ankerl::unordered_dense::hash" );
#endif
#ifdef HAVE_MULXP_HASH
test< mulxp0_hash_ >( "mulxp0_hash" );
@@ -484,7 +493,7 @@ int main()
for( auto const& x: times )
{
std::cout << std::setw( 22 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms\n";
std::cout << std::setw( 32 ) << ( x.label_ + ": " ) << std::setw( 5 ) << x.time_ << " ms\n";
}
}