@Benchmark
    public void sampler_rateLimited_10(Blackhole bh) {
        bh.consume(rateLimited10.isSampled(ExceptionA.class) ? new ExceptionA() : ExceptionA.INSTANCE);
        bh.consume(rateLimited10.isSampled(ExceptionB.class) ? new ExceptionB() : ExceptionB.INSTANCE);
    }
Microbenchmarks for the verbose exception samplers.
benchmarks/jmh/src/jmh/java/com/linecorp/armeria/common/ExceptionSamplerBenchmark.java