X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fpar.sh;fp=perf%2Fbash%2Fpar.sh;h=7072a3f5e38baef6ffd7186e5e6e0a510c073cbd;hb=69171b282699fa3f8fa2a03ffd3c5b79abeb619b;hp=54399d03c322b72bff3ce9864a4b3f5dd2957cbd;hpb=e2de92cec639e50141ac603f78f4020c5cd054ed;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par.sh b/perf/bash/par.sh index 54399d0..7072a3f 100755 --- a/perf/bash/par.sh +++ b/perf/bash/par.sh @@ -11,13 +11,20 @@ if test -n "$1"; then . $1 fi let r=0 +if [ "$SETTINGS" != "" ] ; then + SETTINGS_OPT="--settings=\"$SETTINGS\" " + echo $SETTINGS_OPT +else + unset SETTINGS_OPT +fi + while test $r -lt $ROUNDS; do echo "$r" let i=0 while test $i -lt $NUMBER; do - ./pp2client.sh --outfile=$r.$i --prefix=http://$HOST:${PORT}/search.pz2 --service=$SERVICE >$r.$i.log 2>&1 & - sleep $DELAY - let i=$i+1 + ./pp2client.sh --outfile=$r.$i --prefix=http://$HOST:${PORT}/search.pz2 --service=$SERVICE $SETTINGS_OPT >$r.$i.log 2>&1 & + sleep $DELAY + let i=$i+1 done sleep $WAIT let r=$r+1