summaryrefslogtreecommitdiff
path: root/simulator/opendc-experiments/opendc-experiments-sc20/src/test
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-01-11 20:13:46 +0100
committerGitHub <noreply@github.com>2021-01-11 20:13:46 +0100
commitbf558fe36c9de52310e85044ee4447b45bd50b75 (patch)
treebea8e47037660c88df42e04105e7a0b7f709173a /simulator/opendc-experiments/opendc-experiments-sc20/src/test
parent42e9a5b5b610f41a03e68f6fc781c54b9402925b (diff)
parent9dbb7bbcc2202955c715aaa3b28c70641a2fbd5b (diff)
Merge pull request #71 from atlarge-research/perf/workload
Convert to pull-based workload model
Diffstat (limited to 'simulator/opendc-experiments/opendc-experiments-sc20/src/test')
-rw-r--r--simulator/opendc-experiments/opendc-experiments-sc20/src/test/kotlin/org/opendc/experiments/sc20/Sc20IntegrationTest.kt18
1 files changed, 9 insertions, 9 deletions
diff --git a/simulator/opendc-experiments/opendc-experiments-sc20/src/test/kotlin/org/opendc/experiments/sc20/Sc20IntegrationTest.kt b/simulator/opendc-experiments/opendc-experiments-sc20/src/test/kotlin/org/opendc/experiments/sc20/Sc20IntegrationTest.kt
index 2eedb636..c5ad345d 100644
--- a/simulator/opendc-experiments/opendc-experiments-sc20/src/test/kotlin/org/opendc/experiments/sc20/Sc20IntegrationTest.kt
+++ b/simulator/opendc-experiments/opendc-experiments-sc20/src/test/kotlin/org/opendc/experiments/sc20/Sc20IntegrationTest.kt
@@ -90,7 +90,7 @@ class Sc20IntegrationTest {
fun tearDown() = testScope.cleanupTestCoroutines()
@Test
- fun smoke() {
+ fun testLarge() {
val failures = false
val seed = 0
val chan = Channel<Unit>(Channel.CONFLATED)
@@ -148,15 +148,15 @@ class Sc20IntegrationTest {
assertAll(
{ assertEquals(50, scheduler.submittedVms, "The trace contains 50 VMs") },
{ assertEquals(50, scheduler.finishedVms, "All VMs should finish after a run") },
- { assertEquals(207480856422, monitor.totalRequestedBurst) },
- { assertEquals(206510493178, monitor.totalGrantedBurst) },
- { assertEquals(336120436, monitor.totalOvercommissionedBurst) },
+ { assertEquals(1684849230562, monitor.totalRequestedBurst) },
+ { assertEquals(447612683996, monitor.totalGrantedBurst) },
+ { assertEquals(1219535757406, monitor.totalOvercommissionedBurst) },
{ assertEquals(0, monitor.totalInterferedBurst) }
)
}
@Test
- fun small() {
+ fun testSmall() {
val seed = 1
val chan = Channel<Unit>(Channel.CONFLATED)
val allocationPolicy = AvailableCoreMemoryAllocationPolicy()
@@ -195,10 +195,10 @@ class Sc20IntegrationTest {
// Note that these values have been verified beforehand
assertAll(
- { assertEquals(96410877173, monitor.totalRequestedBurst) },
- { assertEquals(96046583992, monitor.totalGrantedBurst) },
- { assertEquals(19265632, monitor.totalOvercommissionedBurst) },
- { assertEquals(0, monitor.totalInterferedBurst) }
+ { assertEquals(705128393966, monitor.totalRequestedBurst) { "Total requested work incorrect" } },
+ { assertEquals(173489747029, monitor.totalGrantedBurst) { "Total granted work incorrect" } },
+ { assertEquals(526858997740, monitor.totalOvercommissionedBurst) { "Total overcommitted work incorrect" } },
+ { assertEquals(0, monitor.totalInterferedBurst) { "Total interfered work incorrect" } }
)
}