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

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-transform.git


The following commit(s) were added to refs/heads/main by this push:
     new 8cae655  Add comparison benchmark without location
8cae655 is described below

commit 8cae655c4146c3f0c2bf9d44b4f1359c5bcb6503
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed May 3 00:56:47 2023 +0200

    Add comparison benchmark without location
---
 log4j-transform-maven-plugin/README.adoc | 35 ++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/log4j-transform-maven-plugin/README.adoc 
b/log4j-transform-maven-plugin/README.adoc
index 10fe289..d021540 100644
--- a/log4j-transform-maven-plugin/README.adoc
+++ b/log4j-transform-maven-plugin/README.adoc
@@ -61,6 +61,41 @@ is used and a bump of around 9 µs per logging statement when
 
https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/LogBuilder.html[`LogBuilder`]
 is used.
 
+By comparison, *disabling* location information on the same machine gives:
+
+[cols="1,1,1,1,1"]
+|===
+|Logging interface|Precompiled location|Score|Error|Units
+
+|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/LogBuilder.html[`LogBuilder`]
+|yes
+|234666,556
+|±19759,779
+|ops/s
+
+
+|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html[`Logger`]
+|yes
+|210751,730
+|±1508,148
+|ops/s
+
+
+|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/LogBuilder.html[`LogBuilder`]
+|no
+|212562,315
+|±3631,670
+|ops/s
+
+
+|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html[`Logger`]
+|no
+|220837,404
+|±13248,184
+|ops/s
+
+|===
+
 == How it works
 
 The working principle is very simple: every call to the Log4j 2.x API like

Reply via email to