Home / Function/ benchmarkAddAndClear() — netty Function Reference

benchmarkAddAndClear() — netty Function Reference

Architecture documentation for the benchmarkAddAndClear() function in CodecOutputListBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b6722041_8aad_aa20_755b_a75c85835166["benchmarkAddAndClear()"]
  8beb3443_fb44_b9e2_6e60_33fd76b7a481["CodecOutputListBenchmark"]
  b6722041_8aad_aa20_755b_a75c85835166 -->|defined in| 8beb3443_fb44_b9e2_6e60_33fd76b7a481
  537be5c9_80a8_1762_ab17_b85a94d50bb1["codecOutList()"]
  537be5c9_80a8_1762_ab17_b85a94d50bb1 -->|calls| b6722041_8aad_aa20_755b_a75c85835166
  5a1ed49e_9dfc_2fef_8430_b239db280991["recyclableArrayList()"]
  5a1ed49e_9dfc_2fef_8430_b239db280991 -->|calls| b6722041_8aad_aa20_755b_a75c85835166
  d7cb3e07_d6c8_7a46_874e_96a51781a035["arrayList()"]
  d7cb3e07_d6c8_7a46_874e_96a51781a035 -->|calls| b6722041_8aad_aa20_755b_a75c85835166
  style b6722041_8aad_aa20_755b_a75c85835166 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/CodecOutputListBenchmark.java lines 64–69

    private static void benchmarkAddAndClear(List<Object> list, int elements) {
        for (int i = 0; i < elements; i++) {
            list.add(ELEMENT);
        }
        list.clear();
    }

Domain

Subdomains

Frequently Asked Questions

What does benchmarkAddAndClear() do?
benchmarkAddAndClear() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/CodecOutputListBenchmark.java.
Where is benchmarkAddAndClear() defined?
benchmarkAddAndClear() is defined in microbench/src/main/java/io/netty/handler/codec/CodecOutputListBenchmark.java at line 64.
What calls benchmarkAddAndClear()?
benchmarkAddAndClear() is called by 3 function(s): arrayList, codecOutList, recyclableArrayList.

Analyze Your Own Codebase

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

Try Supermodel Free