* sample perftest script
authorMichal Voců <michal@ruk.cuni.cz>
Mon, 29 May 2006 21:16:47 +0000 (21:16 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Mon, 29 May 2006 21:16:47 +0000 (21:16 +0000)
org.glite.lb.proxy/src/perftest_proxy.sh [new file with mode: 0755]

diff --git a/org.glite.lb.proxy/src/perftest_proxy.sh b/org.glite.lb.proxy/src/perftest_proxy.sh
new file mode 100755 (executable)
index 0000000..f78b9e4
--- /dev/null
@@ -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
+