diff options
author | Martin Ritchie <ritchiem@apache.org> | 2009-04-17 13:51:26 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2009-04-17 13:51:26 +0000 |
commit | a97180c89d9a6f98fe81b8aa88f351996f5b1a65 (patch) | |
tree | bf1ebbf67548f7a53d4953cc140afb3f139b8e1f | |
parent | dfc2374ac9fea0f4059a6a2aece355468e2cf547 (diff) | |
download | qpid-python-a97180c89d9a6f98fe81b8aa88f351996f5b1a65.tar.gz |
QPID-1810 : Added perftest processing scripts
merged from trunk r765134
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-release@766008 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/java/perftests/etc/scripts/extractResults.sh | 13 | ||||
-rwxr-xr-x | qpid/java/perftests/etc/scripts/extractThroughputResults.sh | 30 |
2 files changed, 43 insertions, 0 deletions
diff --git a/qpid/java/perftests/etc/scripts/extractResults.sh b/qpid/java/perftests/etc/scripts/extractResults.sh new file mode 100755 index 0000000000..95aff9edba --- /dev/null +++ b/qpid/java/perftests/etc/scripts/extractResults.sh @@ -0,0 +1,13 @@ +#!/bin/bash +x +# +# Process a given directory (defaults to '.') and provide a list of the tests run so +# identification of any failures can be seen. +# + +if [ $# == 0 ] ; then + dir=. +else + dir=$1 +fi + +grep 'Total Tests:' $dir/*Qpid* | sed -e 's/^.*\/\([A-Z\-]*-Qpid-[0-9]*\).*Total Tests:, \([0-9.]*\).*Total Passed:, \([0-9.]*\).*Total Failed:, \([0-9.]*\).*Total Error:, \([0-9.]*\).*$/\1, Total:\t\2,\tPassed:\t\3,\tFailed:\t\4,\tError:\t\5/' diff --git a/qpid/java/perftests/etc/scripts/extractThroughputResults.sh b/qpid/java/perftests/etc/scripts/extractThroughputResults.sh new file mode 100755 index 0000000000..e85286ea3e --- /dev/null +++ b/qpid/java/perftests/etc/scripts/extractThroughputResults.sh @@ -0,0 +1,30 @@ +#!/bin/bash +x +# +# Process a given directory (defaults to '.') and provides the throughput results as +# reported by the tests. +# +# if a second argument of -n is provided then it will only list the number output for +# easy copy/paste +# + +if [ $# == 0 ] ; then + dir=. +else + dir=$1 +fi + +numeric=0 +if [ "$dir" == "-n" ] ; then + numeric=1 + dir=. +fi + +if [ "$2" == "-n" ] ; then + numeric=1 +fi + +if [ $numeric == 1 ] ; then + grep 'Total Tests:' $dir/*Qpid* | sed -e 's/^.*\/\([A-Z]*-[A-Z][A-Z]-Qpid-01\).*Size Throughput:, \([0-9.]*\).*$/\1, \2/' | sed -e 's/\.\([0-9][0-9][0-9]\)/\1\./' | sed -e 's/, 0/, /' | awk '{print $2}' +else + grep 'Total Tests:' $dir/*Qpid* | sed -e 's/^.*\/\([A-Z]*-[A-Z][A-Z]-Qpid-01\).*Size Throughput:, \([0-9.]*\).*$/\1, \2/' | sed -e 's/\.\([0-9][0-9][0-9]\)/\1\./' | sed -e 's/, 0/, /' +fi |