jzillmann / jmh-visualizer

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

Automate local file visualizing flow #9

Closed aleksandr-vin closed 6 years ago

aleksandr-vin commented 7 years ago

I've run into use case, when I made the whole process of benchmarking up to creating jmh-result.json the only thing missed is that I need to manually drag-n-drop file onto page.

It will be nice to have a possibility to make a URL that will lead page to source json from another resource, like http://jmh.morethan.io/?results=https%3A%2F%2Fsomesite%2Fjmh-result.json. Local file can be uploaded to third-party resource and then a link can be used.

jzillmann commented 7 years ago

Hi @aleksandr-vin , yeah that sounds similar to https://github.com/jzillmann/jmh-visualizer/issues/5 I would try to include both, just not sure when i find time for it!

Btw, in case you're using gradle, then u can also use https://github.com/jzillmann/gradle-jmh-report to build the report locally!

skjolber commented 6 years ago

As aleksandr-vin, I would be very happy with a simple page displaying just benchmarks - no drag'n drop, menu or sidebar alternatives.

I have managed to slim down the default template to what I'd like to see:

https://skjolber.github.io/xml-log-filter/docs/benchmark/jmh/index.html

I guess linking the file via URL parameter is useful, I'd like also to be able to link json files containing links to the benchmark results and perhaps some crude coloring scheme.

jzillmann commented 6 years ago

@aleksandr-vin Implemented loading from url...

I've called the parameter 'source' for one url and 'sources' for multiple urls:

(Also added 'gist' and 'gists')

@skjolber I moved your customization requests to https://github.com/jzillmann/jmh-visualizer/issues/12