Package io.netty.microbench.buffer
Class ByteBufAllocateAndGrowBenchmark
- java.lang.Object
-
- io.netty.microbench.util.AbstractMicrobenchmarkBase
-
- io.netty.microbench.util.AbstractMicrobenchmark
-
- io.netty.microbench.buffer.ByteBufAllocateAndGrowBenchmark
-
public class ByteBufAllocateAndGrowBenchmark extends AbstractMicrobenchmark
This class benchmarks different allocators with different allocation sizes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteBufAllocateAndGrowBenchmark.BufStats-
Nested classes/interfaces inherited from class io.netty.microbench.util.AbstractMicrobenchmark
AbstractMicrobenchmark.HarnessExecutor
-
-
Field Summary
Fields Modifier and Type Field Description intsize-
Fields inherited from class io.netty.microbench.util.AbstractMicrobenchmark
DEFAULT_FORKS
-
Fields inherited from class io.netty.microbench.util.AbstractMicrobenchmarkBase
BASE_JVM_ARGS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS
-
-
Constructor Summary
Constructors Constructor Description ByteBufAllocateAndGrowBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadaptiveDirectAllocAndFree(ByteBufAllocateAndGrowBenchmark.BufStats stats)voidpooledDirectAllocAndFree(ByteBufAllocateAndGrowBenchmark.BufStats stats)voidreleaseBuffers()-
Methods inherited from class io.netty.microbench.util.AbstractMicrobenchmark
getForks, jvmArgs, newOptionsBuilder
-
Methods inherited from class io.netty.microbench.util.AbstractMicrobenchmarkBase
getMeasureIterations, getReportDir, getWarmupIterations, handleUnexpectedException, run
-
-
-
-
Method Detail
-
releaseBuffers
public void releaseBuffers()
-
pooledDirectAllocAndFree
public void pooledDirectAllocAndFree(ByteBufAllocateAndGrowBenchmark.BufStats stats)
-
adaptiveDirectAllocAndFree
public void adaptiveDirectAllocAndFree(ByteBufAllocateAndGrowBenchmark.BufStats stats)
-
-