Skip to content

Commit f248d62

Browse files
committed
Clean up bench.sh: remove redundant bench_compare.sh, fix --prev robustness
- Remove bench_compare.sh (fully superseded by bench.sh --go) - Add || true to --prev benchmark loop so missing packages on older commits don't abort the script
1 parent 722e3e1 commit f248d62

2 files changed

Lines changed: 3 additions & 102 deletions

File tree

tools/bench.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ if $RUN_PREV; then
163163
fi
164164
git checkout HEAD~1 -q
165165
moon install -q 2>/dev/null || true
166+
# Use the same package list — benchmarks on the previous commit may differ,
167+
# but moon bench silently skips packages that don't exist.
166168
for pkg in "${BENCH_PKGS[@]}"; do
167169
echo "--- $pkg ---"
168-
moon bench -p "$pkg" --target native --release 2>&1 | tee -a "$PREV_RAW"
170+
moon bench -p "$pkg" --target native --release 2>&1 | tee -a "$PREV_RAW" || true
169171
done
170172
git checkout - -q
171173
if $STASHED; then

tools/bench_compare.sh

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)