From 3a5f8797496eae94d96df733928969c64697082e Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 15 Jun 2024 20:16:33 +0200 Subject: [PATCH] Calculate confidence interval for benchmark measurements --- scripts/ci/run_benchmarks.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 25f0a3690..70544030d 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -2,11 +2,11 @@ set -eou pipefail function usage { - echo "Usage: $0 -f -r -s -b " + echo "Usage: $0 -f -r -s -b -o -g " exit 1 } -while getopts ":f:r:s:b:o:g" opt; do +while getopts ":f:r:s:b:o:g:" opt; do case $opt in f) FOLDER="$OPTARG" ;; @@ -29,7 +29,7 @@ while getopts ":f:r:s:b:o:g" opt; do esac done -if [ -z "${FOLDER:-}" ] || [ -z "${RESULTS_FOLDER:-}" ] || [ -z "${SCRIPTS_FOLDER:-}" ] || [ -z "${BINARIES_FOLDER:-}" || [ -z "${OSM_PBF:-}" || [ -z "${GPS_TRACES:-}" ]; then +if [ -z "${FOLDER:-}" ] || [ -z "${RESULTS_FOLDER:-}" ] || [ -z "${SCRIPTS_FOLDER:-}" ] || [ -z "${BINARIES_FOLDER:-}" ] || [ -z "${OSM_PBF:-}" ] || [ -z "${GPS_TRACES:-}" ]; then usage fi @@ -50,9 +50,6 @@ function measure_peak_ram_and_time { } function run_benchmarks_for_folder { - echo "Running benchmarks for $1" - - mkdir -p $RESULTS_FOLDER BENCHMARKS_FOLDER="$BINARIES_FOLDER/src/benchmarks"