[ https://issues.apache.org/jira/browse/LOG4J2-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307392#comment-15307392 ]
Mikael Ståldal commented on LOG4J2-1395: ---------------------------------------- My results with Java 8 on Linux. 1 thread: {noformat} Benchmark Mode Samples Score Error Units o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole thrpt 20 118539.504 ± 48125.941 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole thrpt 20 706424.023 ± 85239.631 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile thrpt 20 2185534.038 ± 65757.292 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop thrpt 20 167398601.862 ± 2962628.545 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline thrpt 20 3182532740.147 ± 55823667.551 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole thrpt 20 128843.134 ± 40653.812 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole thrpt 20 479322.595 ± 67940.070 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile thrpt 20 1291218.480 ± 41087.952 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop thrpt 20 7480835.001 ± 151246.371 ops/s {noformat} 4 threads: {noformat} Benchmark Mode Samples Score Error Units o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole thrpt 20 142062.223 ± 33645.147 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole thrpt 20 568788.797 ± 34301.743 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile thrpt 20 2266759.510 ± 134345.483 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop thrpt 20 30894859.663 ± 1622055.444 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline thrpt 20 5735451312.190 ± 199741828.825 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole thrpt 20 125171.488 ± 27947.614 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole thrpt 20 441571.591 ± 20214.591 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile thrpt 20 1250755.302 ± 27639.243 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop thrpt 20 11799456.705 ± 147228.429 ops/s {noformat} (I disabled some non-relevant tests.) > Faster Console appender > ----------------------- > > Key: LOG4J2-1395 > URL: https://issues.apache.org/jira/browse/LOG4J2-1395 > Project: Log4j 2 > Issue Type: Improvement > Components: Appenders > Affects Versions: 2.5, 2.6 > Reporter: Mikael Ståldal > Attachments: ggregory-hardware.txt > > > The ConsoleAppender is much slower than the FileAppender. > It would be nice to improve the performance of the ConsoleAppender. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org