From 798ed8502c6489784085ae30cb6f1658b6fb68b1 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 30 Dec 2024 16:37:45 +0000 Subject: [PATCH] benchmark: update filter --- .../uni_marburg/powersort/benchmark/Filter.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/uni_marburg/powersort/benchmark/Filter.java b/app/src/main/java/de/uni_marburg/powersort/benchmark/Filter.java index f64984f..c3bffa3 100644 --- a/app/src/main/java/de/uni_marburg/powersort/benchmark/Filter.java +++ b/app/src/main/java/de/uni_marburg/powersort/benchmark/Filter.java @@ -11,13 +11,24 @@ public class Filter { } public static boolean isFiltered(DataEnum d, SortEnum s) { + // To skip some of the inputs for all inputs, uncomment it here. +// if (List.of( +// DataEnum.RANDOM_INTEGERS_300M, +// DataEnum.ASCENDING_INTEGERS_300M, +// DataEnum.DESCENDING_INTEGERS_250M, +// DataEnum.ASCENDING_RUNS_1M, +// DataEnum.ASCENDING_RUNS_WITH_OVERLAP_1M +// ).contains(d)) { +// return true; +// } if (s == SortEnum.QUICK_SORT) { return List.of( DataEnum.RANDOM_INTEGERS_300M, DataEnum.ASCENDING_INTEGERS_300M, DataEnum.DESCENDING_INTEGERS_250M, - DataEnum.ASCENDING_RUNS_1M + DataEnum.ASCENDING_RUNS_1M, + DataEnum.ASCENDING_RUNS_WITH_OVERLAP_1M ).contains(d); } @@ -40,7 +51,8 @@ public class Filter { // TODO: Remove this once performance of FinnSort improved if (s == SortEnum.FINN_SORT) { return List.of( - DataEnum.DESCENDING_INTEGERS_250M + DataEnum.DESCENDING_INTEGERS_250M, + DataEnum.ASCENDING_RUNS_1M ).contains(d); }