Support for settings
authorDennis Schafroth <dennis@indexdata.com>
Fri, 11 Mar 2011 13:15:49 +0000 (14:15 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 11 Mar 2011 13:15:49 +0000 (14:15 +0100)
perf/bash/par.sh

index 54399d0..7072a3f 100755 (executable)
@@ -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