Home / Function/ fillBenchMarkData() — netty Function Reference

fillBenchMarkData() — netty Function Reference

Architecture documentation for the fillBenchMarkData() function in HttpStatusValueOfBenchmark.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  2e616e20_04bb_cb9d_dbe4_b5cfeea91f09["fillBenchMarkData()"]
  88c244e7_bc43_f51b_2540_6620aba96c77["HttpStatusValueOfBenchmark"]
  2e616e20_04bb_cb9d_dbe4_b5cfeea91f09 -->|defined in| 88c244e7_bc43_f51b_2540_6620aba96c77
  641cf346_7100_49b5_c791_3a244846dcad["setup()"]
  641cf346_7100_49b5_c791_3a244846dcad -->|calls| 2e616e20_04bb_cb9d_dbe4_b5cfeea91f09
  96924b5f_4e2b_21cb_70eb_7073f5a1d0c0["printCodePercentage()"]
  2e616e20_04bb_cb9d_dbe4_b5cfeea91f09 -->|calls| 96924b5f_4e2b_21cb_70eb_7073f5a1d0c0
  style 2e616e20_04bb_cb9d_dbe4_b5cfeea91f09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java lines 134–174

    private static void fillBenchMarkData(int[] benchMarkData) {
        double c1x = 0, c2x = 0, c3x = 0, c4x = 0, c5x = 0, c6x = 0;
        for (int i = 0; i < benchMarkData.length;) {
            // [0, 100)
            int code = random.nextInt(0, 100);
            // 38%
            if (code < 38) {
                benchMarkData[i++] = random.nextInt(100, 200);
                ++c1x;
                continue;
            }
            // 30%
            if (code < 68) {
                benchMarkData[i++] = random.nextInt(200, 300);
                ++c2x;
                continue;
            }
            // 15%
            if (code < 83) {
                benchMarkData[i++] = random.nextInt(300, 400);
                ++c3x;
                continue;
            }
            // 10%
            if (code < 93) {
                benchMarkData[i++] = random.nextInt(400, 500);
                ++c4x;
                continue;
            }
            // 5%
            if (code < 98) {
                benchMarkData[i++] = random.nextInt(500, 600);
                ++c5x;
                continue;
            }
            // 2%
            benchMarkData[i++] = random.nextInt(-50, 50);
            ++c6x;
        }
//        printCodePercentage("fillBenchMarkData", benchMarkData.length, c1x, c2x, c3x, c4x, c5x, c6x);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does fillBenchMarkData() do?
fillBenchMarkData() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java.
Where is fillBenchMarkData() defined?
fillBenchMarkData() is defined in microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java at line 134.
What does fillBenchMarkData() call?
fillBenchMarkData() calls 1 function(s): printCodePercentage.
What calls fillBenchMarkData()?
fillBenchMarkData() is called by 1 function(s): setup.

Analyze Your Own Codebase

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

Try Supermodel Free