File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 77import org .openjdk .jmh .annotations .Level ;
88import org .openjdk .jmh .annotations .Measurement ;
99import org .openjdk .jmh .annotations .Mode ;
10+ import org .openjdk .jmh .annotations .Param ;
1011import org .openjdk .jmh .annotations .Scope ;
1112import org .openjdk .jmh .annotations .Setup ;
1213import org .openjdk .jmh .annotations .State ;
2223import java .util .Random ;
2324
2425@ State (Scope .Benchmark )
25- @ Warmup (iterations = 2 , time = 5 )
26- @ Measurement (iterations = 3 , batchSize = 1000 )
26+ @ Warmup (iterations = 2 , time = 1 )
27+ @ Measurement (iterations = 3 , time = 1 , batchSize = 1000 )
2728@ Fork (3 )
2829public class MapBenchmark {
2930
30- int numberEntries = 30 ;
31+ @ Param ({"10" , "50" , "300" })
32+ int numberEntries = 300 ;
3133
3234 Map <String , Integer > hashMap ;
3335 Map <String , Integer > linkedHashMap ;
You can’t perform that action at this time.
0 commit comments