File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -587,14 +587,16 @@ macro btime(args...)
587
587
$ print (" min " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmin)),
588
588
" , mean " , $ BenchmarkTools. prettytime ($ BenchmarkTools. time ($ trialmean)),
589
589
" (" , $ 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)),
596
597
)
597
598
end
599
+ $ println (" )" )
598
600
$ result
599
601
end )
600
602
end
You can’t perform that action at this time.
0 commit comments