Class JmhBenchmarkConverter
java.lang.Object
de.cuioss.benchmarking.common.converter.JmhBenchmarkConverter
- All Implemented Interfaces:
BenchmarkConverter
Converts JMH benchmark results to the central BenchmarkData model
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJmhBenchmarkConverter(BenchmarkType benchmarkType) JmhBenchmarkConverter(BenchmarkType benchmarkType, String configuredThroughputName, String configuredLatencyName) JmhBenchmarkConverter(BenchmarkType benchmarkType, String configuredThroughputName, String configuredLatencyName, String projectName) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Path sourcePath) Checks if this converter can handle the given fileConverts benchmark results from a specific format to BenchmarkData
-
Field Details
-
THRPT
- See Also:
-
-
Constructor Details
-
JmhBenchmarkConverter
-
JmhBenchmarkConverter
public JmhBenchmarkConverter(BenchmarkType benchmarkType, String configuredThroughputName, String configuredLatencyName) -
JmhBenchmarkConverter
public JmhBenchmarkConverter(BenchmarkType benchmarkType, String configuredThroughputName, String configuredLatencyName, String projectName)
-
-
Method Details
-
convert
Description copied from interface:BenchmarkConverterConverts benchmark results from a specific format to BenchmarkData- Specified by:
convertin interfaceBenchmarkConverter- Parameters:
sourcePath- Path to the source benchmark results- Returns:
- Converted BenchmarkData
- Throws:
IOException- if conversion fails
-
canConvert
Description copied from interface:BenchmarkConverterChecks if this converter can handle the given file- Specified by:
canConvertin interfaceBenchmarkConverter- Parameters:
sourcePath- Path to check- Returns:
- true if this converter can process the file
-