Package io.netty.microbench.buffer
Class ByteBufAllocatorAllocPatternBenchmark
- java.lang.Object
-
- io.netty.microbench.util.AbstractMicrobenchmarkBase
-
- io.netty.microbench.util.AbstractMicrobenchmark
-
- io.netty.microbench.buffer.ByteBufAllocatorAllocPatternBenchmark
-
public class ByteBufAllocatorAllocPatternBenchmark extends AbstractMicrobenchmark
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteBufAllocatorAllocPatternBenchmark.AllocationPatternStatestatic classByteBufAllocatorAllocPatternBenchmark.AllocatorType-
Nested classes/interfaces inherited from class io.netty.microbench.util.AbstractMicrobenchmark
AbstractMicrobenchmark.HarnessExecutor
-
-
Field Summary
Fields Modifier and Type Field Description ByteBufAllocatorAllocPatternBenchmark.AllocatorTypeallocatorTypeintpollutionIterations-
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 ByteBufAllocatorAllocPatternBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddirectAllocation(ByteBufAllocatorAllocPatternBenchmark.AllocationPatternState state)voidheapAllocation(ByteBufAllocatorAllocPatternBenchmark.AllocationPatternState state)voidsetupAllocatorAndPollute(org.openjdk.jmh.infra.BenchmarkParams params)-
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
-
-
-
-
Field Detail
-
allocatorType
public ByteBufAllocatorAllocPatternBenchmark.AllocatorType allocatorType
-
pollutionIterations
public int pollutionIterations
-
-
Method Detail
-
setupAllocatorAndPollute
public void setupAllocatorAndPollute(org.openjdk.jmh.infra.BenchmarkParams params) throws InterruptedException- Throws:
InterruptedException
-
directAllocation
public void directAllocation(ByteBufAllocatorAllocPatternBenchmark.AllocationPatternState state)
-
heapAllocation
public void heapAllocation(ByteBufAllocatorAllocPatternBenchmark.AllocationPatternState state)
-
-