Improve worker selection strategies coverage. (#220)
[poolifier.git] / benchmarks / versus-external-pools / bench.sh
... / ...
CommitLineData
1### The -t argument is needed to specify the type of task that you want to benchmark.
2### Supported values are CPU_INTENSIVE
3
4taskType='CPU_INTENSIVE'
5while getopts t: flag
6do
7 case "${flag}" in
8 t) taskType=${OPTARG};;
9 esac
10done
11
12echo 'Running bench for task type:' $taskType
13export TASK_TYPE=$taskType
14# Execute bench
15export NODE_ENV=production
16export POOL_SIZE=10
17export NUM_ITERATIONS=100000
18hyperfine --export-markdown BENCH-100000.MD --min-runs 10 \
19 --prepare 'sleep 15' \
20 'node dynamic-piscina.js' \
21 'node fixed-piscina.js' \
22 'node dynamic-poolifier.js' \
23 'node fixed-poolifier.js' \
24 'node static-suchmokuo-node-worker-threads-pool.js' \
25 'node dynamic-suchmokuo-node-worker-threads-pool.js'