The @Fork annotation

Report a typo

Pick a @Fork annotation with parameters you would add to the benchmark to have 2 warmup forks and 3 execution forks.

@Benchmark
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