You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-cvs@jakarta.apache.org by ce...@apache.org on 2001/06/06 23:49:17 UTC
cvs commit: jakarta-log4j/src/java/org/apache/log4j/performance Logging.java
ceki 01/06/06 14:49:17
Modified: src/java/org/apache/log4j/performance Logging.java
Log:
Updated logging performace results to reflect the latest 1.1.x code.
There is no huge difference with 1.0.x, except:
1) AsyncAppender is slower by 3 microseconds due to one extra syncronization.
2) Localization is 5 times faster due to a recently added performace fix.
Revision Changes Path
1.8 +13 -12 jakarta-log4j/src/java/org/apache/log4j/performance/Logging.java
Index: Logging.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/performance/Logging.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Logging.java 2001/03/20 16:05:54 1.7
+++ Logging.java 2001/06/06 21:49:16 1.8
@@ -43,14 +43,14 @@
<td>4
<td>21
<td>16
-<td>31
+<td>33
<tr>
<td>PatternLayout "%p - %m%n"
<td>4
<td>21
<td>16
-<td>31
+<td>32
<tr>
<td>PatternLayout "%-5p - %m%n"
@@ -99,32 +99,32 @@
<td>25
<td>58
<td>51
-<td>68
+<td>71
<tr>
<td>PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"
<td>28
<td>62
<td>55
-<td>73
+<td>76
<tr>
<td>PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
<td>46
<td>82
<td>72
-<td>91
+<td>94
<tr>
<td>PatternLayout "%l - %m%n"
-<td> 1353
-<td> 1565
-<td> 1474
-<td> 1459
+<td> 241
+<td> 317
+<td> 299
+<td> 251
<tr>
<td>PatternLayout "%C.%M.%L - %m%n"
-<td>1379
+<td>267
<td>NA
<td>NA
<td>NA
@@ -173,8 +173,9 @@
time is substracted, logging with the <code>AsyncLogger</code>
takes no time at all. In other words, logging is done for "free".
- <p><li>Extracting location information is (comparatively) very
- slow. It should be avoided unless performace is not a concern.
+ <p><li>Extracting location information is comparatively slow. It
+ implies at least a ten fold increase in logging time! It should be
+ avoided unless performace is not a concern.
</ol>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-cvs-help@jakarta.apache.org