Package io.netty5.microbench.handler.ssl
Class AbstractSslEngineBenchmark
- java.lang.Object
-
- io.netty5.microbench.util.AbstractMicrobenchmarkBase
-
- io.netty5.microbench.util.AbstractMicrobenchmark
-
- io.netty5.microbench.handler.ssl.AbstractSslEngineBenchmark
-
- Direct Known Subclasses:
AbstractSslEngineThroughputBenchmark,SslEngineHandshakeBenchmark
public class AbstractSslEngineBenchmark extends AbstractMicrobenchmark
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSslEngineBenchmark.BufferTypestatic classAbstractSslEngineBenchmark.SslEngineProvider-
Nested classes/interfaces inherited from class io.netty5.microbench.util.AbstractMicrobenchmark
AbstractMicrobenchmark.HarnessExecutor
-
-
Field Summary
Fields Modifier and Type Field Description AbstractSslEngineBenchmark.BufferTypebufferTypeStringcipherprotected SSLEngineclientEngineprotected SSLEngineserverEngineAbstractSslEngineBenchmark.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 AbstractSslEngineBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ByteBufferallocateBuffer(int size)protected voiddestroyEngines()protected voiddestroyHandshakeBuffers()protected booleandoHandshake()protected voidfreeBuffer(ByteBuffer buffer)protected voidinitEngines(io.netty5.buffer.api.BufferAllocator allocator)protected voidinitHandshakeBuffers()protected SSLEnginenewClientEngine(io.netty5.buffer.api.BufferAllocator allocator)protected SSLEnginenewServerEngine(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, handleUnexpectedException, removeAssertions, run
-
-
-
-
Field Detail
-
sslProvider
public AbstractSslEngineBenchmark.SslEngineProvider sslProvider
-
bufferType
public AbstractSslEngineBenchmark.BufferType bufferType
-
cipher
public String cipher
-
clientEngine
protected SSLEngine clientEngine
-
serverEngine
protected SSLEngine serverEngine
-
-
Method Detail
-
initEngines
protected final void initEngines(io.netty5.buffer.api.BufferAllocator allocator)
-
destroyEngines
protected final void destroyEngines()
-
initHandshakeBuffers
protected final void initHandshakeBuffers()
-
destroyHandshakeBuffers
protected final void destroyHandshakeBuffers()
-
doHandshake
protected final boolean doHandshake() throws SSLException- Throws:
SSLException
-
newClientEngine
protected final SSLEngine newClientEngine(io.netty5.buffer.api.BufferAllocator allocator)
-
newServerEngine
protected final SSLEngine newServerEngine(io.netty5.buffer.api.BufferAllocator allocator)
-
allocateBuffer
protected final ByteBuffer allocateBuffer(int size)
-
freeBuffer
protected final void freeBuffer(ByteBuffer buffer)
-
-