Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  47b7e5c2_cd64_bde1_6600_884ae47bb9b7["setup()"]
  1b124df3_fd9b_b6e0_f648_61e0304c0038["PlatformDependentBenchmark"]
  47b7e5c2_cd64_bde1_6600_884ae47bb9b7 -->|defined in| 1b124df3_fd9b_b6e0_f648_61e0304c0038
  style 47b7e5c2_cd64_bde1_6600_884ae47bb9b7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/internal/PlatformDependentBenchmark.java lines 44–51

    @Setup(Level.Trial)
    public void setup() {
        bytes1 = new byte[size];
        bytes2 = new byte[size];
        for (int i = 0; i < size; i++) {
            bytes1[i] = bytes2[i] = (byte) i;
        }
    }

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/microbench/internal/PlatformDependentBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbench/internal/PlatformDependentBenchmark.java at line 44.

Analyze Your Own Codebase

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

Try Supermodel Free