Allow overriding {WARMUP,RUN}_COUNT using env

This commit is contained in:
cyqsimon 2023-11-05 20:19:10 +08:00 committed by Martin Nordholts
parent b5982a6174
commit d64c568196

View File

@ -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=''