Skip to content

Commit

Permalink
[#14]
Browse files Browse the repository at this point in the history
* filter out benchmark changes < 2%
* return sample size to 20
  • Loading branch information
clintfred committed Oct 18, 2018
1 parent 7f48da6 commit c5bb1fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis_scripts/cmp-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ]; then
# Bench the current commit that was pushed
git checkout -f "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
cargo bench -- --save-baseline current-benchmark
critcmp master-benchmark current-benchmark
# compare the before/after results; filter out anything less than 2% change
critcmp master-benchmark current-benchmark -t 2
fi
2 changes: 1 addition & 1 deletion benches/api_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ fn criterion_benchmark(c: &mut Criterion) {

criterion_group! {
name = benches;
config = Criterion::default().sample_size(5); //TODO temp change for faster testing, change back to 20
config = Criterion::default().sample_size(20);
targets = criterion_benchmark
}
criterion_main!(benches);

0 comments on commit c5bb1fd

Please sign in to comment.