Add the missing code

Report a typo

What will you pass to the include() method to run the benchmark?

public class BenchmarkDemo {
    @Benchmark
    public String testMethod() {
        Map<Integer, String> map = new HashMap<>();
        map.put(1, "A");

        return map.get(1);
    }

    public static void main(String[] args) throws RunnerException {
        Options opt = new OptionsBuilder()
                .include()
                .forks(3)
                .measurementIterations(5)
                .warmupIterations(5)
                .build();

        new Runner(opt).run();
    }
}
Enter a short text
___

Create a free account to access the full topic