You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Remko Popma <re...@gmail.com> on 2015/09/09 01:35:53 UTC

Site performance page

The Performance page http://logging.apache.org/log4j/2.x/performance.html
has a section on Advanced Filtering containing a performance comparison
table with LogBack.

What do these numbers mean? Is this messages per second? And is it messages
actually logged or filtered out? (Also would be interested to know which
appender was used, and if the benchmark code is somewhere for others to
run.)

Re: Site performance page

Posted by Remko Popma <re...@gmail.com>.
That in itself is fine, but I agree we should give an indication of which
versions (Log4j2, logback, java) and environment (OS, hardware) were used.

FYI, the numbers on the async loggers page took a few weeks to pull
together, analyse and present in that format. I would not look forward to
doing that for each release... :-)

On Wednesday, September 9, 2015, Gary Gregory <ga...@gmail.com>
wrote:

> I'm guessing these numbers are not recomputed for each release either :-(
>
> Gary
>
> On Tue, Sep 8, 2015 at 4:35 PM, Remko Popma <remko.popma@gmail.com
> <javascript:_e(%7B%7D,'cvml','remko.popma@gmail.com');>> wrote:
>
>> The Performance page http://logging.apache.org/log4j/2.x/performance.html
>> has a section on Advanced Filtering containing a performance comparison
>> table with LogBack.
>>
>> What do these numbers mean? Is this messages per second? And is it
>> messages actually logged or filtered out? (Also would be interested to know
>> which appender was used, and if the benchmark code is somewhere for others
>> to run.)
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com
> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');> | ggregory@apache.org
> <javascript:_e(%7B%7D,'cvml','ggregory@apache.org');>
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>

Re: Site performance page

Posted by Gary Gregory <ga...@gmail.com>.
I'm guessing these numbers are not recomputed for each release either :-(

Gary

On Tue, Sep 8, 2015 at 4:35 PM, Remko Popma <re...@gmail.com> wrote:

> The Performance page http://logging.apache.org/log4j/2.x/performance.html
> has a section on Advanced Filtering containing a performance comparison
> table with LogBack.
>
> What do these numbers mean? Is this messages per second? And is it
> messages actually logged or filtered out? (Also would be interested to know
> which appender was used, and if the benchmark code is somewhere for others
> to run.)
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: Site performance page

Posted by Ralph Goers <ra...@dslextreme.com>.
I am pretty sure I generated them by using FilterPerformanceComparison. Today it uses a ThreadContextMap filter but I believe I swapped that out for a Marker filter to get the numbers on the web site.  

BTW - How do I run one of the performance tests that are in log4j-core? I used to be able to do mvn test -Dtest=TestName but that no longer works.

Ralph



> On Sep 12, 2015, at 1:43 AM, Ralph Goers <ra...@dslextreme.com> wrote:
> 
> I believe one of the unit tests generated them. I believe it is the number of nanoseconds per comparison. Logback has a lot of lock contention in its filter processing.
> 
> Ralph
> 
> On Sep 11, 2015, at 10:18 PM, Remko Popma <remko.popma@gmail.com <ma...@gmail.com>> wrote:
> 
>> Ralph, do you know what the numbers in the Advanced Filtering section of the Performance page mean and how they were generated?
>> 
>> On Wed, Sep 9, 2015 at 8:35 AM, Remko Popma <remko.popma@gmail.com <ma...@gmail.com>> wrote:
>> The Performance page http://logging.apache.org/log4j/2.x/performance.html <http://logging.apache.org/log4j/2.x/performance.html>
>> has a section on Advanced Filtering containing a performance comparison table with LogBack. 
>> 
>> What do these numbers mean? Is this messages per second? And is it messages actually logged or filtered out? (Also would be interested to know which appender was used, and if the benchmark code is somewhere for others to run.)
>> 


Re: Site performance page

Posted by Ralph Goers <ra...@dslextreme.com>.
I believe one of the unit tests generated them. I believe it is the number of nanoseconds per comparison. Logback has a lot of lock contention in its filter processing.

Ralph

> On Sep 11, 2015, at 10:18 PM, Remko Popma <re...@gmail.com> wrote:
> 
> Ralph, do you know what the numbers in the Advanced Filtering section of the Performance page mean and how they were generated?
> 
>> On Wed, Sep 9, 2015 at 8:35 AM, Remko Popma <re...@gmail.com> wrote:
>> The Performance page http://logging.apache.org/log4j/2.x/performance.html
>> has a section on Advanced Filtering containing a performance comparison table with LogBack. 
>> 
>> What do these numbers mean? Is this messages per second? And is it messages actually logged or filtered out? (Also would be interested to know which appender was used, and if the benchmark code is somewhere for others to run.)
> 

Re: Site performance page

Posted by Remko Popma <re...@gmail.com>.
Ralph, do you know what the numbers in the Advanced Filtering section of
the Performance page mean and how they were generated?

On Wed, Sep 9, 2015 at 8:35 AM, Remko Popma <re...@gmail.com> wrote:

> The Performance page http://logging.apache.org/log4j/2.x/performance.html
> has a section on Advanced Filtering containing a performance comparison
> table with LogBack.
>
> What do these numbers mean? Is this messages per second? And is it
> messages actually logged or filtered out? (Also would be interested to know
> which appender was used, and if the benchmark code is somewhere for others
> to run.)
>