We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c485001 commit 53d9af7Copy full SHA for 53d9af7
2 files changed
.travis.yml
@@ -14,3 +14,6 @@ before_script:
14
# rustup update makes it ready.
15
- rustup update
16
script: ./test-all.sh
17
+after_success:
18
+ # run benchmarks if there is a success in testing
19
+ - ./compare-master.sh
compare-master.sh
@@ -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