You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2022/03/14 21:04:51 UTC
[logging-log4j2] 11/17: LOG4J2-3393 JTL benchmark updates.
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch LOG4J2-3393
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 041dd8a23b7cd53a3f5f0833f4fbdf3ffe60255a
Author: Volkan Yazici <vo...@yazi.ci>
AuthorDate: Mon Feb 21 21:49:34 2022 +0100
LOG4J2-3393 JTL benchmark updates.
---
.../log4j/layout/template/json/JsonTemplateLayoutBenchmark.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/log4j-perf/src/main/java/org/apache/logging/log4j/layout/template/json/JsonTemplateLayoutBenchmark.java b/log4j-perf/src/main/java/org/apache/logging/log4j/layout/template/json/JsonTemplateLayoutBenchmark.java
index 58c5852..0ee01b8 100644
--- a/log4j-perf/src/main/java/org/apache/logging/log4j/layout/template/json/JsonTemplateLayoutBenchmark.java
+++ b/log4j-perf/src/main/java/org/apache/logging/log4j/layout/template/json/JsonTemplateLayoutBenchmark.java
@@ -190,9 +190,14 @@ public class JsonTemplateLayoutBenchmark {
// System.out.format("Ready?");
// System.in.read();
JsonTemplateLayoutBenchmarkState state = new JsonTemplateLayoutBenchmarkState();
- int retryCount = 200_000_000;
+ int retryCount = 500_000_000;
measureEcs(state, retryCount);
measureJtl(state, retryCount);
+// while (true) {
+// measureEcs(state, retryCount);
+// }
+// measureEcs(state, retryCount);
+// measureJtl(state, retryCount);
}
private static void measureJtl(JsonTemplateLayoutBenchmarkState state, int retryCount) {