Add multipart arguments to the benchmark script

This commit is contained in:
Alexey Rybalchenko 2019-12-19 10:47:09 +01:00 committed by Dennis Klein
parent a2cff5b7bb
commit 462a93b58b

View File

@ -6,6 +6,8 @@ maxIterations="0"
msgSize="1000000" msgSize="1000000"
transport="zeromq" transport="zeromq"
affinity="false" affinity="false"
multipart="false"
numParts="1"
affinitySamp="" affinitySamp=""
affinitySink="" affinitySink=""
@ -26,6 +28,14 @@ if [[ $4 =~ ^[a-z]+$ ]]; then
affinity=$4 affinity=$4
fi fi
if [[ $5 =~ ^[a-z]+$ ]]; then
multipart=$5
fi
if [[ $6 =~ ^[0-9]+$ ]]; then
numParts=$6
fi
echo "Starting benchmark with following settings:" echo "Starting benchmark with following settings:"
@ -58,7 +68,8 @@ SAMPLER+=" --id bsampler1"
SAMPLER+=" --transport $transport" SAMPLER+=" --transport $transport"
SAMPLER+=" --severity debug" SAMPLER+=" --severity debug"
SAMPLER+=" --msg-size $msgSize" SAMPLER+=" --msg-size $msgSize"
SAMPLER+=" --num-parts 1" SAMPLER+=" --multipart $multipart"
SAMPLER+=" --num-parts $numParts"
# SAMPLER+=" --msg-rate 1000" # SAMPLER+=" --msg-rate 1000"
SAMPLER+=" --max-iterations $maxIterations" SAMPLER+=" --max-iterations $maxIterations"
SAMPLER+=" --channel-config name=data,type=pair,method=bind,address=tcp://127.0.0.1:5555" SAMPLER+=" --channel-config name=data,type=pair,method=bind,address=tcp://127.0.0.1:5555"
@ -73,7 +84,7 @@ SINK+=" --id sink1"
#SINK+=" --control static" #SINK+=" --control static"
SINK+=" --transport $transport" SINK+=" --transport $transport"
SINK+=" --severity debug" SINK+=" --severity debug"
SINK+=" --multipart false" SINK+=" --multipart $multipart"
SINK+=" --max-iterations $maxIterations" SINK+=" --max-iterations $maxIterations"
SINK+=" --channel-config name=data,type=pair,method=connect,address=tcp://127.0.0.1:5555" SINK+=" --channel-config name=data,type=pair,method=connect,address=tcp://127.0.0.1:5555"
xterm -geometry 90x50+550+0 -hold -e $affinitySink @CMAKE_CURRENT_BINARY_DIR@/$SINK & xterm -geometry 90x50+550+0 -hold -e $affinitySink @CMAKE_CURRENT_BINARY_DIR@/$SINK &