From 049cab96869c136d610e666b2065ffabbae2f597 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 29 May 2006 21:16:47 +0000 Subject: [PATCH] * sample perftest script --- org.glite.lb.proxy/src/perftest_proxy.sh | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 org.glite.lb.proxy/src/perftest_proxy.sh diff --git a/org.glite.lb.proxy/src/perftest_proxy.sh b/org.glite.lb.proxy/src/perftest_proxy.sh new file mode 100755 index 0000000..f78b9e4 --- /dev/null +++ b/org.glite.lb.proxy/src/perftest_proxy.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +numjobs=$1 + +# XXX - there must be better way to find stage +STAGEDIR=/home/michal/shared/egee/jra1-head/stage +. $STAGEDIR/bin/perftest_common.sh + +DEBUG=${DEBUG:-0} +PERFTEST_CONSUMER=./glite_lb_proxy_perf +# CONSUMER_ARGS= +# PERFTEST_COMPONENT= +# COMPONENT_ARGS= +LOGJOBS_ARGS="-x" + +check_test_files || exit 1 + +echo -e "\tsmall_job \t big_job \t small_dag \t big_dag" +i=1 +while [[ $i -lt 5 ]] +do + CONSUMER_ARGS="-d --perf-sink $i" + echo Running test $i + run_test proxy $numjobs + j=0 + while [[ $j -lt 4 ]] + do + echo -e -n "\t ${PERFTEST_THROUGHPUT[$j]}" + j=$((j+1)) + done + echo "" + i=$((i+1)) +done + -- 1.8.2.3