[ https://issues.apache.org/jira/browse/LOG4J2-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307121#comment-15307121 ]
Gary Gregory commented on LOG4J2-1395: -------------------------------------- Wow, that generates a lot of output! {noformat} 05/30/2016 19:20 2,289,793,281 perf-test1.txt 05/30/2016 19:36 2,175,649,254 perf-test2.txt {noformat} Here is the tail of each: {noformat} # Run complete. Total time: 00:09:16 Benchmark Mode Samples Score Error Units o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole thrpt 20 22099.978 ▒ 408.401 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole thrpt 20 314611.143 ▒ 25863.942 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile thrpt 20 891463.180 ▒ 92075.369 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap thrpt 20 942510.468 ▒ 64925.884 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop thrpt 20 61038778.560 ▒ 5375877.502 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF thrpt 20 1027424.335 ▒ 11661.252 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite thrpt 20 9226404.981 ▒ 467851.551 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline thrpt 20 2330235531.997 ▒ 28472622.782 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole thrpt 20 20978.995 ▒ 432.607 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole thrpt 20 252695.260 ▒ 20294.564 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile thrpt 20 560562.698 ▒ 32765.623 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap thrpt 20 612437.418 ▒ 39819.174 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop thrpt 20 4688354.228 ▒ 50592.100 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF thrpt 20 605235.685 ▒ 5680.906 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite thrpt 20 1812314.910 ▒ 127466.771 ops/s {noformat} {noformat} # Run complete. Total time: 00:09:31 Benchmark Mode Samples Score Error Units o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole thrpt 20 28811.248 ▒ 814.737 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole thrpt 20 253029.271 ▒ 7362.119 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile thrpt 20 1348679.133 ▒ 473730.369 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap thrpt 20 2416355.009 ▒ 229609.282 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop thrpt 20 8940494.520 ▒ 88586.957 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF thrpt 20 1041129.078 ▒ 566640.692 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite thrpt 20 11768869.120 ▒ 161027.125 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline thrpt 20 7495107669.783 ▒ 576103849.609 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole thrpt 20 21146.252 ▒ 1186.253 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole thrpt 20 250206.365 ▒ 12221.422 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile thrpt 20 310056.702 ▒ 44482.678 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap thrpt 20 1196950.945 ▒ 343888.712 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop thrpt 20 5712065.104 ▒ 64659.847 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF thrpt 20 402981.984 ▒ 66647.080 ops/s o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite thrpt 20 4205252.543 ▒ 206761.035 ops/s {noformat} > 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