[ 
https://issues.apache.org/jira/browse/LOG4J2-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318190#comment-15318190
 ] 

Remko Popma commented on LOG4J2-1395:
-------------------------------------

*Linux 1 thread*
{code}
Benchmark                                                              Mode  
Samples           Score           Error  Units
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole         thrpt     
  20      147452.021 ±     33514.022  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile            thrpt     
  20     2234577.235 ±    218498.789  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap            thrpt     
  20     2329409.003 ±    198796.157  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop            thrpt     
  20   149720377.842 ±  17804473.271  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF             thrpt     
  20     2063633.128 ±    247989.703  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite         thrpt     
  20    19682771.308 ±   2075195.499  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline                thrpt     
  20  2741023752.188 ± 314323378.970  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole          thrpt     
  20      149909.599 ±     47015.584  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole    thrpt     
  20   471146636.469 ±  33450500.357  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile             thrpt     
  20     1377810.177 ±    128314.984  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap             thrpt     
  20     1222680.095 ±    277079.233  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop             thrpt     
  20     6511841.054 ±    743196.256  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF              thrpt     
  20     1399987.132 ±    127872.116  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite          thrpt     
  20     2314119.725 ±    274703.905  ops/s
{code}

*Windows 1 thread*
{code}
Benchmark                                                               Mode  
Samples           Score          Error  Units
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole          thrpt    
   20       56832.983 ▒}     2802.240  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole    thrpt    
   20      378385.134 ▒}     6631.688  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile             thrpt    
   20     1129532.192 ▒}    23263.940  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap             thrpt    
   20     1276745.239 ▒}    19106.636  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop             thrpt    
   20   115293601.304 ▒}   940371.277  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF              thrpt    
   20     1265487.063 ▒}    12316.610  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite          thrpt    
   20    12606468.237 ▒}   170407.536  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline                 thrpt    
   20  2546731181.299 ▒} 12768234.725  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole           thrpt    
   20       54941.997 ▒}     3568.042  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole     thrpt    
   20      225775.408 ▒}     5476.913  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile              thrpt    
   20      731310.525 ▒}    11114.343  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap              thrpt    
   20      828480.404 ▒}    18808.924  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop              thrpt    
   20     7058097.116 ▒}    72897.218  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF               thrpt    
   20      782810.400 ▒}     4930.361  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite           thrpt    
   20     2488038.697 ▒}    43576.434  ops/s
{code}



> 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

Reply via email to