Home / File/ DefaultChannelPipelineBenchmark.java — netty Source File

DefaultChannelPipelineBenchmark.java — netty Source File

Architecture documentation for DefaultChannelPipelineBenchmark.java, a java file in the netty codebase.

File java Buffer Search 3 classes

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2019 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.microbench.channel;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.ChannelPromise;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.microbench.util.AbstractMicrobenchmark;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.CompilerControl;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.OperationsPerInvocation;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.infra.Blackhole;

import java.util.SplittableRandom;

@Warmup(iterations = 10)
@Measurement(iterations = 10)
@Fork(5)
@State(Scope.Thread)
public class DefaultChannelPipelineBenchmark extends AbstractMicrobenchmark {
    private static final Object MESSAGE = new Object();

    private abstract static class SharableInboundHandlerAdapter extends ChannelInboundHandlerAdapter {
        @Override
        public final boolean isSharable() {
            return true;
        }
    }

    private abstract static class SharableOutboundHandlerAdapter extends ChannelOutboundHandlerAdapter {
        @Override
        public final boolean isSharable() {
            return true;
        }
// ... (311 more lines)

Domain

Subdomains

Frequently Asked Questions

What does DefaultChannelPipelineBenchmark.java do?
DefaultChannelPipelineBenchmark.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Search subdomain.
Where is DefaultChannelPipelineBenchmark.java in the architecture?
DefaultChannelPipelineBenchmark.java is located at microbench/src/main/java/io/netty/microbench/channel/DefaultChannelPipelineBenchmark.java (domain: Buffer, subdomain: Search, directory: microbench/src/main/java/io/netty/microbench/channel).

Analyze Your Own Codebase

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

Try Supermodel Free