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]; |
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(); |