13 |
|
static final Random rng = new Random(); |
14 |
|
static final long NPS = (1000L * 1000 * 1000); |
15 |
|
|
16 |
< |
public static void main (String[] args) throws Exception { |
16 |
> |
public static void main(String[] args) throws Exception { |
17 |
|
int n = 1 << 20; |
18 |
|
int reps = 9; |
19 |
|
System.out.printf("Sorting %d Longs, %d replications\n", n, reps); |
44 |
|
fjpool.shutdown(); |
45 |
|
} |
46 |
|
|
47 |
< |
static void checkSorted (Long[] a) { |
47 |
> |
static void checkSorted(Long[] a) { |
48 |
|
int n = a.length; |
49 |
|
for (int i = 0; i < n - 1; i++) { |
50 |
|
if (a[i].compareTo(a[i+1]) > 0) { |