IntObjectHashMapBenchmark.java — netty Source File
Architecture documentation for IntObjectHashMapBenchmark.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2015 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.microbenchmark.common;
import io.netty.microbench.util.AbstractMicrobenchmark;
import io.netty.util.collection.IntObjectHashMap;
import org.agrona.collections.Int2ObjectHashMap;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.infra.Blackhole;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
public class IntObjectHashMapBenchmark extends AbstractMicrobenchmark {
private static final Long VALUE = Long.MAX_VALUE;
public enum MapType {
AGRONA,
NETTY
}
public enum KeyDistribution {
HTTP2,
RANDOM
}
@Param({ "10", "100", "1000", "10000", "100000" })
public int size;
@Param
public MapType mapType;
@Param
public KeyDistribution keyDistribution;
private Environment environment;
@Setup(Level.Trial)
public void setup() {
switch(mapType) {
case AGRONA: {
environment = new AgronaEnvironment();
// ... (133 more lines)
Domain
Subdomains
Types
Source
Frequently Asked Questions
What does IntObjectHashMapBenchmark.java do?
IntObjectHashMapBenchmark.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Search subdomain.
Where is IntObjectHashMapBenchmark.java in the architecture?
IntObjectHashMapBenchmark.java is located at microbench/src/main/java/io/netty/microbenchmark/common/IntObjectHashMapBenchmark.java (domain: Buffer, subdomain: Search, directory: microbench/src/main/java/io/netty/microbenchmark/common).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free