Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3e170e47_faa3_4529_0528_46737aa392fa["setup()"]
  d5e026a1_aecf_2ae4_507b_59a3d0b64104["IntObjectHashMapBenchmark"]
  3e170e47_faa3_4529_0528_46737aa392fa -->|defined in| d5e026a1_aecf_2ae4_507b_59a3d0b64104
  50284c03_55f4_c705_8c85_5c466602e7a0["AgronaEnvironment()"]
  3e170e47_faa3_4529_0528_46737aa392fa -->|calls| 50284c03_55f4_c705_8c85_5c466602e7a0
  5587075b_d7ef_76fe_3114_7c4c4d86f100["NettyEnvironment()"]
  3e170e47_faa3_4529_0528_46737aa392fa -->|calls| 5587075b_d7ef_76fe_3114_7c4c4d86f100
  style 3e170e47_faa3_4529_0528_46737aa392fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbenchmark/common/IntObjectHashMapBenchmark.java lines 56–71

    @Setup(Level.Trial)
    public void setup() {
        switch(mapType) {
            case AGRONA: {
                environment = new AgronaEnvironment();
                break;
            }
            case NETTY: {
                environment = new NettyEnvironment();
                break;
            }
            default: {
                throw new IllegalStateException("Invalid mapType: " + mapType);
            }
        }
    }

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/IntObjectHashMapBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbenchmark/common/IntObjectHashMapBenchmark.java at line 56.
What does setup() call?
setup() calls 2 function(s): AgronaEnvironment, NettyEnvironment.

Analyze Your Own Codebase

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

Try Supermodel Free