--- /dev/null
+*.log
+*.xml
--- /dev/null
+# Script to test performance for local ztest's.
+
+client.sh - single session dong init, search, show
+par.sh - parallel invocation of client.sh
+get_session.xsl - get session from response
+
+Start in one session pazpar2:
+cd etc
+../src/pazpar2 -f perf.xml -X
+
+Start in one session yaz-ztest:
+yaz-ztest
+
+Start the par.sh:
+./par.sh
+
+
--- /dev/null
+#!/bin/bash
+O=$1
+if test -z "$O"; then
+ O=1
+fi
+H='http://localhost:9004/search.pz2'
+wget -q -O $O.init.xml "$H/?command=init"
+S=`xsltproc get_session.xsl $O.init.xml`
+wget -q -O $O.search.xml "$H?command=search&query=utah&session=$S"
+sleep 0.5
+wget -q -O $O.show.xml "$H?command=show&session=$S"
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:marc="http://www.loc.gov/MARC21/slim"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+ <xsl:output method="text"/>
+ <xsl:strip-space elements="*"/>
+
+ <xsl:template match="session">
+ <xsl:value-of select="."/>
+ </xsl:template>
+ <xsl:template match="text()"/>
+</xsl:stylesheet>
--- /dev/null
+#!/bin/bash
+DELAY=0.1
+NUMBER=10
+let i=0
+while test $i -lt $NUMBER; do
+ ./client.sh $i >$i.log 2>&1 &
+ sleep $DELAY
+ let i=$i+1
+done