Skip to content

Commit 433cbc4

Browse files
committed
Fix elapsed time in PerfTestMulti report
Fixes #453 References #407, #413
1 parent facbba9 commit 433cbc4

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

src/main/java/com/rabbitmq/perf/PerfTestMulti.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved.
1+
// Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
22
//
33
// This software, the RabbitMQ Java client library, is triple-licensed under the
44
// Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2

src/main/java/com/rabbitmq/perf/SimpleScenarioStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2007-2022 VMware, Inc. or its affiliates. All rights reserved.
1+
// Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved.
22
//
33
// This software, the RabbitMQ Java client library, is triple-licensed under the
44
// Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2
@@ -48,7 +48,7 @@ protected synchronized void report(long now) {
4848
sample.put("send-bytes-rate", rate(sendCountInterval.get(), elapsedTime) * minMsgSize);
4949
sample.put("recv-msg-rate", rate(recvCountInterval.get(), elapsedTime));
5050
sample.put("recv-bytes-rate", rate(recvCountInterval.get(), elapsedTime) * minMsgSize);
51-
sample.put("elapsed", elapsedTotal);
51+
sample.put("elapsed", elapsedTotal.get() / 1_000_000); // nano to ms
5252
if (latencyCountInterval.get() > 0) {
5353
sample.put("avg-latency", intervalAverageLatency());
5454
sample.put("min-latency", minLatency.get() / 1000L);

src/test/java/com/rabbitmq/perf/NoOpStats.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)