Class CallerInfoOutputBenchmark

java.lang.Object
com.fayupable.logged.benchmarks.CallerInfoOutputBenchmark
Direct Known Subclasses:
CallerInfoOutputBenchmark_jmhType_B1

public class CallerInfoOutputBenchmark extends Object
Measures the paths that write caller information as text: the SLF4J summary line and the MDC entries pushed while a @Logged method with includeIp/includeDevice runs.

Logback is set to INFO with every appender detached, so the logging call itself still runs but nothing is written anywhere; the numbers reflect CPU cost only, not console or file I/O.

Run with: mvn -pl logged-benchmarks package then java -jar logged-benchmarks/target/benchmarks.jar CallerInfoOutputBenchmark.

  • Constructor Details

    • CallerInfoOutputBenchmark

      public CallerInfoOutputBenchmark()
  • Method Details

    • setUp

      public void setUp()
    • slf4jSummaryLine

      public void slf4jSummaryLine()
    • loggedWithIpAndDevice

      public int loggedWithIpAndDevice()