-
- Direct Known Subclasses:
- DebugDisabledBenchmark_jmh_B1
public class DebugDisabledBenchmark
extends Object
Benchmarks Log4j 2, Log4j 1, and Logback using the DEBUG level which is disabled for this test. One of the primary
performance concerns of logging frameworks is adding minimal overhead when logging is disabled. Some users disable
all logging in production, while others disable finer logging levels in production. This benchmark demonstrates the
overhead in calling logger.isDebugEnabled()
and logger.debug()
.
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.