File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,19 @@ static void MuHashPrecompute(benchmark::Bench& bench)
249
249
});
250
250
}
251
251
252
+ static void MuHashFinalize (benchmark::Bench& bench)
253
+ {
254
+ FastRandomContext rng (true );
255
+ MuHash3072 acc{rng.randbytes (32 )};
256
+ acc /= MuHash3072{rng.rand256 ()};
257
+
258
+ bench.run ([&] {
259
+ uint256 out;
260
+ acc.Finalize (out);
261
+ acc /= MuHash3072{out};
262
+ });
263
+ }
264
+
252
265
BENCHMARK (BenchRIPEMD160, benchmark::PriorityLevel::HIGH);
253
266
BENCHMARK (SHA1, benchmark::PriorityLevel::HIGH);
254
267
BENCHMARK (SHA256_STANDARD, benchmark::PriorityLevel::HIGH);
@@ -272,3 +285,4 @@ BENCHMARK(MuHash, benchmark::PriorityLevel::HIGH);
272
285
BENCHMARK (MuHashMul, benchmark::PriorityLevel::HIGH);
273
286
BENCHMARK (MuHashDiv, benchmark::PriorityLevel::HIGH);
274
287
BENCHMARK (MuHashPrecompute, benchmark::PriorityLevel::HIGH);
288
+ BENCHMARK (MuHashFinalize, benchmark::PriorityLevel::HIGH);
You can’t perform that action at this time.
0 commit comments