* Uses Arrays.sort() for sorting.
*/
-class DummySort {
+class DummySort {
public static void sort(T[] a, int lo, int hi, Comparator super T> c,
T[] work, int workBase, int workLen) {
assert lo == 0;
diff --git a/app/src/main/java/de/uni_marburg/powersort/benchmark/DummySort2.java b/app/src/main/java/de/uni_marburg/powersort/benchmark/DummySort2.java
index 96edd2d..e44b3f7 100644
--- a/app/src/main/java/de/uni_marburg/powersort/benchmark/DummySort2.java
+++ b/app/src/main/java/de/uni_marburg/powersort/benchmark/DummySort2.java
@@ -9,7 +9,7 @@ import java.util.Comparator;
* Uses Arrays.sort() for sorting.
* But calls it a.length times which makes this implementation really inefficient.
*/
-class DummySort2 {
+class DummySort2 {
public static void sort(T[] a, int lo, int hi, Comparator super T> c,
T[] work, int workBase, int workLen) {
assert lo == 0;
diff --git a/app/src/main/java/de/uni_marburg/powersort/benchmark/Main.java b/app/src/main/java/de/uni_marburg/powersort/benchmark/Main.java
index da019e3..fe0e492 100644
--- a/app/src/main/java/de/uni_marburg/powersort/benchmark/Main.java
+++ b/app/src/main/java/de/uni_marburg/powersort/benchmark/Main.java
@@ -2,34 +2,50 @@ package de.uni_marburg.powersort.benchmark;
import de.uni_marburg.powersort.TimSort;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.util.Arrays;
-import java.util.Comparator;
import java.util.List;
import java.util.function.Supplier;
public class Main {
- public static void main(final String[] args) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
- final Method[] sortImplementations = getSortImplementations();
+ public static void main(final String[] args) {
+ final SortImpl[] sortImplementations = getSortImplementations();
final List> sortInputSuppliers = getSortInputSuppliers();
- final NaturalOrder c = NaturalOrder.INSTANCE;
for (Supplier