From d64c5681964e31e03d4566052fc1ee04339919d4 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Sun, 5 Nov 2023 20:19:10 +0800 Subject: [PATCH] Allow overriding `{WARMUP,RUN}_COUNT` using env --- tests/benchmarks/run-benchmarks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/benchmarks/run-benchmarks.sh b/tests/benchmarks/run-benchmarks.sh index 34262b73..0f43bc6b 100755 --- a/tests/benchmarks/run-benchmarks.sh +++ b/tests/benchmarks/run-benchmarks.sh @@ -49,8 +49,8 @@ REPORT="$RESULT_DIR/report.md" TARGET_DIR="$(get_cargo_target_dir)" TARGET_RELEASE="${TARGET_DIR}/release/bat" -WARMUP_COUNT=3 -RUN_COUNT=10 +: ${WARMUP_COUNT:=3} +: ${RUN_COUNT:=10} # Determine which target to benchmark. BAT=''