Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

Architecture documentation for the setup() function in AsciiStringBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ecd09171_6c98_b906_343c_1f47ef7eb317["setup()"]
  aff6af82_71b2_329f_41cf_d30a3ab60974["AsciiStringBenchmark"]
  ecd09171_6c98_b906_343c_1f47ef7eb317 -->|defined in| aff6af82_71b2_329f_41cf_d30a3ab60974
  style ecd09171_6c98_b906_343c_1f47ef7eb317 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbenchmark/common/AsciiStringBenchmark.java lines 49–57

    @Setup(Level.Trial)
    public void setup() {
        byte[] bytes = new byte[size];
        random.nextBytes(bytes);
        asciiString = new AsciiString(bytes, false);
        string = new String(bytes, CharsetUtil.US_ASCII);
        connection = AsciiString.cached("connection");
        Connection = AsciiString.cached("Connection");
    }

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbenchmark/common/AsciiStringBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbenchmark/common/AsciiStringBenchmark.java at line 49.

Analyze Your Own Codebase

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

Try Supermodel Free