summaryrefslogtreecommitdiff
path: root/cpp/src/tests/qpid-cluster-benchmark
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-10-04 20:44:40 +0000
committerAlan Conway <aconway@apache.org>2010-10-04 20:44:40 +0000
commit1b6499574a459168ae23904fa48d98e048722d23 (patch)
treed2ead3aac429347263e319e44d3962762f5521ee /cpp/src/tests/qpid-cluster-benchmark
parent03b1fdb3ca817c919b81caca35d5a936b185d77a (diff)
downloadqpid-python-1b6499574a459168ae23904fa48d98e048722d23.tar.gz
Cluster benchmark test script. Improvements to qpid-cpp-bencmhark.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1004420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid-cluster-benchmark')
-rwxr-xr-xcpp/src/tests/qpid-cluster-benchmark20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpp/src/tests/qpid-cluster-benchmark b/cpp/src/tests/qpid-cluster-benchmark
new file mode 100755
index 0000000000..23fca3242c
--- /dev/null
+++ b/cpp/src/tests/qpid-cluster-benchmark
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Benchmark script for comparing cluster performance.
+#PORT=":5555"
+BROKER=`echo $HOSTS | awk '{print $1}'` # Single broker
+BROKERS=`echo $HOSTS | sed "s/\>/$PORT/g;s/ /,/g"` # Broker URL list
+COUNT=100000
+RATE=20000 # Rate to throttle senders for latency results
+run_test() { echo $*; "$@"; echo; echo; echo; }
+
+# Thruput, unshared queue
+run_test qpid-cpp-benchmark --repeat 10 -b $BROKER --no-timestamp -m $COUNT
+
+# Latency
+run_test qpid-cpp-benchmark --repeat 10 -b $BROKER --connection-options '{tcp-nodelay:true}' -m `expr $COUNT / 2` --send-rate $RATE
+
+# Multiple pubs/subs connect via multiple brokers (active-active)
+run_test qpid-cpp-benchmark --repeat 10 -b $BROKERS --no-timestamp --summarize -s10 -r10 -m `expr $COUNT / 10`
+
+# Multiple pubs/subs connect via single broker (active-passive)
+run_test qpid-cpp-benchmark --repeat 10 -b $BROKER --no-timestamp --summarize -s10 -r10 -m `expr $COUNT / 10`