Skip to content

Commit

Permalink
bench: Fix BLAKE2b benchmark (orion-rs#270)
Browse files Browse the repository at this point in the history
* bench: Fix BLAKE2b benchmark

* fmt
  • Loading branch information
brycx authored Jan 30, 2022
1 parent ed60c15 commit 5db9dfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ mod hash {
BenchmarkId::new("compute hash", *size),
&input,
|b, input_message| {
b.iter(|| blake2b::Hasher::Blake2b512.digest(&input_message).unwrap())
b.iter(|| {
blake2::blake2b::Hasher::Blake2b512
.digest(&input_message)
.unwrap()
})
},
);
}
Expand Down

0 comments on commit 5db9dfe

Please sign in to comment.