Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Faster benchmarking for CI
Browse files Browse the repository at this point in the history
Increase that sample size manually when you're doing performance
work.
  • Loading branch information
garious committed Jul 13, 2018
1 parent 28d2449 commit a3b22d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion benches/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ fn bench(criterion: &mut Criterion) {
});
}

criterion_group!(benches, bench);
criterion_group!(
name = benches;
config = Criterion::default().sample_size(2);
targets = bench
);
criterion_main!(benches);
6 changes: 5 additions & 1 deletion benches/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@ fn bench(criterion: &mut Criterion) {
});
}

criterion_group!(benches, bench);
criterion_group!(
name = benches;
config = Criterion::default().sample_size(2);
targets = bench
);
criterion_main!(benches);
6 changes: 5 additions & 1 deletion benches/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ fn bench(criterion: &mut Criterion) {
});
}

criterion_group!(benches, bench);
criterion_group!(
name = benches;
config = Criterion::default().sample_size(2);
targets = bench
);
criterion_main!(benches);

0 comments on commit a3b22d0

Please sign in to comment.