ai.timefold.solver.benchmark.quarkus.config.TimefoldBenchmarkRuntimeConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timefold-solver-quarkus-benchmark Show documentation
Show all versions of timefold-solver-quarkus-benchmark Show documentation
Benchmark an Timefold project to power tweak the solver configuration for speed and scalability.
package ai.timefold.solver.benchmark.quarkus.config;
import ai.timefold.solver.quarkus.config.TerminationRuntimeConfig;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
import io.smallrye.config.WithName;
@ConfigMapping(prefix = "quarkus.timefold.benchmark")
@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public interface TimefoldBenchmarkRuntimeConfig {
String DEFAULT_BENCHMARK_RESULT_DIRECTORY = "target/benchmarks";
/**
* Where the benchmark results are written to. Defaults to
* {@link #DEFAULT_BENCHMARK_RESULT_DIRECTORY}.
*/
@WithDefault(DEFAULT_BENCHMARK_RESULT_DIRECTORY)
String resultDirectory();
/**
* Termination configuration for the solvers run in the benchmark.
*/
@WithName("solver.termination")
TerminationRuntimeConfig termination();
}