public class AbstractSharedExecutorMicrobenchmark extends AbstractMicrobenchmarkBase
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSharedExecutorMicrobenchmark.DelegateHarnessExecutor
This executor allows Netty and JMH to share a common executor.
|
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_FORKS |
protected static String[] |
JVM_ARGS |
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS
Constructor and Description |
---|
AbstractSharedExecutorMicrobenchmark() |
Modifier and Type | Method and Description |
---|---|
static void |
executor(EventLoop eventLoop)
Set the executor (in the form of an
EventLoop ) which JMH will use. |
static void |
handleUnexpectedException(Throwable t) |
protected String[] |
jvmArgs() |
getMeasureIterations, getReportDir, getWarmupIterations, newOptionsBuilder, removeAssertions, run
protected static final int DEFAULT_FORKS
protected static final String[] JVM_ARGS
public AbstractSharedExecutorMicrobenchmark()
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 String[] jvmArgs()
jvmArgs
in class AbstractMicrobenchmarkBase
public static void handleUnexpectedException(Throwable t)
Copyright © 2008–2016 The Netty Project. All rights reserved.