forked from chrisvest/object-pool-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfullsuite.sh
executable file
·25 lines (21 loc) · 855 Bytes
/
fullsuite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
THREAD_COUNTS=( 1 2 3 4 6 8 12 16 )
FORKS=10
ITERS=10
WITERS=10
POOL_SIZE=100
if [ "Linux" == "$(uname -s)" ]
then
CORES="$(grep -c "processor" /proc/cpuinfo)"
else
CORES="$(sysctl hw.ncpu | cut -d ' ' -f 2)"
fi
DIR="results/$(date "+%Y-%m-%d")-$(uname -s)-$(uname -m)-${CORES}core"
mkdir -p $DIR
mvn clean package
for THREADS in ${THREAD_COUNTS[@]}
do
echo "Benchmarking with $THREADS worker threads"
java -jar target/object-pool-benchmarks.jar '.*ClaimRelease.*' -tu us -rf json -f $FORKS -i $ITERS -wi $WITERS -t $THREADS -jvmArgs "-Dpool.size=$POOL_SIZE" -bm thrpt -rff "${DIR}/${THREADS}-threads-thrpt.json"
java -jar target/object-pool-benchmarks.jar '.*ClaimRelease.*' -tu us -rf json -f $FORKS -i $ITERS -wi $WITERS -t $THREADS -jvmArgs "-Dpool.size=$POOL_SIZE" -bm sample -rff "${DIR}/${THREADS}-threads-sample.json"
done