I saw the beautiful histogram unicode plots of BenchmarkTools of @benchmark
BenchmarkTools.Trial:
10000 samples with 968 evaulations took a median time of 90.902 ns (0.00% GC)
Time (mean ± σ): 94.936 ns ± 47.797 ns (GC: 2.78% ± 5.03%)
Range (min … max): 77.655 ns … 954.823 ns (GC: 0.00% … 87.94%)
▁▃▅▆▇█▇▆▅▂▁
▂▂▃▃▄▅▆▇███████████▇▆▄▄▃▃▂▂▂▂▂▂▂▂▂▂▂▁▂▁▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂
77.7 ns Histogram: frequency by time 137 ns
Sorry, the key is to produce similar output. I think I forgot to mention that.
So basically I need the a vertical histogram that is used by BenchmarkTools.
You’d open an issue in the UnicodePlots repo, and then point them to your implementation.
Then you can iterate with the authors of UnicodePlots on how to best integrate your code into the existing repo.
Btw, I’ve also just looked for a way to make a vertical hist in UnicodePlots. Thanks for making your code available!
You could also think about just plotting the outline.
Maybe it depends on the terminal whether or not this is easy to see…