muleman schrieb:
I am testing the Profiler from SLF4J

Below is the code and the execution results. The numbers just don't seem to
add up.

Hi muleman,

you're performing a micro-benchmark (see 1) here. Put your test code in a for-loop and you'll get some "better" results, far from 100% accurate.


1111111111111
1111111111111
1111111111111
+ Profiler [BASIC 0]
|-- elapsed time                      [A]   284,952 microseconds.
|-- elapsed time                      [B]    42,742 microseconds.
|-- elapsed time                  [OTHER]    40,228 microseconds.
|-- Total                         [BASIC]  1088,685 microseconds.

1111111111111
1111111111111
1111111111111
+ Profiler [BASIC 1]
|-- elapsed time                      [A]    37,714 microseconds.
|-- elapsed time                      [B]    36,317 microseconds.
|-- elapsed time                  [OTHER]    36,318 microseconds.
|-- Total                         [BASIC]   121,245 microseconds.


Hope that helps,
Christian

1: http://wikis.sun.com/display/HotSpotInternals/MicroBenchmarks
_______________________________________________
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user

Reply via email to