@@ -122,9 +122,6 @@ Statistics.quantile(trial::Trial, p::Real) = TrialEstimate(trial, quantile(trial
122
122
Statistics. median (trial:: Trial ) = TrialEstimate (trial, median (trial. times), median (trial. gctimes))
123
123
Statistics. mean (trial:: Trial ) = TrialEstimate (trial, mean (trial. times), mean (trial. gctimes))
124
124
Statistics. std (trial:: Trial ) = TrialEstimate (trial, std (trial. times), std (trial. gctimes))
125
- # mean absolute deviation
126
- meanad (xs:: AbstractArray ; mean = Statistics. mean (xs)) = Statistics. mean (x -> abs (x - mean), xs)
127
- meanad (trial:: Trial ) = TrialEstimate (trial, meanad (trial. times), meanad (trial. gctimes))
128
125
129
126
Base. isless (a:: TrialEstimate , b:: TrialEstimate ) = isless (time (a), time (b))
130
127
@@ -283,8 +280,10 @@ function prettymemory(b)
283
280
return string (@sprintf (" %.2f" , value), " " , units)
284
281
end
285
282
283
+ # This returns a string like "16_384", used for number of samples & allocations.
286
284
function prettycount (n:: Integer )
287
- join (reverse (join .(reverse .(Iterators. partition (digits (n), 3 )))), ' _' )
285
+ groups = map (join, Iterators. partition (digits (n), 3 ))
286
+ return reverse (join (groups, ' _' ))
288
287
end
289
288
290
289
function withtypename (f, io, t)
0 commit comments