On Tue, 2006-02-21 at 00:42 +0100, Remy Maucherat wrote:
> On 2/21/06, robert burrell donkin <[EMAIL PROTECTED]> wrote:
> > i've been running some performance tests: the aim being to check how
> > much slower JCL 1.1 runs that the 1.0.x releases. the figures for log4j
> > are interesting. the raw data is below (the percentages are normalised
> > to 1.0.4 benchmark times).
> >
> > 1. there is a small performance degradation between the 1.0.3, 1.0.4 and
> > 1.1RC5 but not significant (a few percentiles).
> > 2. 1.0.2 is a *lot* faster for log4j that the later releases
> > 3. isDebugEnabled is a *lot* faster than logging
> > 4. getLog is *slow*
> >
> > i have some ideas for improving performance against log4j (but testing
> > them will have to wait till tomorrow).
> 
> As long as isDebugEnabled is fast, I'm happy. In most cases, debug
> level will mean logging a ton of things, so will be slow (of course,
> people have complained that TC was too slow with debug logging). 

i probably should have mentioned that the tests were for debugging to a
disabled category/logger (whichever nomenclature you prefer): something
smells bad :-/

i have an idea what so i'll report back a little later with more
information once i have it...

> Are the figures similar with JDK logging ?

nope :)

except for 1.0.2 (which is very, very slow - suggesting an environmental
issue), these are the times i would have expected from the test. logging
to log4j is about 100 times slower.

i'm not as satisfied with these figures (too many erratic values) but
here they are anyway:

RC5
GetLog: Duration=7324 9661 7329 7318    AVG 7908  ~108%
Trace: Duration=50 136 36 36            AVG 64.5  ~178%
Debug: Duration=43 25 134 32            AVG 58.5  ~184%
isDebugEnabled: Duration=130 17 22 123  AVG 73    ~75%

1.0.4
GetLog: Duration=6873 8574 6861 6871    AVG 7294.75 100%
Trace: Duration=37 36 36 36             AVG 36.25   100%
Debug: Duration=32 31 32 32             AVG 31.75   100%
isDebugEnabled: Duration=122 21 123 122 AVG 97      100%

1.0.3
GetLog: Duration=6921 7006 6919 6906    AVG 6938    ~95%
Trace: Duration=136 34 34 135           AVG 84.75   ~234%
Debug: Duration=32 32 32 31             AVG 31.75   100%
isDebugEnabled: Duration=21 20 21 20    AVG 20.5    21%

1.0.2
GetLog: Duration=6873 6876 6866 6875    AVG 6872.5  ~94%
Trace: Duration=28481 28414 28628 28401 AVG 28481   78568%
Debug: Duration=28827 28601 29264 31879 AVG 36958.75  116403%
isDebugEnabled: Duration=176 21 21 123  AVG 85.25     88%

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to