Class BenchmarkConfiguration.Builder
java.lang.Object
de.cuioss.benchmarking.common.config.BenchmarkConfiguration.Builder
- Enclosing class:
BenchmarkConfiguration
Builder for BenchmarkConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.Convenience method to set benchmark type for report config.withForks(int forks) withIncludePattern(String pattern) Sets the integration configuration for integration benchmarks.Convenience method to set latency benchmark name.withMeasurementIterations(int iterations) withMeasurementTime(org.openjdk.jmh.runner.options.TimeValue time) withProjectName(String name) Convenience method to set project name for dashboard display.withReportConfig(ReportConfiguration config) Sets the complete report configuration.withResultFile(String file) Convenience method to set result file.withResultFormat(org.openjdk.jmh.results.format.ResultFormatType format) Convenience method to set result format.Convenience method to set results directory.withThreads(int threads) Convenience method to set throughput benchmark name.withWarmupIterations(int iterations) withWarmupTime(org.openjdk.jmh.runner.options.TimeValue time)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withReportConfig
Sets the complete report configuration. -
withBenchmarkType
Convenience method to set benchmark type for report config. Creates a report config builder if needed. -
withThroughputBenchmarkName
Convenience method to set throughput benchmark name. Creates a report config builder if needed. -
withLatencyBenchmarkName
Convenience method to set latency benchmark name. Creates a report config builder if needed. -
withResultsDirectory
Convenience method to set results directory. Creates a report config builder if needed. -
withResultFile
Convenience method to set result file. Creates a report config builder if needed. -
withResultFormat
public BenchmarkConfiguration.Builder withResultFormat(org.openjdk.jmh.results.format.ResultFormatType format) Convenience method to set result format. Creates a report config builder if needed. -
withProjectName
Convenience method to set project name for dashboard display. Creates a report config builder if needed. -
withIncludePattern
-
withForks
-
withWarmupIterations
-
withMeasurementIterations
-
withMeasurementTime
public BenchmarkConfiguration.Builder withMeasurementTime(org.openjdk.jmh.runner.options.TimeValue time) -
withWarmupTime
-
withThreads
-
withIntegrationConfig
Sets the integration configuration for integration benchmarks. This configuration contains URLs needed for integration testing. -
build
Builds the configuration.- Returns:
- the built configuration
- Throws:
IllegalArgumentException- if required fields are not set
-