Skip to content

Commit 3a380c3

Browse files
benches: run benches in a predictable order
1 parent 32db77c commit 3a380c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benches/src/argon2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::collections::HashSet;
1+
use std::collections::BTreeSet;
22

33
use argon2::*;
44
use criterion::{black_box, criterion_group, criterion_main, Criterion};
@@ -29,7 +29,7 @@ fn bench_default_params(c: &mut Criterion) {
2929
}
3030

3131
fn bench_vary_params(c: &mut Criterion) {
32-
let mut tests = HashSet::new();
32+
let mut tests = BTreeSet::new();
3333
// Vary `m_cost`.
3434
for m_cost in [2 * 1024, 16 * 1024, 32 * 1024, 64 * 1024, 256 * 1024] {
3535
tests.insert((m_cost, 4, 4));

0 commit comments

Comments
 (0)