misc during meeting

This commit is contained in:
Daniel Langbein 2025-01-28 19:47:12 +01:00
parent 6694a076e5
commit 2e9c2ca2bf
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
8 changed files with 44 additions and 5 deletions

View File

@ -34,7 +34,7 @@ import java.util.concurrent.TimeUnit;
// AverageTime: "Average time per operation." // AverageTime: "Average time per operation."
// - "This mode is time-based, and it will run until the iteration time expires." // - "This mode is time-based, and it will run until the iteration time expires."
//@BenchmarkMode(Mode.AverageTime) //@BenchmarkMode(Mode.AverageTime)
//@Warmup(iterations = 6, time = 1, timeUnit = TimeUnit.SECONDS) //@Warmup(iterations = 20, time = 1, timeUnit = TimeUnit.SECONDS)
//@Measurement(iterations = 6, time = 1, timeUnit = TimeUnit.SECONDS) //@Measurement(iterations = 6, time = 1, timeUnit = TimeUnit.SECONDS)
// SingleShotTime: "Time per single operation" // SingleShotTime: "Time per single operation"

View File

@ -23,7 +23,7 @@ public class JmhCgl extends JmhBase {
// Either all or a selection of sort implementations. // Either all or a selection of sort implementations.
//@Param() //@Param()
@Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_11", "IMPL_M_21"}) @Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_40"})
SortEnum sortEnum; SortEnum sortEnum;
@Override @Override

View File

@ -16,9 +16,18 @@ import org.openjdk.jmh.annotations.State;
*/ */
@State(Scope.Benchmark) @State(Scope.Benchmark)
public class JmhCompetition extends JmhBase { public class JmhCompetition extends JmhBase {
@Param() //@Param()
@Param({
// Top 4 Heavyweight by #comparisons
"COMPETITION_207", "COMPETITION_214", "COMPETITION_213", "COMPETITION_236",
// Top 4 Heavyweight by #merge-cost
"COMPETITION_198","COMPETITION_199","COMPETITION_232","COMPETITION_231",
// Top 4 Heavyweight by combined metric
"COMPETITION_214","COMPETITION_218","COMPETITION_236","COMPETITION_213",
})
CompetitionEnum dataEnum; CompetitionEnum dataEnum;
@Param() //@Param()
@Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_40"})
SortEnum sortEnum; SortEnum sortEnum;
@Override @Override

View File

@ -172,7 +172,7 @@ public class FasterFinnSort<T> {
} }
// TODO: Verify if this is correct // TODO: Verify if this is correct
int stackLen = ((int) Math.ceil(Math.log(rangeSize))) + 2; int stackLen = ((int) Math.ceil(Math.log(rangeSize) / Math.log(2))) + 2;
runBase = new int[stackLen]; runBase = new int[stackLen];
runLen = new int[stackLen]; runLen = new int[stackLen];
runPower = new int[stackLen]; runPower = new int[stackLen];

View File

@ -1,5 +1,8 @@
package de.uni_marburg.powersort.sort; package de.uni_marburg.powersort.sort;
import org.junit.jupiter.api.Disabled;
@Disabled("Disabled in favor of IMPL_M_2")
public class IMPL_M_1Test extends AbstractSortTest { public class IMPL_M_1Test extends AbstractSortTest {
IMPL_M_1Test() { IMPL_M_1Test() {
sortAlg = SortEnum.IMPL_M_10; sortAlg = SortEnum.IMPL_M_10;

View File

@ -0,0 +1,10 @@
package de.uni_marburg.powersort.sort;
import org.junit.jupiter.api.Disabled;
@Disabled("Disabled in favor of IMPL_M_3")
public class IMPL_M_2Test extends AbstractSortTest {
IMPL_M_2Test() {
sortAlg = SortEnum.IMPL_M_20;
}
}

View File

@ -0,0 +1,10 @@
package de.uni_marburg.powersort.sort;
import org.junit.jupiter.api.Disabled;
@Disabled("Disabled in favor of IMPL_M_4")
public class IMPL_M_3Test extends AbstractSortTest {
IMPL_M_3Test() {
sortAlg = SortEnum.IMPL_M_30;
}
}

View File

@ -0,0 +1,7 @@
package de.uni_marburg.powersort.sort;
public class IMPL_M_4Test extends AbstractSortTest {
IMPL_M_4Test() {
sortAlg = SortEnum.IMPL_M_40;
}
}