ai.timefold.solver.benchmark.quarkus.TimefoldBenchmarkBeanProvider 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;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;
import ai.timefold.solver.benchmark.api.PlannerBenchmarkFactory;
import ai.timefold.solver.benchmark.config.PlannerBenchmarkConfig;
import io.quarkus.arc.DefaultBean;
public class TimefoldBenchmarkBeanProvider {
@DefaultBean
@Singleton
@Produces
PlannerBenchmarkFactory benchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig) {
return PlannerBenchmarkFactory.create(plannerBenchmarkConfig);
}
}