|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.benchmark.BenchmarkRunner
Controls the execution of benchmarks. The runner automatically discovers benchmark tasks in benchmark classes using the reflection mechanism. This procedure is inspired by the way that JUnit works.
| Constructor Summary | |
BenchmarkRunner()
Creates a new benchmark runner with an empty report. |
|
| Method Summary | |
Report |
getReport()
Returns the report produced by this benchmark runner. |
static void |
main(String[] args)
Runs the a benchmark from the command line. |
void |
runBenchmark(Benchmark bm,
DataSet dataSet)
Runs a specified benchmark on a specified data set. |
void |
setVerbose(boolean verbose)
Enables or disables verbose output to System.out. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BenchmarkRunner()
| Method Detail |
public void setVerbose(boolean verbose)
verbose - true if verbose output should be enabled;
false otherwise.public Report getReport()
public void runBenchmark(Benchmark bm,
DataSet dataSet)
bm - the benchmark to run.dataSet - the data set on which to run the benchmark.getReport()public static void main(String[] args)
args - as specified above.
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||