X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fbench.sh;h=7d7e9651469252304dec4145adcb42c858f88bd6;hb=ee4128723bbcf20ba0c2f4db1cad14c262d128c3;hp=e1790aea0be089406ffabe024558ca6c836dedd0;hpb=4de0596a88fe3680b8dd8fc600e4ed1b4694009c;p=poolifier.git diff --git a/benchmarks/versus-external-pools/bench.sh b/benchmarks/versus-external-pools/bench.sh index e1790aea..7d7e9651 100755 --- a/benchmarks/versus-external-pools/bench.sh +++ b/benchmarks/versus-external-pools/bench.sh @@ -37,7 +37,7 @@ 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} @@ -51,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"