[
https://issues.apache.org/jira/browse/LOG4J2-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318230#comment-15318230
]
Mikael Ståldal commented on LOG4J2-1395:
----------------------------------------
These Linux results looks strange:
{noformat}
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
{noformat}
DirectConsole should not be that fast, not faster than File. Did you redirect
to /dev/null? You should redirect to a file on the same file system as the File
appender is using.
> 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: [email protected]
For additional commands, e-mail: [email protected]