Skip to content

Commit 44acae3

Browse files
committed
Test runtime benchmarks on CI
1 parent 4bb2c1e commit 44acae3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

ci/check-runtime-benchmarks.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ bash -c "while true; do sleep 30; echo \$(date) - running ...; done" &
66
PING_LOOP_PID=$!
77
trap 'kill $PING_LOOP_PID' ERR 1 2 3 6
88

9-
# Check if the runtime benchmarks can be compiled.
10-
# Once we can actually run the benchmarks on CI, we will also execute them here.
11-
# Currently it is not possible because of `perf` permission issues when gathering perf. counters.
12-
cd collector/runtime-benchmarks
13-
cargo check
9+
# Install a toolchain.
10+
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
11+
bindir=`cargo run -p collector --bin collector install_next`
12+
13+
# Do some benchmarking.
14+
RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
15+
cargo run -p collector --bin collector -- \
16+
bench_runtime_local $bindir/rustc \
17+
--cargo $bindir/cargo \
18+
--iterations 1 \
19+
--id Test
1420

1521
kill $PING_LOOP_PID
1622
exit 0

0 commit comments

Comments
 (0)