施磊高級 C++項目-集群聊天服務(wù)器-軟件分層設(shè)計和高性能服務(wù)開發(fā)
2022-12-04 18:46 作者:娜娜絡(luò)絡(luò) | 我要投稿
StopWatch stopWatch = new StopWatch();
? ?int elementCount = 100000;
? ?stopWatch.start("ArrayList add");
? ?List<Integer> arrayList = IntStream.rangeClosed(1, elementCount).boxed().collect(Collectors.toCollection(ArrayList::new));
? ?// ArrayList插入數(shù)據(jù)
? ?IntStream.rangeClosed(0, elementCount
標簽: