You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "humkum (via GitHub)" <gi...@apache.org> on 2023/03/03 05:45:48 UTC
[GitHub] [rocketmq] humkum commented on a diff in pull request #6216: [ISSUE #6215]Make benchmark cover compress msg situation
humkum commented on code in PR #6216:
URL: https://github.com/apache/rocketmq/pull/6216#discussion_r1124047329
##########
example/src/main/java/org/apache/rocketmq/example/benchmark/BatchProducer.java:
##########
@@ -93,6 +96,19 @@ public static void main(String[] args) throws MQClientException {
}
final DefaultMQProducer producer = initInstance(namesrv, msgTraceEnable, rpcHook);
+
+ if (enableCompress) {
+ String compressType = commandLine.hasOption("ct") ? commandLine.getOptionValue("ct").trim() : "ZLIB";
+ int compressLevel = commandLine.hasOption("cl") ? Integer.parseInt(commandLine.getOptionValue("cl")) : 5;
+ int compressOverHowMuch = commandLine.hasOption("ch") ? Integer.parseInt(commandLine.getOptionValue("ch")) : 4;
Review Comment:
You are right. It's my carelessness.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org