The @Measurement annotation

Report a typo

Pick a @Measurement annotation with parameters you would add to the benchmark to have 2 measurement iterations in each fork.

@Benchmark
@Fork(3)
@Warmup(iterations = 5)
public String testMethod() {
    Map<Integer, String> map = new HashMap<>();
    map.put(1, "A");

    return map.get(1);
}
Select one option from the list
___

Create a free account to access the full topic