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