From bc2831ae02ae875925b8a0fd7abcefa6dea99729 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 7 Dec 2022 15:31:09 +0100 Subject: [PATCH] bench.sh: ensure default values are set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/versus-external-pools/bench.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/versus-external-pools/bench.sh b/benchmarks/versus-external-pools/bench.sh index 7a1bb6c0..377a1a5b 100755 --- a/benchmarks/versus-external-pools/bench.sh +++ b/benchmarks/versus-external-pools/bench.sh @@ -9,8 +9,6 @@ usage() { exit 1 } -taskType='CPU_INTENSIVE' -taskSize=5000 while getopts "t:s:h" option do case "${option}" in @@ -35,6 +33,9 @@ do esac done +taskType=${taskType:-'CPU_INTENSIVE'} +taskSize=${taskSize:-5000} + echo 'Running benchmarks for task type:' ${taskType} 'and task size:' ${taskSize} export TASK_TYPE=${taskType} export TASK_SIZE=${taskSize} -- 2.34.1