Skip to content

Commit 53d9af7

Browse files
committed
Report benchmarks on travis success
1 parent c485001 commit 53d9af7

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ before_script:
1414
# rustup update makes it ready.
1515
- rustup update
1616
script: ./test-all.sh
17+
after_success:
18+
# run benchmarks if there is a success in testing
19+
- ./compare-master.sh

compare-master.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#/bin/bash
2+
3+
# record current bench results
4+
cargo bench --bench benchmark -- --noplot --save-baseline after
5+
6+
# switch to master and record its bench results
7+
git checkout master && \\
8+
cargo bench --bench benchmark -- --noplot --save-baseline before
9+
10+
# compare
11+
cargo install critcmp --force && \
12+
critcmp before after

0 commit comments

Comments
 (0)