diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-23 17:07:31 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-23 17:07:31 +0100 |
| commit | 0ad600eb8e14c0ef3ba5529c59d300dc20c85ab2 (patch) | |
| tree | 6b8ae0a7bbbdfae8cef22561effc3b29b78e4e7a /simulator/opendc-simulator/opendc-simulator-resources/src/jmh | |
| parent | 16178eb0499ad398f14bd209e9c1a6e5b52850a9 (diff) | |
simulator: Add support for transforming resource consumers
This change adds support for transforming the resource commands emitted
by the resource consumers. The SimResourceForwarder is modified to also
support transforming the resource commands.
Diffstat (limited to 'simulator/opendc-simulator/opendc-simulator-resources/src/jmh')
| -rw-r--r-- | simulator/opendc-simulator/opendc-simulator-resources/src/jmh/kotlin/org/opendc/simulator/resources/SimResourceBenchmarks.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simulator/opendc-simulator/opendc-simulator-resources/src/jmh/kotlin/org/opendc/simulator/resources/SimResourceBenchmarks.kt b/simulator/opendc-simulator/opendc-simulator-resources/src/jmh/kotlin/org/opendc/simulator/resources/SimResourceBenchmarks.kt index f2eea97c..937b6966 100644 --- a/simulator/opendc-simulator/opendc-simulator-resources/src/jmh/kotlin/org/opendc/simulator/resources/SimResourceBenchmarks.kt +++ b/simulator/opendc-simulator/opendc-simulator-resources/src/jmh/kotlin/org/opendc/simulator/resources/SimResourceBenchmarks.kt @@ -71,7 +71,7 @@ class SimResourceBenchmarks { fun benchmarkForwardOverhead(state: Workload) { return scope.runBlockingTest { val provider = SimResourceSource(4200.0, clock, scheduler) - val forwarder = SimResourceForwarder() + val forwarder = SimResourceTransformer() provider.startConsumer(forwarder) return@runBlockingTest forwarder.consume(state.consumers[0]) } |
