Commit 4dd32f60 authored by Noric Couderc's avatar Noric Couderc
Browse files

Made printing of progress lighter

The previous methods printed too many lines to be useful.
parent 98125f61
......@@ -108,7 +108,7 @@ open class PapiRunner(numRuns : Int, counters: CounterSpecification) {
}
fun runSpec(spec : RunSpec): List<Long> {
println("Running benchmark: " + spec.syntheticBenchmark.benchmarkIdentifier)
// println("Running benchmark: " + spec.syntheticBenchmark.benchmarkIdentifier)
val writer = FileWriter("/dev/null")
val samples = mutableListOf<Long>()
for (i in 0 until spec.numRuns) {
......@@ -202,10 +202,15 @@ open class PapiRunner(numRuns : Int, counters: CounterSpecification) {
fun runApplications(syntheticBenchmarks: List<BCBenchmarkPackage<*>>): List<Triple<BCBenchmarkPackage<*>, String, List<Long>>> {
// return syntheticBenchmarks.map { b -> runApplication(iterations, b) }
val specs = createRunSpecs(syntheticBenchmarks)
val numberBenchmarks = specs.size
var i = 0
val spectToCounters = specs.map {
print("Running spec: $i / $numberBenchmarks\r")
i++
val samples = runSpec(it)
Pair(it, samples)
}
println("Finished running specs.")
return spectToCounters.map {
Triple(it.first.syntheticBenchmark,
it.first.counter,
......
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