org.benchy.runner
Class DefaultBenchmarkRunner

java.lang.Object
  extended by org.benchy.runner.DefaultBenchmarkRunner
All Implemented Interfaces:
BenchmarkRunner

public class DefaultBenchmarkRunner
extends Object
implements BenchmarkRunner

The BenchmarkRunner is responsible for executing a Benchmark.

A BenchmarkRunner is not multi-threaded itself (responsibility of the Driver) so can not be compared to the Executor.

Author:
Peter Veentjer.

Constructor Summary
DefaultBenchmarkRunner(BenchmarkResultRepository resultRepository)
          Creates a new DefaultBenchmarkRunner with the provided BenchmarkResultRepository where it stores the result.
 
Method Summary
 void execute(Benchmark... benchmarks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBenchmarkRunner

public DefaultBenchmarkRunner(BenchmarkResultRepository resultRepository)
Creates a new DefaultBenchmarkRunner with the provided BenchmarkResultRepository where it stores the result.

Parameters:
resultRepository - the BenchmarkResultRepository that is used to write the BenchmarkResult to.
Throws:
NullPointerException - if resultRepository is null.
Method Detail

execute

public void execute(Benchmark... benchmarks)
Specified by:
execute in interface BenchmarkRunner


Copyright © 2008-2010 Multiverse. All Rights Reserved.