org.neuroph.util.benchmark
Class Benchmark
- java.lang.Object
-
- org.neuroph.util.benchmark.Benchmark
-
public class Benchmark extends java.lang.ObjectThis class is main benchmark driver. It holds collection of benchmarking tasks and provides benchmarking workflow.
-
-
Constructor Summary
Constructors Constructor and Description Benchmark()Creates a new Benchmark instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddTask(BenchmarkTask task)Adds specified benchmark taskvoidrun()Runs all benchmark tasksstatic voidrunTask(BenchmarkTask task)Runs specified benchmark tasks, the basic benchmarking workflow.
-
-
-
Method Detail
-
addTask
public void addTask(BenchmarkTask task)
Adds specified benchmark task- Parameters:
task- benchmark task
-
runTask
public static void runTask(BenchmarkTask task)
Runs specified benchmark tasks, the basic benchmarking workflow. Prepares benchmark, run warming up iterations, measures the execution time for specified number of benchmarking iterations, and gets the benchmarking results- Parameters:
task-
-
run
public void run()
Runs all benchmark tasks
-
-
DMelt 3.0 © DataMelt by jWork.ORG