Author: rgoers
Date: Sun Sep 23 21:27:34 2012
New Revision: 1389148
URL: http://svn.apache.org/viewvc?rev=1389148&view=rev
Log:
Move variable substitution from PatternLayout to appropriate converters to improve performance.
Modified:
logging/log4j/log4j2/trunk/src/changes/changes.xml
logging/log4j/log4j2/trunk/src/site/xdoc/performance.xml
Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1389148&r1=1389147&r2=1389148&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Sun Sep 23 21:27:34 2012
@@ -22,6 +22,11 @@
</properties>
<body>
+ <release version="2.0-beta2" date="TBD" description="Bug fixes and enhancements">
+ <action dev="rgoers" type="fix">
+ Move variable substitution from PatternLayout to appropriate converters to improve
performance.
+ </action>
+ </release>
<release version="2.0-beta1" date="2012-09-18" description="Bug fixes and enhancements">
<action dev="rgoers" type="add">
Added AsynchAppender.
Modified: logging/log4j/log4j2/trunk/src/site/xdoc/performance.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/performance.xml?rev=1389148&r1=1389147&r2=1389148&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/performance.xml (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/performance.xml Sun Sep 23 21:27:34 2012
@@ -127,14 +127,18 @@
delivering log events will never be insignificant. For example, the results of
writing to a simple log
file using the same format using Log4j, Logback and Log4j 2 are:
<pre>
- Log4j: 1427
- Logback: 1401
- Log4j 2.0: 1963
+ Log4j: 1651
+ Logback: 1419
+ Log4j 2.0: 1542
</pre>
</p>
<p>
- These results show that actually writing out the events can be at least 1000
times more expensive than
- when they are disabled.
+ As with many of the other results on this page the differences between the frameworks
above should be
+ considered insignificant. The values will change somewhat on each execution and
changing the order the
+ frameworks are tested or adding calls to System.gc() between the tests can cause
a variation in the
+ reported times. However, these results show that actually writing out the events
can be at least 1000
+ times more expensive than when they are disabled, so it is always recommended
to take advantage of
+ Log4j 2's fine-grained filtering capabilities.
</p>
</li>
<li>
|