The @Warmup annotation

Report a typo

Pick a @Warmup annotation with parameters you would add to the benchmark to have 3 warmup iterations in each fork.

@Benchmark
@Fork(3)
@Measurement(iterations = 4)
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