Home / Class/ AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark Class — netty Architecture

AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark Class — netty Architecture

Architecture documentation for the AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark class in AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7f10e7eb_dc56_ace7_5236_bdb35bb74c29["AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark"]
  b10fe0bd_6f86_eefc_5e3f_442169383244["AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark.java"]
  7f10e7eb_dc56_ace7_5236_bdb35bb74c29 -->|defined in| b10fe0bd_6f86_eefc_5e3f_442169383244
  80583f46_f446_bb24_85bd_0f22422b36a5["AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark()"]
  7f10e7eb_dc56_ace7_5236_bdb35bb74c29 -->|method| 80583f46_f446_bb24_85bd_0f22422b36a5
  94268d56_9b1a_1863_c6a4_0e2f9aa5fd4e["allocateReleaseHeapAdaptive()"]
  7f10e7eb_dc56_ace7_5236_bdb35bb74c29 -->|method| 94268d56_9b1a_1863_c6a4_0e2f9aa5fd4e
  e84b458f_717e_66a3_1a09_9dfac5cc0dfb["allocateReleaseDirectAdaptive()"]
  7f10e7eb_dc56_ace7_5236_bdb35bb74c29 -->|method| e84b458f_717e_66a3_1a09_9dfac5cc0dfb

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark.java lines 30–61

@State(Scope.Benchmark)
@Warmup(iterations = 10, time = 1)
@Measurement(iterations = 10, time = 1)
public class AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark extends AbstractMicrobenchmark {

    private static final ByteBufAllocator adaptiveAllocator =
            new AdaptiveByteBufAllocator(true, false);

    @Param({
            "00064",
            "00256",
            "01024",
            "04096",
    })
    private int size;

    public AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark() {
        super(true, true);
    }

    @Benchmark
    @Threads(32)
    public void allocateReleaseHeapAdaptive(Blackhole blackhole) {
        blackhole.consume(adaptiveAllocator.heapBuffer(size).release());
    }

    @Benchmark
    @Threads(32)
    public void allocateReleaseDirectAdaptive(Blackhole blackhole) {
        blackhole.consume(adaptiveAllocator.directBuffer(size).release());
    }
}

Frequently Asked Questions

What is the AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark class?
AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark.java.
Where is AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark defined?
AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark is defined in microbench/src/main/java/io/netty/microbench/buffer/AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark.java at line 30.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free