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(io.netty.channel.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, runprotected static final int DEFAULT_FORKS
protected static final String[] JVM_ARGS
public AbstractSharedExecutorMicrobenchmark()
public static void executor(io.netty.channel.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 AbstractMicrobenchmarkBasepublic static void handleUnexpectedException(Throwable t)
Copyright © 2008–2026 The Netty Project. All rights reserved.