void () { List<Object> list = ContainerUtil.createLockFreeCopyOnWriteList(); int count = 15000; List<Integer> ints = IntStreamEx.range(0, count).boxed().toList(); PlatformTestUtil.startPerformanceTest("COWList add", 4500, () -> { for (int it = 0; it < 10; it++) { list.clear(); for (int i = 0; i < count; i++) { list.add(ints.get(i)); } } }).assertTiming(); for (int i = 0; i < list.size(); i++) { assertEquals(i, list.get(i)); } }