--- jsr166/src/test/extra166y/SortDemo.java 2009/11/01 22:00:35 1.1 +++ jsr166/src/test/extra166y/SortDemo.java 2010/11/25 12:38:35 1.5 @@ -14,7 +14,7 @@ class SortDemo { static final long NPS = (1000L * 1000 * 1000); public static void main (String[] args) throws Exception { - int n = 1 << 20; + int n = 1 << 22; int sreps = 4; int reps = 20; Long[] a = new Long[n]; @@ -39,7 +39,7 @@ class SortDemo { System.out.println(fjpool); fjpool.shutdown(); } - + static void seqSort(Long[] a) { long last = System.nanoTime(); java.util.Arrays.sort(a); @@ -53,8 +53,8 @@ class SortDemo { double elapsed = (double)(System.nanoTime() - last) / NPS; System.out.printf("ParallelArray.sort time: %7.3f\n", elapsed); } - - static void checkSorted (Long[] a) { + + static void checkSorted(Long[] a) { int n = a.length; for (int i = 0; i < n - 1; i++) { if (a[i].compareTo(a[i+1]) > 0) { @@ -62,7 +62,7 @@ class SortDemo { } } } - + static final class RandomLongGenerator implements Ops.Generator { public Long op() { return new Long(ThreadLocalRandom.current().nextLong());