mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-21 19:50:35 +01:00
benchmark: update filter
This commit is contained in:
parent
48a2db7bee
commit
798ed8502c
@ -11,13 +11,24 @@ public class Filter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isFiltered(DataEnum d, SortEnum s) {
|
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) {
|
if (s == SortEnum.QUICK_SORT) {
|
||||||
return List.of(
|
return List.of(
|
||||||
DataEnum.RANDOM_INTEGERS_300M,
|
DataEnum.RANDOM_INTEGERS_300M,
|
||||||
DataEnum.ASCENDING_INTEGERS_300M,
|
DataEnum.ASCENDING_INTEGERS_300M,
|
||||||
DataEnum.DESCENDING_INTEGERS_250M,
|
DataEnum.DESCENDING_INTEGERS_250M,
|
||||||
DataEnum.ASCENDING_RUNS_1M
|
DataEnum.ASCENDING_RUNS_1M,
|
||||||
|
DataEnum.ASCENDING_RUNS_WITH_OVERLAP_1M
|
||||||
).contains(d);
|
).contains(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +51,8 @@ public class Filter {
|
|||||||
// TODO: Remove this once performance of FinnSort improved
|
// TODO: Remove this once performance of FinnSort improved
|
||||||
if (s == SortEnum.FINN_SORT) {
|
if (s == SortEnum.FINN_SORT) {
|
||||||
return List.of(
|
return List.of(
|
||||||
DataEnum.DESCENDING_INTEGERS_250M
|
DataEnum.DESCENDING_INTEGERS_250M,
|
||||||
|
DataEnum.ASCENDING_RUNS_1M
|
||||||
).contains(d);
|
).contains(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user