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 sreps = 4; |
19 |
|
int reps = 20; |
54 |
|
System.out.printf("ParallelArray.sort time: %7.3f\n", elapsed); |
55 |
|
} |
56 |
|
|
57 |
< |
static void checkSorted (Long[] a) { |
57 |
> |
static void checkSorted(Long[] a) { |
58 |
|
int n = a.length; |
59 |
|
for (int i = 0; i < n - 1; i++) { |
60 |
|
if (a[i].compareTo(a[i+1]) > 0) { |