Commit a2ab3a7d authored by Noric Couderc's avatar Noric Couderc
Browse files

Split expression

map -> map + zip
parent 7f371b69
......@@ -158,12 +158,12 @@ open class PapiRunner(val numRuns: Int, counters: CounterSpecification) : PapiBe
val specs = createRunSpecs(syntheticBenchmarks)
val numberBenchmarks = specs.size
var i = 0
val spectToCounters = specs.map {
val samples = specs.map {
print("Running spec: $i / $numberBenchmarks\r")
i++
val samples = runSpec(it)
Pair(it, samples)
}
runSpec(it) }
val spectToCounters = specs.zip(samples)
println("Finished running specs.")
return spectToCounters.map {
Triple(it.first.syntheticBenchmark,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment