Package io.netty5.microbench.util
Class AbstractMicrobenchmarkBase
- java.lang.Object
-
- io.netty5.microbench.util.AbstractMicrobenchmarkBase
-
- Direct Known Subclasses:
AbstractMicrobenchmark,AbstractSharedExecutorMicrobenchmark
public abstract class AbstractMicrobenchmarkBase extends Object
Base class for all JMH benchmarks.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]BASE_JVM_ARGSprotected static intDEFAULT_MEASURE_ITERATIONSprotected static intDEFAULT_WARMUP_ITERATIONS
-
Constructor Summary
Constructors Constructor Description AbstractMicrobenchmarkBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intgetMeasureIterations()protected StringgetReportDir()protected intgetWarmupIterations()static voidhandleUnexpectedException(Throwable t)protected abstract String[]jvmArgs()protected org.openjdk.jmh.runner.options.ChainedOptionsBuildernewOptionsBuilder()protected static String[]removeAssertions(String[] jvmArgs)voidrun()
-
-
-
Field Detail
-
DEFAULT_WARMUP_ITERATIONS
protected static final int DEFAULT_WARMUP_ITERATIONS
- See Also:
- Constant Field Values
-
DEFAULT_MEASURE_ITERATIONS
protected static final int DEFAULT_MEASURE_ITERATIONS
- See Also:
- Constant Field Values
-
BASE_JVM_ARGS
protected static final String[] BASE_JVM_ARGS
-
-
Method Detail
-
newOptionsBuilder
protected org.openjdk.jmh.runner.options.ChainedOptionsBuilder newOptionsBuilder() throws Exception- Throws:
Exception
-
jvmArgs
protected abstract String[] jvmArgs()
-
getWarmupIterations
protected int getWarmupIterations()
-
getMeasureIterations
protected int getMeasureIterations()
-
getReportDir
protected String getReportDir()
-
handleUnexpectedException
public static void handleUnexpectedException(Throwable t)
-
-