Package com.fayupable.logged.benchmarks
Class LoggedAspectBenchmark
java.lang.Object
com.fayupable.logged.benchmarks.LoggedAspectBenchmark
- Direct Known Subclasses:
LoggedAspectBenchmark_jmhType_B1
Measures the overhead
LoggedAspect adds to a method call,
compared to calling the same logic directly with no interception at all.
All ports are wired to their no-op implementations, so this measures
the cost of the proxy dispatch, the FlowContext
ThreadLocal management, and the metrics/emission decision path itself,
isolated from any actual logging or metrics backend I/O.
Run with: mvn -pl logged-benchmarks package then
java -jar logged-benchmarks/target/benchmarks.jar.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LoggedAspectBenchmark
public LoggedAspectBenchmark()
-
-
Method Details
-
setUp
public void setUp() -
baseline
public int baseline() -
logged
public int logged()
-