Skip to content
Snippets Groups Projects
Commit 8974ea3f authored by Christian Wulf's avatar Christian Wulf
Browse files

refactored performance tests;

removed some logging from RunnableConsumerStage
parent 4fb5e4d0
No related branches found
No related tags found
No related merge requests found
......@@ -40,19 +40,14 @@ final class RunnableConsumerStage extends AbstractRunnableStage {
this.inputPorts = stage.getInputPorts(); // FIXME should getInputPorts() really be defined in Stage?
}
@SuppressWarnings("PMD.GuardLogStatement")
@Override
protected void beforeStageExecution(final Stage stage) throws InterruptedException {
logger.trace("ENTRY beforeStageExecution");
logger.trace("Waiting for start signals..." + inputPorts);
for (InputPort<?> inputPort : inputPorts) {
inputPort.waitForStartSignal();
}
logger.trace("Starting..." + stage);
// stage.onSignal(signal, inputPort);
logger.trace("EXIT beforeStageExecution");
}
@Override
......
......@@ -28,7 +28,7 @@ public class ChwWorkComparisonMethodcallWithPorts extends AbstractProfiledPerfor
@Override
public String getCorrespondingPerformanceProfile() {
return "ChwWork";
return HostName.CHW_WORK.toString();
}
@Override
......
......@@ -16,15 +16,16 @@
package teetime.examples.experiment01;
import static org.junit.Assert.assertEquals;
import teetime.examples.HostName;
import teetime.util.test.eval.PerformanceResult;
import util.test.PerformanceTest;
import util.test.AbstractProfiledPerformanceAssertion;
import util.test.PerformanceTest;
class ChwWorkPerformanceCheck extends AbstractProfiledPerformanceAssertion {
@Override
public String getCorrespondingPerformanceProfile() {
return "ChwWork";
return HostName.CHW_WORK.toString();
}
@Override
......
......@@ -16,12 +16,13 @@
package teetime.examples.experiment09pipeimpls;
import static org.junit.Assert.assertEquals;
import teetime.examples.HostName;
class ChwWorkPerformanceCheck extends AbstractPerformanceCheck {
@Override
public String getCorrespondingPerformanceProfile() {
return "ChwWork";
return HostName.CHW_WORK.toString();
}
@Override
......
......@@ -16,15 +16,16 @@
package teetime.examples.experiment11;
import static org.junit.Assert.assertEquals;
import teetime.examples.HostName;
import teetime.util.test.eval.PerformanceResult;
import util.test.PerformanceTest;
import util.test.AbstractProfiledPerformanceAssertion;
import util.test.PerformanceTest;
class ChwWorkPerformanceCheck extends AbstractProfiledPerformanceAssertion {
@Override
public String getCorrespondingPerformanceProfile() {
return "ChwWork";
return HostName.CHW_WORK.toString();
}
@Override
......
......@@ -16,12 +16,18 @@
package teetime.examples.experiment16;
import static org.junit.Assert.assertEquals;
import teetime.examples.HostName;
import teetime.util.test.eval.PerformanceResult;
import util.test.AbstractProfiledPerformanceAssertion;
import util.test.PerformanceTest;
class ChwWorkPerformanceCheck extends AbstractProfiledPerformanceAssertion {
@Override
public String getCorrespondingPerformanceProfile() {
return HostName.CHW_WORK.toString();
}
@Override
public void check() {
PerformanceResult test16a = PerformanceTest.measurementRepository.performanceResults
......@@ -43,8 +49,4 @@ class ChwWorkPerformanceCheck extends AbstractProfiledPerformanceAssertion {
assertEquals(2.0, speedupC, 0.3);
}
@Override
public String getCorrespondingPerformanceProfile() {
return "ChwWork";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment