ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collection/IteratorMicroBenchmark.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collection/IteratorMicroBenchmark.java (file contents):
Revision 1.42 by jsr166, Thu Apr 5 05:23:16 2018 UTC vs.
Revision 1.43 by jsr166, Thu Apr 5 15:36:06 2018 UTC

# Line 390 | Line 390 | public class IteratorMicroBenchmark {
390                          sum[0] = 0;
391                          if (x.contains(sneakyAdder)) throw new AssertionError();
392                          check.sum(sum[0]);}}},
393 +            new Job(klazz + " containsAll") {
394 +                public void work() throws Throwable {
395 +                    int[] sum = new int[1];
396 +                    Collection<Object> sneakyAdderCollection =
397 +                        Collections.singleton(sneakyAdder(sum));
398 +                    for (int i = 0; i < iterations; i++) {
399 +                        sum[0] = 0;
400 +                        if (x.containsAll(sneakyAdderCollection))
401 +                            throw new AssertionError();
402 +                        check.sum(sum[0]);}}},
403              new Job(klazz + " remove(Object)") {
404                  public void work() throws Throwable {
405                      int[] sum = new int[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines