Lowered number to 10 clients
[pazpar2-moved-to-github.git] / perf / bash / par.sh
index 085e4fc..0374b46 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/bash
 DELAY=0.001
-NUMBER=40
+WAIT=5
+NUMBER=10
 ROUNDS=5
+if test -n "$1"; then
+       . $1
+fi
 let r=0
 while test $r -lt $ROUNDS; do
        echo "$r"
@@ -11,6 +15,7 @@ while test $r -lt $ROUNDS; do
                sleep $DELAY
                let i=$i+1
        done
+       sleep $WAIT
        let r=$r+1
 done
 wait