liangyepianzhou commented on a change in pull request #11933:
URL: https://github.com/apache/pulsar/pull/11933#discussion_r711582941
##########
File path:
pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java
##########
@@ -406,11 +487,23 @@ public static void main(String[] args) throws Exception {
long total = totalMessagesReceived.sum();
double rate = messagesReceived.sumThenReset() / elapsed;
double throughput = bytesReceived.sumThenReset() / elapsed * 8 /
1024 / 1024;
-
+ double rateAck = messageAck.sumThenReset() / elapsed;
+ long totalTransaction = 0;
+ double averageTimePerTransaction = 0;
+ if (arguments.isEnableTransaction) {
+ totalTransaction = totalNumTransaction.sum();
+ averageTimePerTransaction = elapsed /
numTransaction.sumThenReset();
+ }
reportHistogram = recorder.getIntervalHistogram(reportHistogram);
+ String transactionLog = arguments.isEnableTransaction ?
"---transaction: " + totalTransaction +
Review comment:
emm~, If totalEndTxnOpFailNum and totalEndTxnOpSuccessNum print in
printAggregatedThroughput can be better?This is an instant data, not a
conclusive data. The number of failed commit transactions should be relatively
small, compared to printing the number of failures within this time at a fixed
time, is it more valuable to print the last one?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]