Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cdc875a8_e50a_f313_7cc3_77a860eb76b8["setup()"]
  ff555f9c_1d77_6f5a_cb29_37e270340371["HttpRequestEncoderInsertBenchmark"]
  cdc875a8_e50a_f313_7cc3_77a860eb76b8 -->|defined in| ff555f9c_1d77_6f5a_cb29_37e270340371
  e81c8d5f_3d2a_9f6e_3727_a618363d278c["permute()"]
  cdc875a8_e50a_f313_7cc3_77a860eb76b8 -->|calls| e81c8d5f_3d2a_9f6e_3727_a618363d278c
  style cdc875a8_e50a_f313_7cc3_77a860eb76b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpRequestEncoderInsertBenchmark.java lines 61–85

    @Setup
    public void setup() {
        List<String[]> permutations = new ArrayList<>();
        permute(PARAMS.clone(), 0, permutations);

        String[] allCombinations = new String[permutations.size()];
        String base = "http://localhost?";
        for (int i = 0; i < permutations.size(); i++) {
            StringBuilder sb = new StringBuilder(base);
            String[] p = permutations.get(i);
            for (int j = 0; j < p.length; j++) {
                if (j != 0) {
                    sb.append('&');
                }
                sb.append(p[j]);
            }
            allCombinations[i] = sb.toString();
        }
        uris = new String[samples];
        SplittableRandom rand = new SplittableRandom(42);
        for (int i = 0; i < uris.length; i++) {
            uris[i] = allCombinations[rand.nextInt(allCombinations.length)];
        }
        index = 0;
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/HttpRequestEncoderInsertBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/handler/codec/http/HttpRequestEncoderInsertBenchmark.java at line 61.
What does setup() call?
setup() calls 1 function(s): permute.

Analyze Your Own Codebase

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

Try Supermodel Free