Benchmarks (Log4j - Direct, Log4j - Using SLF4J, LogBack, System.Out)

Are there any recent benchmarks of these? I am trying to get some actual benchmarks as well as how they were computed showing the upsides/downsides of the logging systems. -Eric

Hello Eric, See http://www.qos.ch/pipermail/logback-user/2007-March/000160.html Eric Faden wrote:
Are there any recent benchmarks of these? I am trying to get some actual benchmarks as well as how they were computed showing the upsides/downsides of the logging systems.
-Eric
-- Ceki Gülcü QOS.ch is looking to hire talented developers located in Switzerland. Please contact ceki@qos.ch for details.

Are there any more benchmarks for the appenders themselves? E.g. is logbacks rolling file appender faster than log4js... etc? -Eric Ceki Gulcu wrote:
Hello Eric,
See http://www.qos.ch/pipermail/logback-user/2007-March/000160.html
Eric Faden wrote:
Are there any recent benchmarks of these? I am trying to get some actual benchmarks as well as how they were computed showing the upsides/downsides of the logging systems.
-Eric

Most of the code in log4j as well as logback were written by the same person. Thus, you can think of logback as log4j version 2.0. To answer your question, the way logback rolls files is more reliable, but it is not faster nor slower. Note that logback can automatically compress rolled over files. It does so asynchronously which can make a big difference for large files. In general, appenders should have the same speed, except for those serializing events on the wire which should be 10 times faster with logback. Eric Faden wrote:
Are there any more benchmarks for the appenders themselves? E.g. is logbacks rolling file appender faster than log4js... etc?
-Eric
-- Ceki Gülcü

Ceki Gulcu skrev den 18-08-2008 20:53:
Hello Eric,
See http://www.qos.ch/pipermail/logback-user/2007-March/000160.html
Eric Faden wrote:
Are there any recent benchmarks of these? I am trying to get some actual benchmarks as well as how they were computed showing the upsides/downsides of the logging systems.
I just ran these again with log4j-1.2.15, slf4j-1.5.2, and logback 0.9.9. I got these results on OpenSolaris 2008.05 in VirtualBox under XP with Java 1.6.
############################################### Log4j direct debug call: 681 Log4j tested (isDebugEnabled) debug call: 28 Logback direct debug call: 671 Logback tested (isDebugEnabled) debug call: 19 Logback parametrized debug call: 23 ############################################### The somewhat unusual configuration is due to the fact that I hope to use dtrace with one of our applications to get non-benchmark results on the same configuration. -- Thorbjørn Ravn Andersen "... plus... Tubular Bells!"
participants (3)
-
Ceki Gulcu
-
Eric Faden
-
Thorbjørn Ravn Andersen