Package org.teavm.perf.report
Class JmhJsonFormat
java.lang.Object
org.teavm.perf.report.JmhJsonFormat
Reads and writes results in the format that JMH produces with
-rf json option.
This allows to compare results of TeaVM benchmarks with results of JMH on JVM and to use existing
tools that visualize JMH results.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<BenchmarkResult> Reads results from JSON file produced either by JMH or by TeaVM benchmark runner.static voidwrite(List<BenchmarkResult> results, File file)
-
Field Details
-
GENERATOR
- See Also:
-
-
Method Details
-
write
- Throws:
IOException
-
read
Reads results from JSON file produced either by JMH or by TeaVM benchmark runner.- Parameters:
label- name of the source of results. Ifnull, results produced by TeaVM get name of the backend, other results get name of the file without extension.- Throws:
IOException
-