jzillmann/jmh-visualizer

Support for log-scale

Closed this issue · 6 comments

lemmy commented

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

Ok, should be easy to add since the underlying chart framework has support to it: recharts/recharts#305

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

lemmy commented

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

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

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 ?

yes, if they are parametrized by numbers

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