232 |
|
// "iterations=%d size=%d, warmup=%1g, filter=\"%s\"%n", |
233 |
|
// iterations, size, warmupSeconds, filter); |
234 |
|
|
235 |
– |
final ConcurrentSkipListMap<Integer,Integer> m |
236 |
– |
= new ConcurrentSkipListMap<Integer,Integer>(); |
235 |
|
final ArrayList<Integer> al = new ArrayList<Integer>(size); |
236 |
|
|
237 |
|
// Populate collections with random data |
238 |
|
final ThreadLocalRandom rnd = ThreadLocalRandom.current(); |
239 |
< |
for (int i = 0; i < size; i++) { |
242 |
< |
m.put(rnd.nextInt(size), rnd.nextInt(size)); |
239 |
> |
for (int i = 0; i < size; i++) |
240 |
|
al.add(rnd.nextInt(size)); |
244 |
– |
} |
241 |
|
|
242 |
|
final ArrayDeque<Integer> ad = new ArrayDeque<>(al); |
243 |
|
final ArrayBlockingQueue<Integer> abq = new ArrayBlockingQueue<>(al.size()); |