PooledByteBufAllocatorBenchmark Class — netty Architecture
Architecture documentation for the PooledByteBufAllocatorBenchmark class in PooledByteBufAllocatorBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cf555aa2_cc33_c1cf_e9e1_783c4b391bb6["PooledByteBufAllocatorBenchmark"] 473d3afb_7176_530c_dfba_665daf412c4b["PooledByteBufAllocatorBenchmark.java"] cf555aa2_cc33_c1cf_e9e1_783c4b391bb6 -->|defined in| 473d3afb_7176_530c_dfba_665daf412c4b 0a286702_daae_f4b6_469c_b3eb69bb7f75["setup()"] cf555aa2_cc33_c1cf_e9e1_783c4b391bb6 -->|method| 0a286702_daae_f4b6_469c_b3eb69bb7f75 ddb607bd_833f_65ad_e377_a6d7bcac7f51["allocateAndFree()"] cf555aa2_cc33_c1cf_e9e1_783c4b391bb6 -->|method| ddb607bd_833f_65ad_e377_a6d7bcac7f51
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorBenchmark.java lines 28–44
public class PooledByteBufAllocatorBenchmark extends
AbstractMicrobenchmark {
private ByteBufAllocator allocator;
@Setup
public void setup() {
allocator = new PooledByteBufAllocator(true);
}
@Benchmark
@BenchmarkMode(Mode.Throughput)
public void allocateAndFree(Blackhole blackhole) {
ByteBuf buf = allocator.directBuffer(32768);
buf.release();
blackhole.consume(buf);
}
}
Source
Frequently Asked Questions
What is the PooledByteBufAllocatorBenchmark class?
PooledByteBufAllocatorBenchmark is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorBenchmark.java.
Where is PooledByteBufAllocatorBenchmark defined?
PooledByteBufAllocatorBenchmark is defined in microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorBenchmark.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free