X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fclient.sh;h=c48e89e107e384842cc555a712aacf9c1db04dea;hb=88f96194d5a63278eb57b32c814019dab51da9ff;hp=06aa5235d9fcb4d2a676cdbfacfee2e022b0c44f;hpb=098b558355b375d17f6fff413b836b2ae8438e65;p=pazpar2-moved-to-github.git diff --git a/perf/bash/client.sh b/perf/bash/client.sh index 06aa523..c48e89e 100755 --- a/perf/bash/client.sh +++ b/perf/bash/client.sh @@ -3,9 +3,16 @@ OF=$1 if test -z "$OF"; then OF=1 fi -H='http://localhost:9004/search.pz2' + +PORT=$2 +if test -z "$PORT"; then + PORT=9004 +fi + + +H="http://localhost:${PORT}/search.pz2" wget -q -O $OF.init.xml "$H/?command=init&service=perf&extra=$OF" S=`xsltproc get_session.xsl $OF.init.xml` wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S" -sleep 0.5 -wget -q -O $OF.show.xml "$H?command=show&session=$S" +sleep 1 +wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1"