File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -587,14 +587,16 @@ macro btime(args...)
587587 $ print (" min " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmin)),
588588 " , mean " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmean)),
589589 " (" , $ trialallocs , " allocation" , $ trialallocs == 1 ? " " : " s" )
590- if $ trialallocs == 0
591- $ println (" )" )
592- else
593- $ println (" , " , $ prettymemory ($ memory ($ trialmin)),
594- " . GC mean " , $ prettytime ($ gctime ($ trialmean); short= true ),
595- " , " , $ prettypercent ($ gctime ($ trialmean) / $ time ($ trialmean)), " )"
590+ if $ trialallocs != 0
591+ $ print (" , " , $ prettymemory ($ memory ($ trialmin)))
592+ end
593+ if $ gctime ($ trialmean) != 0
594+ $ print (" . GC mean " ,
595+ # $prettytime($gctime($trialmean); short=true), ", ",
596+ $ prettypercent ($ gctime ($ trialmean) / $ time ($ trialmean)),
596597 )
597598 end
599+ $ println (" )" )
598600 $ result
599601 end )
600602end
You can’t perform that action at this time.
0 commit comments