X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=perf%2Fbash%2Fpar.sh;h=54399d03c322b72bff3ce9864a4b3f5dd2957cbd;hb=fb0304bbbed01d5c4e6ac9f5daef83368d3a4e98;hp=02d271ffc87b0b5a2ddfecb8cb8854d8ea0c6458;hpb=672c18c99706719fc89da3b0771a8211aa6b600d;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par.sh b/perf/bash/par.sh index 02d271f..54399d0 100755 --- a/perf/bash/par.sh +++ b/perf/bash/par.sh @@ -1,11 +1,12 @@ #!/bin/bash DELAY=0.001 WAIT=5 -NUMBER=10 +NUMBER=5 ROUNDS=5 PORT=9004 -SERVICE=perf +SERVICE=perf_t SHUTDOWN=1 +HOST=127.0.0.1 if test -n "$1"; then . $1 fi @@ -14,7 +15,7 @@ while test $r -lt $ROUNDS; do echo "$r" let i=0 while test $i -lt $NUMBER; do - ./client.sh $r.$i $PORT $SERVICE >$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 @@ -23,5 +24,5 @@ while test $r -lt $ROUNDS; do done wait if [ "$SHUTDOWN" == "1" ] ; then - wget -O x "http://localhost:${PORT}/?command=exit" + wget -O x "http://localhost:${PORT}/search.pz2?command=exit" fi