File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ while : ; do
22
22
# Install measureme tooling
23
23
cargo install --git https://github.com/rust-lang/measureme --branch stable flamegraph crox summarize
24
24
25
- target/release/collector bench_next $SITE_URL --self-profile --bench-rustc --db $DATABASE ;
26
- echo finished run at ` date` ;
27
-
28
- # Wait a little bit before the next run starts.
29
- sleep 120
25
+ target/release/collector bench_next $SITE_URL --self-profile --bench-rustc --db $DATABASE
26
+ STATUS=$?
27
+ echo finished run at ` date` with exit code $STATUS
28
+
29
+ # Wait a bit if the command has failed.
30
+ if [ $STATUS -ne 0 ]; then
31
+ sleep 120
32
+ fi
30
33
done
Original file line number Diff line number Diff line change @@ -747,6 +747,12 @@ fn main_result() -> anyhow::Result<i32> {
747
747
c
748
748
} else {
749
749
println ! ( "no artifact to benchmark" ) ;
750
+
751
+ // Sleep for a bit to avoid spamming the perf server too much
752
+ // This sleep serves to remove a needless sleep in `collector/collect.sh` when
753
+ // a benchmark was actually executed.
754
+ std:: thread:: sleep ( Duration :: from_secs ( 60 * 2 ) ) ;
755
+
750
756
// no missing artifacts
751
757
return Ok ( 0 ) ;
752
758
} ;
You can’t perform that action at this time.
0 commit comments