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

Comparing jsr166/src/test/loops/ExchangeLoops.java (file contents):
Revision 1.2 by dl, Mon Feb 13 12:39:23 2006 UTC vs.
Revision 1.3 by dl, Wed Apr 19 15:10:47 2006 UTC

# Line 79 | Line 79 | public class ExchangeLoops {
79  
80      static void oneRun(int nThreads, long trialMillis) throws Exception {
81          System.out.printf("%4d threads", nThreads);
82        System.out.printf("%9dms", trialMillis);
82          Exchanger x = new Exchanger();
83          Runner[] runners = new Runner[nThreads];
84          Thread[] threads = new Thread[nThreads];
# Line 112 | Line 111 | public class ExchangeLoops {
111          }
112          long rate = iters * 1000L * 1000L * 1000L / elapsed;
113          long npt = elapsed / iters;
114 +        System.out.printf("%9dms", elapsed / (1000L * 1000L));
115          System.out.printf("%9d it/s ", rate);
116          System.out.printf("%9d ns/it", npt);
117          System.out.println();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines