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.39 by jsr166, Mon Mar 26 21:04:36 2018 UTC vs.
Revision 1.40 by jsr166, Mon Apr 2 20:32:53 2018 UTC

# Line 58 | Line 58 | import java.util.concurrent.TimeUnit;
58   import java.util.concurrent.atomic.LongAdder;
59   import java.util.regex.Pattern;
60   import java.util.stream.Stream;
61 import java.util.function.ToIntFunction;
61  
62   /**
63   * Usage: [iterations=N] [size=N] [filter=REGEXP] [warmup=SECONDS]
# Line 273 | Line 272 | public class IteratorMicroBenchmark {
272      }
273  
274      void run() throws Throwable {
276 //         System.out.printf(
277 //             "iterations=%d size=%d, warmup=%1g, filter=\"%s\"%n",
278 //             iterations, size, warmupSeconds, nameFilter);
279
275          final ArrayList<Integer> al = new ArrayList<>(size);
276  
277          // Populate collections with random data
# Line 329 | Line 324 | public class IteratorMicroBenchmark {
324      Stream<Job> jobs(Collection<Integer> x) {
325          return concatStreams(
326              collectionJobs(x),
327 +
328              (x instanceof Deque)
329              ? dequeJobs((Deque<Integer>)x)
330              : Stream.empty(),
331 +
332              (x instanceof List)
333              ? listJobs((List<Integer>)x)
334              : Stream.empty());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines