mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-02-23 00:45:22 +01:00
misc during meeting
This commit is contained in:
parent
6694a076e5
commit
2e9c2ca2bf
@ -34,7 +34,7 @@ import java.util.concurrent.TimeUnit;
|
||||
// AverageTime: "Average time per operation."
|
||||
// - "This mode is time-based, and it will run until the iteration time expires."
|
||||
//@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)
|
||||
|
||||
// SingleShotTime: "Time per single operation"
|
||||
|
@ -23,7 +23,7 @@ public class JmhCgl extends JmhBase {
|
||||
|
||||
// Either all or a selection of sort implementations.
|
||||
//@Param()
|
||||
@Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_11", "IMPL_M_21"})
|
||||
@Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_40"})
|
||||
SortEnum sortEnum;
|
||||
|
||||
@Override
|
||||
|
@ -16,9 +16,18 @@ import org.openjdk.jmh.annotations.State;
|
||||
*/
|
||||
@State(Scope.Benchmark)
|
||||
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;
|
||||
@Param()
|
||||
//@Param()
|
||||
@Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_40"})
|
||||
SortEnum sortEnum;
|
||||
|
||||
@Override
|
||||
|
@ -172,7 +172,7 @@ public class FasterFinnSort<T> {
|
||||
}
|
||||
|
||||
// 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];
|
||||
runLen = new int[stackLen];
|
||||
runPower = new int[stackLen];
|
||||
|
@ -1,5 +1,8 @@
|
||||
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 {
|
||||
IMPL_M_1Test() {
|
||||
sortAlg = SortEnum.IMPL_M_10;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user