Package org.optaplanner.benchmark.impl
Class DefaultPlannerBenchmark
- java.lang.Object
-
- org.optaplanner.benchmark.impl.DefaultPlannerBenchmark
-
- All Implemented Interfaces:
PlannerBenchmark
public class DefaultPlannerBenchmark extends Object implements PlannerBenchmark
-
-
Constructor Summary
Constructors Constructor Description DefaultPlannerBenchmark(PlannerBenchmarkResult plannerBenchmarkResult, File benchmarkDirectory, ExecutorService warmUpExecutorService, ExecutorService executorService, BenchmarkReport benchmarkReport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
benchmark()
Run all the single benchmarks and create an overview report.File
benchmarkAndShowReportInBrowser()
Run all the single benchmarks, create an overview report and show it in the default browser.void
benchmarkingEnded()
void
benchmarkingStarted()
long
calculateTimeMillisSpent()
File
getBenchmarkDirectory()
BenchmarkReport
getBenchmarkReport()
PlannerBenchmarkResult
getPlannerBenchmarkResult()
protected void
runSingleBenchmarks()
-
-
-
Constructor Detail
-
DefaultPlannerBenchmark
public DefaultPlannerBenchmark(PlannerBenchmarkResult plannerBenchmarkResult, File benchmarkDirectory, ExecutorService warmUpExecutorService, ExecutorService executorService, BenchmarkReport benchmarkReport)
-
-
Method Detail
-
getPlannerBenchmarkResult
public PlannerBenchmarkResult getPlannerBenchmarkResult()
-
getBenchmarkDirectory
public File getBenchmarkDirectory()
-
getBenchmarkReport
public BenchmarkReport getBenchmarkReport()
-
benchmark
public File 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
public File 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
-
-