Package io.netty5.microbench.handler.ssl
Class AbstractSslHandlerBenchmark
- java.lang.Object
-
- io.netty5.microbench.util.AbstractMicrobenchmarkBase
-
- io.netty5.microbench.util.AbstractMicrobenchmark
-
- io.netty5.microbench.handler.ssl.AbstractSslHandlerBenchmark
-
- Direct Known Subclasses:
AbstractSslHandlerThroughputBenchmark
public class AbstractSslHandlerBenchmark extends AbstractMicrobenchmark
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSslHandlerBenchmark.SslEngineProvider-
Nested classes/interfaces inherited from class io.netty5.microbench.util.AbstractMicrobenchmark
AbstractMicrobenchmark.HarnessExecutor
-
-
Field Summary
Fields Modifier and Type Field Description Stringcipherprotected EmbeddedChannelWriteAccumulatingHandlerContextclientCtxprotected io.netty5.handler.ssl.SslHandlerclientSslHandlerprotected EmbeddedChannelWriteAccumulatingHandlerContextserverCtxprotected io.netty5.handler.ssl.SslHandlerserverSslHandlerAbstractSslHandlerBenchmark.SslEngineProvidersslProvider-
Fields inherited from class io.netty5.microbench.util.AbstractMicrobenchmark
DEFAULT_FORKS
-
Fields inherited from class io.netty5.microbench.util.AbstractMicrobenchmarkBase
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS
-
-
Constructor Summary
Constructors Constructor Description AbstractSslHandlerBenchmark()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddestroySslHandlers()protected voiddoHandshake()static voidhandleUnexpectedException(Throwable t)protected voidinitSslHandlers(io.netty5.buffer.api.BufferAllocator allocator)protected io.netty5.handler.ssl.SslHandlernewClientHandler(io.netty5.buffer.api.BufferAllocator allocator)protected io.netty5.handler.ssl.SslHandlernewServerHandler(io.netty5.buffer.api.BufferAllocator allocator)-
Methods inherited from class io.netty5.microbench.util.AbstractMicrobenchmark
getForks, jvmArgs, newOptionsBuilder
-
Methods inherited from class io.netty5.microbench.util.AbstractMicrobenchmarkBase
getMeasureIterations, getReportDir, getWarmupIterations, removeAssertions, run
-
-
-
-
Field Detail
-
sslProvider
public AbstractSslHandlerBenchmark.SslEngineProvider sslProvider
-
cipher
public String cipher
-
clientSslHandler
protected io.netty5.handler.ssl.SslHandler clientSslHandler
-
serverSslHandler
protected io.netty5.handler.ssl.SslHandler serverSslHandler
-
clientCtx
protected EmbeddedChannelWriteAccumulatingHandlerContext clientCtx
-
serverCtx
protected EmbeddedChannelWriteAccumulatingHandlerContext serverCtx
-
-
Method Detail
-
initSslHandlers
protected final void initSslHandlers(io.netty5.buffer.api.BufferAllocator allocator)
-
destroySslHandlers
protected final void destroySslHandlers()
-
newClientHandler
protected final io.netty5.handler.ssl.SslHandler newClientHandler(io.netty5.buffer.api.BufferAllocator allocator)
-
newServerHandler
protected final io.netty5.handler.ssl.SslHandler newServerHandler(io.netty5.buffer.api.BufferAllocator allocator)
-
handleUnexpectedException
public static void handleUnexpectedException(Throwable t)
-
-