public abstract class AbstractSslHandlerThroughputBenchmark extends AbstractSslHandlerBenchmark
限定符和类型 | 类和说明 |
---|---|
static class |
AbstractSslHandlerThroughputBenchmark.BufferType |
AbstractSslHandlerBenchmark.SslEngineProvider
AbstractMicrobenchmark.HarnessExecutor
限定符和类型 | 字段和说明 |
---|---|
AbstractSslHandlerThroughputBenchmark.BufferType |
bufferType |
protected EmbeddedChannel |
channel |
int |
messageSize |
protected ByteBuf |
wrapSrcBuffer |
cipher, clientCtx, clientSslHandler, serverCtx, serverSslHandler, sslProvider
DEFAULT_FORKS
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS
构造器和说明 |
---|
AbstractSslHandlerThroughputBenchmark() |
限定符和类型 | 方法和说明 |
---|---|
protected ByteBuf |
allocateBuffer(int size) |
protected ByteBuf |
doWrite(int numWrites) |
void |
setup() |
void |
tearDown() |
destroySslHandlers, doHandshake, handleUnexpectedException, initSslHandlers, newClientHandler, newServerHandler
getForks, jvmArgs, newOptionsBuilder
getMeasureIterations, getReportDir, getWarmupIterations, removeAssertions, run
public int messageSize
public AbstractSslHandlerThroughputBenchmark.BufferType bufferType
protected ByteBuf wrapSrcBuffer
protected EmbeddedChannel channel
public final void setup() throws java.lang.Exception
java.lang.Exception
public final void tearDown() throws java.lang.Exception
java.lang.Exception
protected final ByteBuf allocateBuffer(int size)
protected final ByteBuf doWrite(int numWrites) throws java.lang.Exception
java.lang.Exception