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)
249249 });
250250}
251251
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+
252265BENCHMARK (BenchRIPEMD160, benchmark::PriorityLevel::HIGH);
253266BENCHMARK (SHA1, benchmark::PriorityLevel::HIGH);
254267BENCHMARK (SHA256_STANDARD, benchmark::PriorityLevel::HIGH);
@@ -272,3 +285,4 @@ BENCHMARK(MuHash, benchmark::PriorityLevel::HIGH);
272285BENCHMARK (MuHashMul, benchmark::PriorityLevel::HIGH);
273286BENCHMARK (MuHashDiv, benchmark::PriorityLevel::HIGH);
274287BENCHMARK (MuHashPrecompute, benchmark::PriorityLevel::HIGH);
288+ BENCHMARK (MuHashFinalize, benchmark::PriorityLevel::HIGH);
You can’t perform that action at this time.
0 commit comments