setup() — netty Function Reference
Architecture documentation for the setup() function in SearchBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 36a94629_88c3_92a9_ba07_2457147a74ef["setup()"] 9d9772c6_6c98_049e_d077_4f14f554b382["SearchBenchmark"] 36a94629_88c3_92a9_ba07_2457147a74ef -->|defined in| 9d9772c6_6c98_049e_d077_4f14f554b382 style 36a94629_88c3_92a9_ba07_2457147a74ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java lines 126–142
@Setup
public void setup() {
rnd = new Random(SEED);
needleBytes = input.getNeedle(rnd);
haystackBytes = input.getHaystack(rnd);
needle = Unpooled.wrappedBuffer(needleBytes);
haystack = bufferType.newBuffer(haystackBytes);
kmpFactory = AbstractSearchProcessorFactory.newKmpSearchProcessorFactory(needleBytes);
ahoCorasicFactory = AbstractMultiSearchProcessorFactory.newAhoCorasicSearchProcessorFactory(needleBytes);
if (needleBytes.length <= 64) {
bitapFactory = AbstractSearchProcessorFactory.newBitapSearchProcessorFactory(needleBytes);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java at line 126.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free