jzillmann / jmh-visualizer

Visually explore your JMH Benchmarks
https://jmh.morethan.io
GNU Affero General Public License v3.0
297 stars 23 forks source link

Support for log-scale #14

Closed lemmy closed 6 years ago

lemmy commented 6 years ago

Especially when two or more results get compared, an optional log-scale for the x-axis of the bar charts would be useful.

jzillmann commented 6 years ago

Ok, should be easy to add since the underlying chart framework has support to it: https://github.com/recharts/recharts/issues/305

How would you prefer to have this ? Switch it on a chart basis ? A global switch ? Or any auto-behavior ?

lemmy commented 6 years ago

A switch on a per-chart basis works for me.

plokhotnyuk commented 6 years ago

The log scale and its basis can be detected from steps how benchmark parameters increases.

Log axes are handy to compare how algorithms behave in a wide scale. Here is an example how we use them with static images to compare RTree implementations: https://github.com/Sizmek/rtree2d

jzillmann commented 6 years ago

Did some work on this. Its staged on master and will be released with version 0.9. If you want to preview: JMH Visualizer.zip

@plokhotnyuk I guess that would be useful if we switch parameterized benchmarks to line charts, right ?

plokhotnyuk commented 6 years ago

yes, if they are parametrized by numbers

jzillmann commented 6 years ago

Closing this, will think more about how to display parameterized benchmarks best...