This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 673d316  LOG4J2-2880 - Add StackWalker benchmark. Revert back to using 
StackWalker.walk based on performance results
673d316 is described below

commit 673d316fd7b8a99f17bce0f876f160e12b2497c6
Author: Ralph Goers <[email protected]>
AuthorDate: Sun Jul 19 22:33:45 2020 -0700

    LOG4J2-2880 - Add StackWalker benchmark. Revert back to using 
StackWalker.walk based on performance results
---
 .../org/apache/logging/log4j/perf/jmh/StackWalkBenchmark.java     | 8 ++++++++
 src/changes/changes.xml                                           | 3 +++
 2 files changed, 11 insertions(+)

diff --git 
a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/StackWalkBenchmark.java
 
b/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/StackWalkBenchmark.java
index d317164..41dad86 100644
--- 
a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/StackWalkBenchmark.java
+++ 
b/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/StackWalkBenchmark.java
@@ -104,6 +104,14 @@ public class StackWalkBenchmark {
         });
     }
 
+    @Benchmark
+    public void baseline(Blackhole bh)  {
+
+        stackDriver.deepCall(initialDepth, callDepth, (fqcn) -> {
+            return null;
+        });
+    }
+
     static final class FqcnCallerLocator implements 
Function<Stream<StackWalker.StackFrame>, StackWalker.StackFrame> {
 
         @Override
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index a254f51..58194cc 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -30,6 +30,9 @@
          - "remove" - Removed
     -->
     <release version="2.14.0" date="2020-MM-DD" description="GA Release 
2.14.0">
+      <action issue="LOG4J2-2880" dev="rgoers" type="fix">
+        Create StackWalker benchmark. Revert back to StackWalker.walk based on 
benchmark results.
+      </action>
       <action issue="LOG4J2-2867" dev="rgoers" type="fix">
         Obtain ContextDataProviders asynchronously.
       </action>

Reply via email to