[ANN] BenchmarkHistograms.jl

BenchmarkTools v1.1 provides fancy histogram printing by default using @benchmark (thanks to BenchmarkTools#217 by @tecosaur), so BenchmarkHistograms is not needed anymore and will probably not get any more development or releases. Thanks for the interest and Pkg.update("BenchmarkTools")!

julia> @benchmark 5 ∈ v setup=(v = sort(rand(1:10_000, 10_000)))
BechmarkTools.Trial: 3125 samples with 1000 evaluations.
 Range (min … max):  2.500 ns … 6.578 μs  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     5.333 ns             ┊ GC (median):    0.00%
 Time  (mean ± σ):   1.160 μs ± 1.528 μs  ┊ GC (mean ± σ):  0.00% ± 0.00%

  █                                                    ▇ ▂
  █▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███▇ █
  2.5 ns      Histogram: log(frequency) by time     3.36 μs <

 Memory estimate: 0 bytes, allocs estimate: 0.

Edit: I realised some people credit me with helping with the upstream BenchmarkTools functionality— that was actually an entirely unrelated effort! I think it looks great though and am happy to retire BenchmarkHistograms (but I can’t claim any credit for it).

16 Likes