65 |
|
// Print out absolute and relative times, calibrated against first job |
66 |
|
for (int i = 0; i < jobs.length; i++) { |
67 |
|
long time = jobs[i].nanos/itemsPerTest; |
68 |
< |
double ratio = (double)jobs[i].nanos / (double)jobs[0].nanos; |
68 |
> |
double ratio = (double) jobs[i].nanos / (double) jobs[0].nanos; |
69 |
|
System.out.printf(format, jobs[i].name(), time, ratio); |
70 |
|
} |
71 |
|
} |
113 |
|
public void work() { |
114 |
|
Map m = null; |
115 |
|
try { |
116 |
< |
m = (Map)mapClass.newInstance(); |
117 |
< |
} catch(Exception e) { |
116 |
> |
m = (Map) mapClass.newInstance(); |
117 |
> |
} catch (Exception e) { |
118 |
|
throw new RuntimeException("Can't instantiate " + mapClass + ": " + e); |
119 |
|
} |
120 |
|
final int len = elts.length; |