summaryrefslogtreecommitdiff
path: root/cpp/src/tests/qpid_cpp_benchmark
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-09 20:31:36 +0000
committerAlan Conway <aconway@apache.org>2010-04-09 20:31:36 +0000
commit0d241bfaf809689f8a5cf022ff9418a5f26c9e7f (patch)
tree27590ccb6cabbc9302a35dc342a0389404f9a968 /cpp/src/tests/qpid_cpp_benchmark
parent86e70636779edaee5c0a26de5995a707ab2206f9 (diff)
downloadqpid-python-0d241bfaf809689f8a5cf022ff9418a5f26c9e7f.tar.gz
Rationalize message count and message content options in new API send/receive/benchmark.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid_cpp_benchmark')
-rwxr-xr-xcpp/src/tests/qpid_cpp_benchmark8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/tests/qpid_cpp_benchmark b/cpp/src/tests/qpid_cpp_benchmark
index 26bebf0506..e82251078f 100755
--- a/cpp/src/tests/qpid_cpp_benchmark
+++ b/cpp/src/tests/qpid_cpp_benchmark
@@ -37,7 +37,9 @@ op.add_option("-m", "--messages", default=100000, type="int", metavar="N",
op.add_option("--queue-name", default="benchmark",
help="base name for queues (default %default)")
op.add_option("--send-rate", default=0, metavar="R",
- help="send rate limited to R messages/second, 0 means no limit")
+ help="send rate limited to R messages/second, 0 means no limit (default %default)")
+op.add_option("--content-size", default=1024, type="int", metavar="BYTES",
+ help="message size in bytes (default %default)")
def start_receive(queue, opts):
return Popen(["qpid_receive",
@@ -53,9 +55,9 @@ def start_send(queue, opts):
return Popen(["qpid_send",
"-b", opts.broker,
"-a", queue,
- "--count", str(opts.messages),
+ "--messages", str(opts.messages),
"--send-eos", str(opts.receivers),
- "--content", "benchmark",
+ "--content-size", str(opts.content_size),
"--rate", str(opts.send_rate),
"--report-total"],
stdout=PIPE, stderr=STDOUT)