From: Jérôme Benoit Date: Wed, 7 Dec 2022 14:31:09 +0000 (+0100) Subject: bench.sh: ensure default values are set X-Git-Tag: v2.3.8~79 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bc2831ae02ae875925b8a0fd7abcefa6dea99729;p=poolifier.git bench.sh: ensure default values are set Signed-off-by: Jérôme Benoit --- 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}