Class JmhResultConverter
java.lang.Object
software.amazon.awssdk.benchmark.serde.JmhResultConverter
Converts JMH result JSON (produced by
-rf json -rff results.json)
into the
cross-language output schema format for serde benchmark comparison.
JMH SampleTime mode results contain:
primaryMetric.score→ mean (in nanoseconds with@OutputTimeUnit(NANOSECONDS))primaryMetric.scoreError→ std_dev approximationprimaryMetric.scorePercentiles→ p50, p90, p95, p99measurementIterations→ n
The test case ID is extracted from the params.testCaseId field of
each benchmark result.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRead JMH results frominputPath, convert to the cross-language output schema, and write both JSON and Markdown files using the given output prefix.static voidMain entry point for command-line usage:
-
Method Details
-
convert
Read JMH results frominputPath, convert to the cross-language output schema, and write both JSON and Markdown files using the given output prefix.Produces two files:
<outputPrefix>.jsonand<outputPrefix>.md.- Parameters:
inputPath- path to the JMH JSON result fileoutputPrefix- path prefix for output files (without extension)
-
main
Main entry point for command-line usage:java -cp benchmarks.jar \ software.amazon.awssdk.benchmark.serde.JmhResultConverter <input.json> <output-prefix>Produces
<output-prefix>.jsonand<output-prefix>.md.
-