X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fpp2client.sh;h=03b0421ab3740477f785a197f8723e7be2a67e0d;hb=755488849f522cda43edb0b9f5dab497bb923791;hp=50e8a67cadce721103e1759d044483e134c9f50b;hpb=6249156d05f30f3cc1b8267db79a5ea93150b71d;p=pazpar2-moved-to-github.git diff --git a/perf/bash/pp2client.sh b/perf/bash/pp2client.sh index 50e8a67..03b0421 100755 --- a/perf/bash/pp2client.sh +++ b/perf/bash/pp2client.sh @@ -82,15 +82,20 @@ if [ -n "$SETTINGS" ] ; then fi fi -/usr/bin/time --format "$OF, search, %e" wget -q -O ${TMP_DIR}$OF.search.xml "$H?command=search&query=$QUERY&session=$S" 2> ${TMP_DIR}$OF.search.time - -i=1 -while test $i -lt 20; do - sleep 3 - /usr/bin/time --format "$OF, show, %e" wget -q -O ${TMP_DIR}$OF.show$i.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1&round=$i" 2> ${TMP_DIR}$OF.show$i.time - i=`expr $i + 1` -done -wget -q -O exit.xml "$H?command=exit" +if [ "$TIME" != "" ] ; then + /usr/bin/time --format "$OF, search, %e" wget -q -O ${TMP_DIR}$OF.search.xml "$H?command=search&query=$QUERY&session=$S" 2> ${TMP_DIR}$OF.search.time +else + wget -q -O ${TMP_DIR}$OF.search.xml "$H?command=search&query=$QUERY&session=$S" +fi +sleep 1 +if [ "$TIME" != "" ] ; then + /usr/bin/time --format "$OF, show, %e" wget -q -O ${TMP_DIR}$OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1" 2> ${TMP_DIR}$OF.show.time +else + wget -q -O ${TMP_DIR}$OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1" +fi +wget -q -O ${TMP_DIR}$OF.bytarget.xml "$H?command=bytarget&session=$S" +wget -q -O ${TMP_DIR}$OF.stat.xml "$H?command=stat&session=$S" +wget -q -O ${TMP_DIR}$OF.info.xml "$H?command=info" exit 0 # Local Variables: