X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fbench.sh;h=7d7e9651469252304dec4145adcb42c858f88bd6;hb=3de7bedbc7f7f7e86417d889f3444a960b257000;hp=16ed0127ca8fac537920bc4a2905311e500fbb8c;hpb=953e92bd8f5c8e3a2600b860c62835434f23de46;p=poolifier.git diff --git a/benchmarks/versus-external-pools/bench.sh b/benchmarks/versus-external-pools/bench.sh index 16ed0127..7d7e9651 100755 --- a/benchmarks/versus-external-pools/bench.sh +++ b/benchmarks/versus-external-pools/bench.sh @@ -37,11 +37,10 @@ done taskType=${taskType:-'CPU_INTENSIVE'} taskSize=${taskSize:-5000} -poolSize=${poolSize:-10} +poolSize=${poolSize:-$(nproc --all)} iterations=${iterations:-100000} echo 'Running benchmarks with pool size:' ${poolSize}', number of iterations:' ${iterations}', task type:' ${taskType} 'and task size:' ${taskSize} -exit 1 export NODE_ENV=production export TASK_TYPE=${taskType} export TASK_SIZE=${taskSize} @@ -52,7 +51,7 @@ case "$OSTYPE" in caffeinate ./hyperfine_benchmarks.sh ;; linux*) - systemd-inhibit ./hyperfine_benchmarks.sh + systemd-inhibit --what=idle ./hyperfine_benchmarks.sh ;; *) echo "Unsupported $OSTYPE"