Skip to content

Commit

Permalink
Merge pull request #2 from cmazakas/feature/ripemd-160
Browse files Browse the repository at this point in the history
Feature/ripemd 160
  • Loading branch information
pdimov authored Jul 17, 2024
2 parents 67a4c0b + efb8166 commit 6670b6b
Show file tree
Hide file tree
Showing 11 changed files with 547 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/average.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <boost/hash2/xxhash.hpp>
#include <boost/hash2/md5.hpp>
#include <boost/hash2/sha1.hpp>
#include <boost/hash2/ripemd.hpp>
#include <boost/hash2/hash_append.hpp>
#include <boost/hash2/get_integral_result.hpp>
#include <boost/core/type_name.hpp>
Expand Down Expand Up @@ -61,6 +62,7 @@ template<class R> void test( int N )
test_<R, boost::hash2::siphash_64>( N );
test_<R, boost::hash2::md5_128>( N );
test_<R, boost::hash2::sha1_160>( N );
test_<R, boost::hash2::ripemd_160>( N );
test_<R, boost::hash2::hmac_md5_128>( N );
test_<R, boost::hash2::hmac_sha1_160>( N );

Expand Down
2 changes: 2 additions & 0 deletions benchmark/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <boost/hash2/xxhash.hpp>
#include <boost/hash2/md5.hpp>
#include <boost/hash2/sha1.hpp>
#include <boost/hash2/ripemd.hpp>
#include <boost/hash2/hash_append.hpp>
#include <boost/hash2/get_integral_result.hpp>
#include <boost/core/type_name.hpp>
Expand Down Expand Up @@ -50,6 +51,7 @@ void test( int N, int M )
test_<boost::hash2::siphash_64>( data, N, M );
test_<boost::hash2::md5_128>( data, N, M );
test_<boost::hash2::sha1_160>( data, N, M );
test_<boost::hash2::ripemd_160>( data, N, M );
test_<boost::hash2::hmac_md5_128>( data, N, M );
test_<boost::hash2::hmac_sha1_160>( data, N, M );

Expand Down
2 changes: 2 additions & 0 deletions benchmark/keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <boost/hash2/xxhash.hpp>
#include <boost/hash2/md5.hpp>
#include <boost/hash2/sha1.hpp>
#include <boost/hash2/ripemd.hpp>
#include <boost/hash2/hash_append.hpp>
#include <boost/hash2/get_integral_result.hpp>
#include <boost/core/type_name.hpp>
Expand Down Expand Up @@ -130,6 +131,7 @@ int main()
test2<boost::hash2::xxhash_64>( N, v );
test2<boost::hash2::siphash_32>( N, v );
test2<boost::hash2::siphash_64>( N, v );
test2<boost::hash2::ripemd_160>( N, v );

std::puts( "" );
}
2 changes: 2 additions & 0 deletions benchmark/unordered.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <boost/hash2/xxhash.hpp>
#include <boost/hash2/md5.hpp>
#include <boost/hash2/sha1.hpp>
#include <boost/hash2/ripemd.hpp>
#include <boost/hash2/hash_append.hpp>
#include <boost/hash2/get_integral_result.hpp>
#include <boost/unordered/unordered_flat_set.hpp>
Expand Down Expand Up @@ -154,6 +155,7 @@ int main()
test2<K, boost::hash2::siphash_64>( N, v );
test2<K, boost::hash2::md5_128>( N, v );
test2<K, boost::hash2::sha1_160>( N, v );
test2<K, boost::hash2::ripemd_160>( N, v );

std::puts( "" );
}
Loading

0 comments on commit 6670b6b

Please sign in to comment.