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

Comparing jsr166/src/test/loops/TimeoutExchangerLoops.java (file contents):
Revision 1.4 by jsr166, Thu Oct 29 23:09:08 2009 UTC vs.
Revision 1.6 by jsr166, Wed Sep 1 07:20:36 2010 UTC

# Line 36 | Line 36 | public class TimeoutExchangerLoops {
36              argc++;
37          }
38  
39 <        // Display runtime parameters
40 <        System.out.print("TimeoutExchangerTest");
41 <        System.out.print(" -t " + trialMillis);
42 <        System.out.print(" -p " + patienceNanos);
39 >        // Display runtime parameters
40 >        System.out.print("TimeoutExchangerTest");
41 >        System.out.print(" -t " + trialMillis);
42 >        System.out.print(" -p " + patienceNanos);
43          System.out.print(" -r " + nReps);
44 <        System.out.print(" max threads " + maxThreads);
45 <        System.out.println();
44 >        System.out.print(" max threads " + maxThreads);
45 >        System.out.println();
46  
47          System.out.println("Warmups..");
48          long warmupTime = 1000;
# Line 103 | Line 103 | public class TimeoutExchangerLoops {
103          if (iters <= 0) iters = 1;
104          long rate = iters * 1000L * 1000L * 1000L / elapsed;
105          long npt = elapsed / iters;
106 <        double failRate = (fails * 100.0) / (double)iters;
106 >        double failRate = (fails * 100.0) / (double) iters;
107          System.out.printf("%9d it/s ", rate);
108          System.out.printf("%9d ns/it", npt);
109          System.out.printf("%9.5f%% fails", failRate);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines