summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-compute/src/jmh
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-02 22:10:21 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-21 11:31:14 +0200
commitc9d4b846dfa7bf71bc394761717cb165951fa790 (patch)
tree97872dd402c1d76b1d9edf5ee0784f1bfde216e0 /opendc-simulator/opendc-simulator-compute/src/jmh
parent06b19fbf17b9e6d8024ba36e0f2533b2db0dd7de (diff)
refactor(sim/compute): Remove convergence listener parameter
This change removes the convergence listener parameter in for the `SimBareMetalMachine` and the hypervisors. This parameter was not used in the code-base and is being removed with the introduction of the new flow2 module.
Diffstat (limited to 'opendc-simulator/opendc-simulator-compute/src/jmh')
-rw-r--r--opendc-simulator/opendc-simulator-compute/src/jmh/kotlin/org/opendc/simulator/compute/SimMachineBenchmarks.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/src/jmh/kotlin/org/opendc/simulator/compute/SimMachineBenchmarks.kt b/opendc-simulator/opendc-simulator-compute/src/jmh/kotlin/org/opendc/simulator/compute/SimMachineBenchmarks.kt
index 91e91f9d..f257ebb3 100644
--- a/opendc-simulator/opendc-simulator-compute/src/jmh/kotlin/org/opendc/simulator/compute/SimMachineBenchmarks.kt
+++ b/opendc-simulator/opendc-simulator-compute/src/jmh/kotlin/org/opendc/simulator/compute/SimMachineBenchmarks.kt
@@ -45,7 +45,6 @@ import java.util.concurrent.TimeUnit
@Fork(1)
@Warmup(iterations = 2, time = 1, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 3, timeUnit = TimeUnit.SECONDS)
-@OptIn(ExperimentalCoroutinesApi::class)
class SimMachineBenchmarks {
private lateinit var machineModel: MachineModel
private lateinit var trace: SimTrace
@@ -87,7 +86,7 @@ class SimMachineBenchmarks {
val machine = SimBareMetalMachine(
engine, machineModel, SimplePowerDriver(ConstantPowerModel(0.0))
)
- val hypervisor = SimSpaceSharedHypervisor(engine, null, null)
+ val hypervisor = SimSpaceSharedHypervisor(engine, null)
launch { machine.runWorkload(hypervisor) }
@@ -109,7 +108,7 @@ class SimMachineBenchmarks {
val machine = SimBareMetalMachine(
engine, machineModel, SimplePowerDriver(ConstantPowerModel(0.0))
)
- val hypervisor = SimFairShareHypervisor(engine, null, null, null)
+ val hypervisor = SimFairShareHypervisor(engine, null, null)
launch { machine.runWorkload(hypervisor) }
@@ -131,7 +130,7 @@ class SimMachineBenchmarks {
val machine = SimBareMetalMachine(
engine, machineModel, SimplePowerDriver(ConstantPowerModel(0.0))
)
- val hypervisor = SimFairShareHypervisor(engine, null, null, null)
+ val hypervisor = SimFairShareHypervisor(engine, null, null)
launch { machine.runWorkload(hypervisor) }