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 @@ -591,14 +591,16 @@ macro btime(args...)
591591 $ print (" min " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmin)),
592592 " , mean " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmean)),
593593 " (" , $ trialallocs , " allocation" , $ trialallocs == 1 ? " " : " s" )
594- if $ trialallocs == 0
595- $ println (" )" )
596- else
597- $ println (" , " , $ prettymemory ($ memory ($ trialmin)),
598- " . GC mean " , $ prettytime ($ gctime ($ trialmean); short= true ),
599- " , " , $ prettypercent ($ gctime ($ trialmean) / $ time ($ trialmean)), " )"
594+ if $ trialallocs != 0
595+ $ print (" , " , $ prettymemory ($ memory ($ trialmin)))
596+ end
597+ if $ gctime ($ trialmean) != 0
598+ $ print (" . GC mean " ,
599+ # $prettytime($gctime($trialmean); short=true), ", ",
600+ $ prettypercent ($ gctime ($ trialmean) / $ time ($ trialmean)),
600601 )
601602 end
603+ $ println (" )" )
602604 $ result
603605 end )
604606end
You can’t perform that action at this time.
0 commit comments