org.benchy.runner
Class DefaultBenchmarkRunner
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
execute
public void execute(Benchmark... benchmarks)
- Specified by:
execute in interface BenchmarkRunner
Copyright © 2008-2010 Multiverse. All Rights Reserved.