Skip to content

Commit

Permalink
bold times
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Oct 2, 2021
1 parent a8ca44f commit 1053204
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,12 @@ macro btime(args...)
local $trialmin = $BenchmarkTools.minimum($trial)
local $trialmean = $BenchmarkTools.mean($trial)
local $trialallocs = $BenchmarkTools.allocs($trialmin)
$print(" min ", $BenchmarkTools.prettytime($BenchmarkTools.time($trialmin)),
", mean ", $BenchmarkTools.prettytime($BenchmarkTools.time($trialmean)),
" (", $trialallocs , " allocation", $trialallocs == 1 ? "" : "s")
$print(" min ")
$printstyled($BenchmarkTools.prettytime($BenchmarkTools.time($trialmin)); bold=true)
$print(", ")
$print("mean ")
$printstyled($BenchmarkTools.prettytime($BenchmarkTools.time($trialmean)); bold=true)
$print(" (", $trialallocs , " allocation", $trialallocs == 1 ? "" : "s")
if $trialallocs != 0
$print(", ", $prettymemory($memory($trialmin)))
end
Expand Down

0 comments on commit 1053204

Please sign in to comment.