logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LOG4J2-1395) Faster Console appender
Date Mon, 13 Jun 2016 04:32:20 GMT

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

Remko Popma edited comment on LOG4J2-1395 at 6/13/16 4:31 AM:
--------------------------------------------------------------

*Linux 1 thread*
{color:red}
Something went bad with the Linux test. Notice there is no "appenderDirectConsole" result.
Some exception or initialization problem? Same thing happened with the 4 threads test on Linux.
(Need to investigate but no time now...)
{color}
{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}

Linux 1 thread
{code}
Benchmark                                                               Mode  Samples    
  Score        Error  Units
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole    thrpt       20  926904.487
± 151176.562  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole     thrpt       20  635965.953
± 146816.822  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}

*Windows 4 threads*
{code}
Benchmark                                                               Mode  Samples    
       Score          Error  Units
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole          thrpt       20    
   53574.704 ▒}     4299.183  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole    thrpt       20    
  234439.934 ▒}     6311.309  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile             thrpt       20    
 1866238.755 ▒}    25956.744  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap             thrpt       20    
 3602075.958 ▒}   261109.877  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop             thrpt       20    
52229803.307 ▒}  4906667.806  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF              thrpt       20    
 3252844.780 ▒}   179887.163  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite          thrpt       20    
22727534.382 ▒}  3591496.173  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline                 thrpt       20  10222654166.652
▒} 45072491.403  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole           thrpt       20    
   73129.899 ▒}    11314.153  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole     thrpt       20    
  190761.527 ▒}     6879.776  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile              thrpt       20    
 1201769.508 ▒}    47831.593  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap              thrpt       20    
 2195625.288 ▒}   137982.114  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop              thrpt       20    
10077332.720 ▒}  1775005.843  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF               thrpt       20    
 2060484.738 ▒}   179977.267  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite           thrpt       20    
 4416596.263 ▒}   621545.485  ops/s
{code}


was (Author: remkop@yahoo.com):
*Linux 1 thread*
{color:red}
Something went bad with the Linux test. Notice there is no "appenderDirectConsole" result.
Some exception or initialization problem? Same thing happened with the 4 threads test on Linux.
(Need to investigate but no time now...)
{color}
{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}

*Windows 4 threads*
{code}
Benchmark                                                               Mode  Samples    
       Score          Error  Units
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderConsole          thrpt       20    
   53574.704 ▒}     4299.183  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderDirectConsole    thrpt       20    
  234439.934 ▒}     6311.309  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderFile             thrpt       20    
 1866238.755 ▒}    25956.744  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderMMap             thrpt       20    
 3602075.958 ▒}   261109.877  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderNoop             thrpt       20    
52229803.307 ▒}  4906667.806  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRAF              thrpt       20    
 3252844.780 ▒}   179887.163  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.appenderRewrite          thrpt       20    
22727534.382 ▒}  3591496.173  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.baseline                 thrpt       20  10222654166.652
▒} 45072491.403  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endConsole           thrpt       20    
   73129.899 ▒}    11314.153  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endDirectConsole     thrpt       20    
  190761.527 ▒}     6879.776  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endFile              thrpt       20    
 1201769.508 ▒}    47831.593  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endMMap              thrpt       20    
 2195625.288 ▒}   137982.114  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endNoop              thrpt       20    
10077332.720 ▒}  1775005.843  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRAF               thrpt       20    
 2060484.738 ▒}   179977.267  ops/s
o.a.l.l.p.j.Log4j2AppenderComparisonBenchmark.end2endRewrite           thrpt       20    
 4416596.263 ▒}   621545.485  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, 2.6.1
>            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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message