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

Generate results CSV file from Theodolite (#320)

parent d6600d90
No related branches found
No related tags found
No related merge requests found
Pipeline #6028 passed
......@@ -137,6 +137,12 @@ class TheodoliteExecutor(
config.compositeStrategy.benchmarkExecutor.results,
"${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()
}
......@@ -151,4 +157,8 @@ class TheodoliteExecutor(
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