@Setup(Level.Invocation)
    public void setup() {
        Map<Integer, Integer> mapTemplate = IntStream.range(0, mapSize).boxed()
                .collect(Collectors.toMap(i -> i, i -> i));
        concurrentHashMap = new ConcurrentHashMap<>(mapTemplate);
        copyOnWriteMap = new CopyOnWriteMap<>(mapTemplate);
        writePerLoops = TIMES / (int) Math.round(writePercentage * TIMES);
    }
This benchmark compares the performance of CopyOnWriteMap and ConcurrentHashMap
under a low-write scenario. We use computeIfAbsent as the write operation,
since it is the only CopyOnWriteMap write operation used in the code base and
constitutes 10% of the operations. The benchmark tests the performance of
get, values, and entrySet methods, as these methods are also used in the code.
jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ConcurrentMapBenchmark.java