org.neuroph.util.benchmark
Class Benchmark

java.lang.Object
  extended by org.neuroph.util.benchmark.Benchmark

public class Benchmark
extends Object

This class is main benchmark driver. It holds collection of benchmarking tasks and provides benchmarking workflow.

Author:
Zoran Sevarac

Constructor Summary
Benchmark()
          Creates a new Benchmark instance
 
Method Summary
 void addTask(BenchmarkTask task)
          Adds specified benchmark task
 void run()
          Runs all benchmark tasks
static void runTask(BenchmarkTask task)
          Runs specified benchmark tasks, the basic benchmarking workflow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Benchmark

public Benchmark()
Creates a new Benchmark instance

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



Copyright © 2012. All Rights Reserved.