Skip to content

Commit

Permalink
Review comment changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sayed Bilal Bari <[email protected]>
  • Loading branch information
bilalbari committed Jul 11, 2024
1 parent b6e7b3f commit 73d3992
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Benchmark(
import Benchmark._

val benchmarks: mutable.ArrayBuffer[Case] = mutable.ArrayBuffer.empty[Benchmark.Case]
private val separator = "-" * 80

/**
* Adds a case to run when run() is called. The given function will be run for several
Expand Down Expand Up @@ -76,12 +75,13 @@ class Benchmark(
*/
def run(): Seq[Result] = {
require(benchmarks.nonEmpty)
val separator = "-" * 80
println(separator)
println("Running benchmark: " + name)
println(separator)
val results = benchmarks.map { c =>
println(" RUNNING CASE : " + c.name)
println("-" * 80)
println(separator)
measure(c.name, c.numIters)(c.fn)
}
println
Expand Down

0 comments on commit 73d3992

Please sign in to comment.