X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fpar.sh;h=54399d03c322b72bff3ce9864a4b3f5dd2957cbd;hb=09e752194178c47e62eb2cc45bdf58728a87ea54;hp=236907ff0f145c92de1c50c6c64f0ad62541fe79;hpb=6c5a8674f20238471f1556ac8cc7a09ae3c0e1e8;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par.sh b/perf/bash/par.sh index 236907f..54399d0 100755 --- a/perf/bash/par.sh +++ b/perf/bash/par.sh @@ -1,14 +1,21 @@ #!/bin/bash DELAY=0.001 WAIT=5 -NUMBER=40 +NUMBER=5 ROUNDS=5 +PORT=9004 +SERVICE=perf_t +SHUTDOWN=1 +HOST=127.0.0.1 +if test -n "$1"; then + . $1 +fi let r=0 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 & + ./pp2client.sh --outfile=$r.$i --prefix=http://$HOST:${PORT}/search.pz2 --service=$SERVICE >$r.$i.log 2>&1 & sleep $DELAY let i=$i+1 done @@ -16,4 +23,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}/search.pz2?command=exit" +fi