X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fpar_fixed_clients.sh;h=a44158955b517aa79d97672ed2b1c573da023b09;hb=d75ded7b6e101dd169662a89497d16fce9aa1f53;hp=7684481eed85b782d0c1a3408a14f6ef7953f504;hpb=8c17faad60a0623d642c4ab77d836df294ab1b1a;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par_fixed_clients.sh b/perf/bash/par_fixed_clients.sh index 7684481..a441589 100755 --- a/perf/bash/par_fixed_clients.sh +++ b/perf/bash/par_fixed_clients.sh @@ -12,6 +12,12 @@ PORT=$2 SERVICE=$3 CLIENT_SCRIPT="client_timed.sh" rm -f *.time +if [ "$TMP_DIR" == "" ] ; then + export TMP_DIR=run_`date +"%Y%m%d_%H%M%S"`/ +fi +mkdir -p ${TMP_DIR} +rm -f latest +ln -s ${TMP_DIR} latest while test $r -lt $ROUNDS; do echo "$r" i=0 @@ -30,6 +36,6 @@ while test $r -lt $ROUNDS; do let r=$r+1 done wait -cat *.time >> timed.$SERVICE.$NUMBER.log +cat ${TMP_DIR}*.time >> ${TMP_DIR}timed.$SERVICE.$NUMBER.log #wget --tries=1 -O x "http://localhost:${PORT}/?command=exit"