File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 7
7
#include < crypto/ripemd160.h>
8
8
#include < crypto/sha1.h>
9
9
#include < crypto/sha256.h>
10
+ #include < crypto/sha3.h>
10
11
#include < crypto/sha512.h>
11
12
#include < crypto/siphash.h>
12
13
#include < hash.h>
@@ -43,6 +44,15 @@ static void SHA256(benchmark::Bench& bench)
43
44
});
44
45
}
45
46
47
+ static void SHA3_256_1M (benchmark::Bench& bench)
48
+ {
49
+ uint8_t hash[SHA3_256::OUTPUT_SIZE];
50
+ std::vector<uint8_t > in (BUFFER_SIZE,0 );
51
+ bench.batch (in.size ()).unit (" byte" ).run ([&] {
52
+ SHA3_256 ().Write (in).Finalize (hash);
53
+ });
54
+ }
55
+
46
56
static void SHA256_32b (benchmark::Bench& bench)
47
57
{
48
58
std::vector<uint8_t > in (32 ,0 );
@@ -99,6 +109,7 @@ BENCHMARK(RIPEMD160);
99
109
BENCHMARK (SHA1);
100
110
BENCHMARK (SHA256);
101
111
BENCHMARK (SHA512);
112
+ BENCHMARK (SHA3_256_1M);
102
113
103
114
BENCHMARK (SHA256_32b);
104
115
BENCHMARK (SipHash_32b);
You can’t perform that action at this time.
0 commit comments