org.benchy
Interface BenchmarkDriver

All Known Implementing Classes:
AbstractBenchmarkDriver

public interface BenchmarkDriver

Contains the unparametrized algorithm you want to benchmark. All the variable parameters are stored in the TestCase. It could be that the same driver is used in different to benchmark different aspects of the algorithm.

It looks a lot like a basic unit testcase with the familiar lifecyle methods. For a more convenient implementation to extend from, look at the AbstractBenchmarkDriver.

Author:
Peter Veentjer.

Method Summary
 void postRun(TestCaseResult caseResult)
          Is executed after the run.
 void preRun(TestCase testCase)
          Is executed before the run.
 void run()
          Runs the driver for one iteration.
 

Method Detail

preRun

void preRun(TestCase testCase)
Is executed before the run.

Parameters:
testCase - the testCase that is going to be run.

run

void run()
Runs the driver for one iteration.


postRun

void postRun(TestCaseResult caseResult)
Is executed after the run.

Parameters:
caseResult - the testCase that just has run.


Copyright © 2008-2010 Multiverse. All Rights Reserved.