# | Line 334 | Line 334 | public class MapMicroBenchmark { | |
---|---|---|
334 | if (m.put(x, x) == null) | |
335 | ++sum; | |
336 | } | |
337 | + | /* // uncomment to avoid calling clear() |
338 | + | for (int i = 0; i < len; ++i) { |
339 | + | Object x = keys[i]; |
340 | + | m.remove(x); |
341 | + | } |
342 | + | */ |
343 | m.clear(); | |
344 | sum += len - (quarter * 2); | |
345 | checkSum += sum ^ (sum << 12); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |