Package org.optaplanner.benchmark.impl
Class DefaultPlannerBenchmark
java.lang.Object
org.optaplanner.benchmark.impl.DefaultPlannerBenchmark
- All Implemented Interfaces:
PlannerBenchmark
-
Constructor Summary
ConstructorDescriptionDefaultPlannerBenchmark
(PlannerBenchmarkResult plannerBenchmarkResult, File benchmarkDirectory, ExecutorService warmUpExecutorService, ExecutorService executorService, BenchmarkReport benchmarkReport) -
Method Summary
Modifier and TypeMethodDescriptionRun all the single benchmarks and create an overview report.Run all the single benchmarks, create an overview report and show it in the default browser.void
void
long
protected void
-
Constructor Details
-
DefaultPlannerBenchmark
public DefaultPlannerBenchmark(PlannerBenchmarkResult plannerBenchmarkResult, File benchmarkDirectory, ExecutorService warmUpExecutorService, ExecutorService executorService, BenchmarkReport benchmarkReport)
-
-
Method Details
-
getPlannerBenchmarkResult
-
getBenchmarkDirectory
-
getBenchmarkReport
-
benchmark
Description copied from interface:PlannerBenchmark
Run all the single benchmarks and create an overview report.- Specified by:
benchmark
in interfacePlannerBenchmark
- Returns:
- never null, the directory in which the benchmark results are stored
-
benchmarkingStarted
public void benchmarkingStarted() -
runSingleBenchmarks
protected void runSingleBenchmarks() -
benchmarkingEnded
public void benchmarkingEnded() -
calculateTimeMillisSpent
public long calculateTimeMillisSpent() -
benchmarkAndShowReportInBrowser
Description copied from interface:PlannerBenchmark
Run all the single benchmarks, create an overview report and show it in the default browser.- Specified by:
benchmarkAndShowReportInBrowser
in interfacePlannerBenchmark
- Returns:
- never null, the directory in which the benchmark results are stored
-