From 98a1ec7556b70d57a7ec1312cbb47d0f4f9763be Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 30 Sep 2010 20:06:36 +0000 Subject: Improvements to output & message distribution for qpid-cpp-benchmark. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1003231 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/qpid-cpp-benchmark | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/qpid-cpp-benchmark') diff --git a/cpp/src/tests/qpid-cpp-benchmark b/cpp/src/tests/qpid-cpp-benchmark index 85efff9a36..9512aa7893 100755 --- a/cpp/src/tests/qpid-cpp-benchmark +++ b/cpp/src/tests/qpid-cpp-benchmark @@ -53,7 +53,8 @@ op.add_option("--receive-option", default=[], action="append", type="str", help="Additional option for receiving addresses") op.add_option("--no-timestamp", dest="timestamp", default=True, action="store_false", help="don't add a timestamp, no latency results") - +op.add_option("--connection-options", type="str", + help="Connection options for senders & receivers") single_quote_re = re.compile("'") def posix_quote(string): @@ -69,12 +70,15 @@ def start_receive(queue, opts, ready_queue, broker, host): command = ["qpid-receive", "-b", broker, "-a", address, + "-m", str((opts.senders*opts.messages)/opts.receivers), "--forever", "--print-content=no", "--report-total", "--ack-frequency", str(opts.ack_frequency), "--ready-address", ready_queue, "--report-header=no"] + if opts.connection_options: + command += ["--connection-options",opts.connection_options] if host: command = ssh_command(host, command) return Popen(command, stdout=PIPE, stderr=STDOUT) @@ -91,6 +95,8 @@ def start_send(queue, opts, broker, host): "--report-header=no", "--timestamp=%s"%(opts.timestamp and "yes" or "no"), "--sequence=no"] + if opts.connection_options: + command += ["--connection-options",opts.connection_options] if host: command = ssh_command(host, command) return Popen(command, stdout=PIPE, stderr=STDOUT) -- cgit v1.2.1