ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/IteratorLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/IteratorLoops.java (file contents):
Revision 1.6 by jsr166, Mon Nov 2 23:51:32 2009 UTC vs.
Revision 1.7 by jsr166, Tue Nov 3 01:04:02 2009 UTC

# Line 28 | Line 28 | public final class IteratorLoops {
28          int t = (args.length <= 2) ? DEFAULT_TRIALS : Integer.parseInt(args[2]);
29  
30          System.out.print("Class: " + klass.getName());
31 <        System.out.print(" ~iters: " + (long)n * (long)n);
31 >        System.out.print(" ~iters: " + (long) n * (long) n);
32          System.out.print(" trials: " + t);
33          System.out.println();
34  
# Line 65 | Line 65 | public final class IteratorLoops {
65          preload(n);
66          long startTime = System.nanoTime();
67          long count = traversals(n);
68 <        double elapsed = (double)(System.nanoTime() - startTime);
68 >        double elapsed = (double) (System.nanoTime() - startTime);
69          double npi = elapsed / count;
70          double secs = elapsed / 1000000000;
71          System.out.printf("%7.1f ns/iter  %8.3fs run time\n", npi, secs);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines