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

updated performance measurements

parent 7b6b71ee
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.util.Map;
......@@ -42,7 +43,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords;
*/
public class ChwHomeTraceReconstructionAnalysisTest {
private static final String RESOURCE_DIR = "target/test-classes/";
private static final String RESOURCE_DIR = "src/test/resources/";
private StopWatch stopWatch;
@Before
......@@ -82,7 +83,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords trace6886 = analysis.getElementCollection().get(1);
assertEquals(6886, trace6886.getTraceMetadata().getTraceId());
assertThat(quintiles.get(0.5), is(both(greaterThan(34l)).and(lessThan(320l))));
assertThat(quintiles.get(0.5), is(both(greaterThan(0l)).and(lessThan(2l))));
}
@Test
......@@ -111,7 +112,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords trace1 = analysis.getElementCollection().get(1);
assertEquals(8974347286117089281l, trace1.getTraceMetadata().getTraceId());
assertThat(quintiles.get(0.5), is(both(greaterThan(1700l)).and(lessThan(1900l))));
assertThat(quintiles.get(0.5), is(both(greaterThan(2100l)).and(lessThan(2200l))));
}
@Test
......@@ -128,8 +129,10 @@ public class ChwHomeTraceReconstructionAnalysisTest {
}
StatisticsUtil.removeLeadingZeroThroughputs(analysis.getThroughputs());
Map<Double, Long> quintiles = StatisticsUtil.calculateQuintiles(analysis.getThroughputs());
System.out.println("Median throughput: " + quintiles.get(0.5) + " elements/time unit");
assertTrue(analysis.getThroughputs().isEmpty());
// Map<Double, Long> quintiles = StatisticsUtil.calculateQuintiles(analysis.getThroughputs());
// System.out.println("Median throughput: " + quintiles.get(0.5) + " elements/time unit");
assertEquals(17371, analysis.getNumRecords());
assertEquals(22, analysis.getNumTraces());
......@@ -140,7 +143,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords trace1 = analysis.getElementCollection().get(1);
assertEquals(1, trace1.getTraceMetadata().getTraceId());
assertThat(quintiles.get(0.5), is(both(greaterThan(200l)).and(lessThan(250l))));
// assertThat(quintiles.get(0.5), is(both(greaterThan(200l)).and(lessThan(250l))));
}
}
......@@ -21,8 +21,8 @@ appender("CONSOLE", ConsoleAppender) {
root WARN, ["CONSOLE"]
logger "teetime.framework", INFO
logger "teetime.framework.signal", INFO
logger "teetime.stage", INFO
//logger "teetime.framework", INFO
//logger "teetime.framework.signal", INFO
//logger "teetime.stage", INFO
logger "util", INFO
\ No newline at end of file
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