Skip to content
Snippets Groups Projects
Commit 51278ef7 authored by Sören Henning's avatar Sören Henning
Browse files

Generate results CSV file from Theodolite (#320)

parent 1435b658
No related branches found
No related tags found
1 merge request!242Draft: Feature/346 use strimzi kafka
...@@ -137,6 +137,12 @@ class TheodoliteExecutor( ...@@ -137,6 +137,12 @@ class TheodoliteExecutor(
config.compositeStrategy.benchmarkExecutor.results, config.compositeStrategy.benchmarkExecutor.results,
"${resultsFolder}exp${this.config.executionId}-result" "${resultsFolder}exp${this.config.executionId}-result"
) )
// Create expXYZ_demand.csv file
ioHandler.writeToCSVFile(
"${resultsFolder}exp${this.config.executionId}_demand.csv",
calculateDemandMetric(config.loads, config.compositeStrategy.benchmarkExecutor.results),
listOf("load","resources")
)
} }
kubernetesBenchmark.teardownInfrastructure() kubernetesBenchmark.teardownInfrastructure()
} }
...@@ -151,4 +157,8 @@ class TheodoliteExecutor( ...@@ -151,4 +157,8 @@ class TheodoliteExecutor(
return executionID return executionID
} }
private fun calculateDemandMetric(loadDimensions: List<LoadDimension>, results: Results): List<List<String>> {
return loadDimensions.map { listOf(it.get().toString(), results.getMinRequiredInstances(it).get().toString()) }
}
} }
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