Package io.netty.microbench.util
Class AbstractMicrobenchmark
- java.lang.Object
-
- io.netty.microbench.util.AbstractMicrobenchmarkBase
-
- io.netty.microbench.util.AbstractMicrobenchmark
-
- Direct Known Subclasses:
AbstractByteBufGetCharSequenceBenchmark,AbstractReferenceCountedByteBufBenchmark,AbstractSslEngineBenchmark,AbstractSslHandlerBenchmark,AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark,AdvancedCodecOutputListBenchmark,AppendableCharSequenceBenchmark,AsciiStringBenchmark,BurstCostExecutorsBenchmark,ByteBufAccessBenchmark,ByteBufAllocateAndGrowBenchmark,ByteBufAllocatorAllocPatternBenchmark,ByteBufAllocatorBenchmark,ByteBufAllocatorConcurrentBenchmark,ByteBufBenchmark,ByteBufCopy2Benchmark,ByteBufCopyBenchmark,ByteBufIndexOfBenchmark,ByteBufLastIndexOfBenchmark,ByteBufUtilBenchmark,ByteBufUtilDecodeStringBenchmark,ByteBufZeroingBenchmark,CodecOutputListBenchmark,CompositeByteBufRandomAccessBenchmark,CompositeByteBufSequentialBenchmark,CompositeByteBufWriteOutBenchmark,DateFormatter2Benchmark,DecodeHexBenchmark,DefaultAttributeMapBenchmark,DefaultChannelIdBenchmark,DefaultChannelPipelineBenchmark,DefaultChannelPipelineDuplexHandlerBenchmark,EpollSocketChannelBenchmark,EscapeCsvBenchmark,FastThreadLocalCheckBenchmark,FastThreadLocalFastPathBenchmark,FastThreadLocalSlowPathBenchmark,GetIpV6ByNameBenchmark,HeadersBenchmark,HeapByteBufBenchmark,HpackDecoderBenchmark,HpackDecoderULE128Benchmark,HpackEncoderBenchmark,HpackEncoderBenchmarkUniqueValues,HpackStaticTableBenchmark,HpackUtilBenchmark,Http2FrameWriterDataBenchmark,Http2PseudoHeadersLookupBenchmark,HttpChunkedRequestResponseBenchmark,HttpFragmentedRequestDecoderBenchmark,HttpMethodMapBenchmark,HttpPipelinedRequestDecoderBenchmark,HttpPostDecoderBenchmark,HttpPostMultipartRequestDecoderBenchmark,HttpRequestEncoderBenchmark,HttpRequestEncoderInsertBenchmark,HttpRequestResponseBenchmark,HttpStatusValueOfBenchmark,HttpUtilBenchmark,IntObjectHashMapBenchmark,IsKeepAliveBenchmark,IsValidIpV4Benchmark,IsValidIpV6Benchmark,JfrBenchmark,MathOperationsBenchmark,MqttConnectReturnCodeBench,MqttMessageTypeValueOfBench,MqttPropertyTypeValueOfBench,MqttQoSValueOfBench,NetUtilBenchmark,NoPriorityByteDistributionBenchmark,PlatformDependentBenchmark,PooledByteBufAllocatorAlignBenchmark,PooledByteBufAllocatorBenchmark,PrivilegedSocketOperationsBenchmark,QueryStringDecoderBenchmark,QueryStringEncoderBenchmark,RandomSizeByteBufAllocationBenchmark,ReadOnlyHttp2HeadersBenchmark,RecyclableArrayListBenchmark,RecyclerBenchmark,RedisEncoderBenchmark,ResourceLeakDetectorBenchmark,ResourceLeakDetectorRecordBenchmark,ScheduledFutureTaskBenchmark,ScheduledFutureTaskDeadlineBenchmark,ScheduleFutureTaskBenchmark,SearchBenchmark,SearchRealDataBenchmark,SimpleByteBufPooledAllocatorBenchmark,SlicedByteBufBenchmark,SnappyDirectBenchmark,StompEncoderBenchmark,SwappedByteBufBenchmark,UnalignedIndexOfBenchmark,UnitializedArrayBenchmark,UnsafeByteBufBenchmark,Utf8EncodingBenchmark,VarHandleAccessBenchmark,VarintDecodingBenchmark,WebSocketFrame08DecoderBenchmark,WebSocketFrame08EncoderBenchmark,WriteBytesVsShortOrMediumBenchmark
public class AbstractMicrobenchmark extends AbstractMicrobenchmarkBase
Default implementation of the JMH microbenchmark adapter. There may be context switches introduced by this harness.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractMicrobenchmark.HarnessExecutor
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_FORKS-
Fields inherited from class io.netty.microbench.util.AbstractMicrobenchmarkBase
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS
-
-
Constructor Summary
Constructors Constructor Description AbstractMicrobenchmark()Default settings:
Disable assertion in package:io.netty.*, exceptio.netty.microbench.*.AbstractMicrobenchmark(boolean disableAssertions)AbstractMicrobenchmark(boolean disableAssertions, boolean disableHarnessExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetForks()protected String[]jvmArgs()protected org.openjdk.jmh.runner.options.ChainedOptionsBuildernewOptionsBuilder()-
Methods inherited from class io.netty.microbench.util.AbstractMicrobenchmarkBase
getMeasureIterations, getReportDir, getWarmupIterations, handleUnexpectedException, run
-
-
-
-
Field Detail
-
DEFAULT_FORKS
protected static final int DEFAULT_FORKS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractMicrobenchmark
public AbstractMicrobenchmark()
Default settings:
Disable assertion in package:io.netty.*, exceptio.netty.microbench.*.
Use customHarnessExecutor.
-
AbstractMicrobenchmark
public AbstractMicrobenchmark(boolean disableAssertions)
- Parameters:
disableAssertions- If true, it will disable assertion in package:io.netty.*, exceptio.netty.microbench.*, which means packageio.netty.microbench.*always gets assertion enabled.
-
AbstractMicrobenchmark
public AbstractMicrobenchmark(boolean disableAssertions, boolean disableHarnessExecutor)- Parameters:
disableAssertions- If true, it will disable assertion in package:io.netty.*, exceptio.netty.microbench.*, which means packageio.netty.microbench.*always gets assertion enabled.
-
-
Method Detail
-
jvmArgs
protected String[] jvmArgs()
- Specified by:
jvmArgsin classAbstractMicrobenchmarkBase
-
newOptionsBuilder
protected org.openjdk.jmh.runner.options.ChainedOptionsBuilder newOptionsBuilder() throws Exception- Overrides:
newOptionsBuilderin classAbstractMicrobenchmarkBase- Throws:
Exception
-
getForks
protected int getForks()
-
-