Skip to content

Commit 91e4f78

Browse files
authored
hash bench
Signed-off-by: GitHub <[email protected]>
1 parent 45c5f2f commit 91e4f78

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

benchmarks/benches/criterion.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ pub fn criterion_benchmark(c: &mut Criterion) {
3636
});
3737
});
3838

39+
40+
c.bench_function("hash", |b| {
41+
b.iter(|| {
42+
for i in &valid_values_f32 {
43+
let hash = i.hash();
44+
black_box(hash);
45+
}
46+
});
47+
});
48+
3949
c.bench_function("sort_positive", |b| {
4050
let valid_values_f32 = values_f32
4151
.iter()

0 commit comments

Comments
 (0)