24 |
|
|
25 |
|
public static void main(String[] args) throws Exception { |
26 |
|
Class klass = Class.forName(args[0]); |
27 |
< |
int n = (args.length <= 1)? DEFAULT_SIZE : Integer.parseInt(args[1]); |
28 |
< |
int t = (args.length <= 2)? DEFAULT_TRIALS : Integer.parseInt(args[2]); |
27 |
> |
int n = (args.length <= 1) ? DEFAULT_SIZE : Integer.parseInt(args[1]); |
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); |
119 |
|
k >>>= 1; |
120 |
|
} |
121 |
|
// let GC settle down |
122 |
< |
try { Thread.sleep(500); } catch(Exception ex) { return; } |
122 |
> |
try { Thread.sleep(500); } |
123 |
> |
catch (Exception ex) { return; } |
124 |
|
} |
125 |
|
|
126 |
|
|