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...)
591
591
$ print (" min " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmin)),
592
592
" , mean " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmean)),
593
593
" (" , $ 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)),
600
601
)
601
602
end
603
+ $ println (" )" )
602
604
$ result
603
605
end )
604
606
end
You can’t perform that action at this time.
0 commit comments