X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=perf%2Fbash%2Fpar.sh;h=3df80a3de5609e93f29e3343bc6566a58c628c41;hb=c44be5cbd65ece442d632e0cc5cae71620ba543d;hp=b01a265722b9a2c4cc95f5518d8864f1cf982c92;hpb=b423d60fdbbfa7fda1cf438dd594b5eb15dc4a5c;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par.sh b/perf/bash/par.sh index b01a265..3df80a3 100755 --- a/perf/bash/par.sh +++ b/perf/bash/par.sh @@ -1,8 +1,11 @@ #!/bin/bash DELAY=0.001 WAIT=5 -NUMBER=40 +NUMBER=10 ROUNDS=5 +PORT=9004 +SERVICE=perf_t +SHUTDOWN=1 if test -n "$1"; then . $1 fi @@ -11,7 +14,7 @@ while test $r -lt $ROUNDS; do echo "$r" let i=0 while test $i -lt $NUMBER; do - ./client.sh $r.$i >$r.$i.log 2>&1 & + ./client.sh $r.$i $PORT $SERVICE >$r.$i.log 2>&1 & sleep $DELAY let i=$i+1 done @@ -19,4 +22,6 @@ while test $r -lt $ROUNDS; do let r=$r+1 done wait -wget -O x 'http://localhost:9004/?command=exit' +if [ "$SHUTDOWN" == "1" ] ; then + wget -O x "http://localhost:${PORT}/?command=exit" +fi