Skip to content

Commit

Permalink
Fix Mhz -> MHz in Dhrystone benchmark report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcmry committed Jun 17, 2024
1 parent 7beb988 commit 8968b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scala/vexriscv/DhrystoneBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DhrystoneBench extends AnyFunSuite {
val coremarkIterations = intFind.findFirstIn("Iterations \\: (\\d+.?)+".r.findAllIn(str).toList.last).get.toDouble
val coremarkHzs = intFind.findFirstIn("DCLOCKS_PER_SEC=(\\d+.?)+".r.findAllIn(str).toList.last).get.toDouble
val coremarkPerMhz = 1e6 * coremarkIterations / coremarkTicks
report ++= s"$name -> $dmips DMIPS/Mhz $coremarkPerMhz Coremark/Mhz\n"
report ++= s"$name -> $dmips DMIPS/MHz $coremarkPerMhz Coremark/MHz\n"
}

}
Expand Down

0 comments on commit 8968b5a

Please sign in to comment.