summaryrefslogtreecommitdiffstats
path: root/perf-framework/calc_worst
diff options
context:
space:
mode:
authorRahul C S <rahulcs@redhat.com>2012-02-17 17:23:28 +0530
committerRahul C S <rahulcs@redhat.com>2012-02-17 17:24:19 +0530
commitdb468693ef5faa294d9bc3cd3c5d70c0d99d488b (patch)
treef552d0a8e88304dba5038eac670a5c7afe3c267e /perf-framework/calc_worst
parent01a77a1ae18d9add01f893e06e58191b065602e8 (diff)
Adding the performance framework to the qa repo
Change-Id: Ia7dbd82e9bb2e5e65e9345234ce34f8518a091ad Signed-off-by: Rahul C S <rahulcs@redhat.com>
Diffstat (limited to 'perf-framework/calc_worst')
-rwxr-xr-xperf-framework/calc_worst31
1 files changed, 31 insertions, 0 deletions
diff --git a/perf-framework/calc_worst b/perf-framework/calc_worst
new file mode 100755
index 0000000..363ac58
--- /dev/null
+++ b/perf-framework/calc_worst
@@ -0,0 +1,31 @@
+#!/bin/bash -ue
+
+egrep_patt=""
+
+for run in "$@"
+do
+ egrep_patt+="^`echo run$run\|`"
+ PERFLOG="log_repo/run$run/client/perf-test.log"
+ if [ $run -lt 9 ]
+ then
+ run="0$run"
+ fi
+ echo "RUN$run " > /tmp/run$run.$$
+ echo "------------" >> /tmp/run$run.$$
+ for op in `cat ops`
+ do
+ printf "%-6s" `grep -w ^$op $PERFLOG | awk '{print $2}'| cut -f1 -d'.' | cat -n | sort -n -k2 | tail -1` >> /tmp/run$run.$$
+ printf "\n" >> /tmp/run$run.$$
+ done
+done
+egrep_patt+="^zzz"
+
+echo ""
+egrep -w "$egrep_patt" log_repo/runlog
+echo ""
+echo "Operations " > /tmp/tmp_ops.$$
+echo "-------------------------" >> /tmp/tmp_ops.$$
+awk '{ printf("%-25s\n", $0) }' ops >> /tmp/tmp_ops.$$
+
+paste /tmp/tmp_ops.$$ /tmp/run*.$$
+rm /tmp/run*.$$ /tmp/tmp_ops.$$