예제 #1
0
 @GenerateMicroBenchmark
 public int serialTreeSet() {
   return treeSet.stream().mapToInt(i -> i).sum();
 }
예제 #2
0
 @GenerateMicroBenchmark
 public int treeSet() {
   return treeSet.parallelStream().mapToInt(i -> i).sum();
 }