Home / Class/ SslHandlerEchoBenchmark Class — netty Architecture

SslHandlerEchoBenchmark Class — netty Architecture

Architecture documentation for the SslHandlerEchoBenchmark class in SslHandlerEchoBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  be142e29_01d5_9ede_ad5e_57324a7a0b03["SslHandlerEchoBenchmark"]
  b8d43ff4_961f_8329_c5c7_f31fc1d3a8c3["SslHandlerEchoBenchmark.java"]
  be142e29_01d5_9ede_ad5e_57324a7a0b03 -->|defined in| b8d43ff4_961f_8329_c5c7_f31fc1d3a8c3
  eccc4b29_eed9_52d4_cd18_44a60d1704ce["ByteBuf()"]
  be142e29_01d5_9ede_ad5e_57324a7a0b03 -->|method| eccc4b29_eed9_52d4_cd18_44a60d1704ce

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/handler/ssl/SslHandlerEchoBenchmark.java lines 22–38

public class SslHandlerEchoBenchmark extends AbstractSslHandlerThroughputBenchmark {
    @Param({ "1", "2", "5", "10" })
    public int numWrites;

    @Benchmark
    public ByteBuf wrapUnwrap() throws Exception {
        ByteBuf src = doWrite(numWrites);

        do {
            serverSslHandler.channelRead(serverCtx, src);
        } while (src.isReadable());

        assert !src.isReadable() && src.refCnt() == 1 : "src: " + src + " src.refCnt(): " + src.refCnt();

        return src;
    }
}

Frequently Asked Questions

What is the SslHandlerEchoBenchmark class?
SslHandlerEchoBenchmark is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/handler/ssl/SslHandlerEchoBenchmark.java.
Where is SslHandlerEchoBenchmark defined?
SslHandlerEchoBenchmark is defined in microbench/src/main/java/io/netty/microbench/handler/ssl/SslHandlerEchoBenchmark.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free