| |
|
| java.lang.Object bak.pcj.benchmark.BenchmarkRunner
BenchmarkRunner | public class BenchmarkRunner (Code) | | 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.
author: Søren Bak version: 1.1 2003/15/2 since: 1.0 |
Constructor Summary | |
public | BenchmarkRunner() Creates a new benchmark runner with an empty report. |
Method Summary | |
public Report | getReport() Returns the report produced by this benchmark runner. | public static void | main(String[] args) Runs the a benchmark from the command line. | public void | runBenchmark(Benchmark bm, DataSet dataSet) Runs a specified benchmark on a specified data set. | public void | setVerbose(boolean verbose) Enables or disables verbose output to System.out. |
BenchmarkRunner | public BenchmarkRunner()(Code) | | Creates a new benchmark runner with an empty report.
|
getReport | public Report getReport()(Code) | | Returns the report produced by this benchmark runner.
Note that the returned report is mutable and can be modified
before formatting.
the report produced by this benchmark runner. |
main | public static void main(String[] args)(Code) | | Runs the a benchmark from the command line.
The first parameter is the name of the data set class to use.
The second parameter is the size of the data sets to use.
The third parameter is the name of the benchmark class to use.
The fourth parameter is name of file on which to write the
results.
Parameters: args - as specified above. |
runBenchmark | public void runBenchmark(Benchmark bm, DataSet dataSet)(Code) | | Runs a specified benchmark on a specified data set.
The results are collected in the runner's report.
Parameters: bm - the benchmark to run. Parameters: dataSet - the data set on which to run the benchmark. See Also: BenchmarkRunner.getReport() |
setVerbose | public void setVerbose(boolean verbose)(Code) | | Enables or disables verbose output to System.out.
Verbose output is enabled by default.
Parameters: verbose - true if verbose output should be enabled;false otherwise. |
|
|
|