JMH Archives - CodingFlower https://www.codingflower.com/tag/jmh Check news in the world of Senior Software Engineers! Sun, 03 Jan 2021 21:45:10 +0000 en hourly 1 How to visualize JMH Benchmarks? https://www.codingflower.com/2021/01/03/how-to-visualize-jmh-benchmarks https://www.codingflower.com/2021/01/03/how-to-visualize-jmh-benchmarks#respond Sun, 03 Jan 2021 21:45:10 +0000 http://www.codingflower.com/?p=1839 The java microbench harness allow results to exported to four different types of format: csv…

The post How to visualize JMH Benchmarks? appeared first on CodingFlower.

]]>
The java microbench harness allow results to exported to four different types of format:

  • csv
  • json
  • text
  • scsv

Exporting data to the csv file and uploading it to the excel or Google sheet and drawing some charts is the most obvious way to visualize data from the benchmark. There is faster way, you can find it here https://jmh.morethan.io/.

JMH Visualizer

Instead of exporting data to CSV, this time you have to export it to the JSON type. What are the features of this tool?

  • You can simultaneously evaluate multiple runs.
  • You can switch between modes (thrpt, avgt, ss).
  • There are different charts for each benchmark.
  • If you want to see values other than score, like gc.time or gc.count you can do that too.

Underneath you can find some screenshots with some sample visualizations:
Benchmarks
Benchmark detail
GC Options
MultiRUN
Compare Runs

Summary

A very fast and simple tool. It would be the right option for you if you don't need to carry out any complex analysis.

The post How to visualize JMH Benchmarks? appeared first on CodingFlower.

]]>
https://www.codingflower.com/2021/01/03/how-to-visualize-jmh-benchmarks/feed 0