public class AbstractSharedExecutorMicrobenchmark extends AbstractMicrobenchmarkBase
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AbstractSharedExecutorMicrobenchmark.DelegateHarnessExecutor
This executor allows Netty and JMH to share a common executor.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
DEFAULT_FORKS |
protected static java.lang.String[] |
JVM_ARGS |
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS| 构造器和说明 |
|---|
AbstractSharedExecutorMicrobenchmark() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
executor(EventLoop eventLoop)
Set the executor (in the form of an
EventLoop) which JMH will use. |
static void |
handleUnexpectedException(java.lang.Throwable t) |
protected java.lang.String[] |
jvmArgs() |
getMeasureIterations, getReportDir, getWarmupIterations, newOptionsBuilder, removeAssertions, runprotected static final int DEFAULT_FORKS
protected static final java.lang.String[] JVM_ARGS
public static void executor(EventLoop eventLoop)
EventLoop) which JMH will use.
This must be called before JMH requires an executor to execute objects.
eventLoop - Used as an executor by JMH to run benchmarks.protected java.lang.String[] jvmArgs()
jvmArgs 在类中 AbstractMicrobenchmarkBasepublic static void handleUnexpectedException(java.lang.Throwable t)