Bases: object
Runs a bunch of similar BenchmarkProblem s with a bunch of Options.
Adds options to the benchmark.
Parameters: | options (Options) – the options to be added to the benchmark. If options==None the options are left unchanged. |
---|
Adds a problem to the benchmark.
Parameters: | problem (BenchmarkProblem) – the problem to be added |
---|
Returns the results of the last benchmark run in HTML format.
Parameters: |
|
---|---|
Returns: | HTML document |
Return type: | str |
Runs all problems with all options.
Parameters: | scale (int or list of int s) – defines the number of (OpenMP) threads to be used. If scale is a scalar all benchmarks are run with scale number of threads. If scale is a list , the p-th problem in each of the benchmarks in the suite is run with scale[p] threads. If scale[p] <1 the p-th problem is omitted. |
---|
Bases: object
Object to filter the characteristics returned by Benchmark runs.
Returns the names of the results produced when run() is called.
Returns: | the list of the names to be used when the results of the run() call are printed |
---|---|
Return type: | list of str |
Note: | this function has to overwritten by a particular problem |
Bases: object
Represents a benchmark problem that can be run and which returns a list of characteristics such as timing, MFlops, error, etc.
Runs the problem and returns a list of run characteristics.
Parameters: | options (Options) – the options that are used for the run. Note that the number of OpenMP threads is controlled by the Benchmark the problem is run in. |
---|---|
Returns: | run characteristics |
Return type: | any type that can be read by the BenchmarkFilter applied to it |
Note: | this function has to be overwritten by a particular problem |
Bases: object
Framework to run a bunch of Benchmark s using the object and creating a table of statistics.
Variables: | MAX_LEVEL – maximum number of level in headers for output |
---|
Adds a new Benchmark to the suite.
Parameters: | benchmark (Benchmark) – the benchmark to add |
---|
Returns the results of the last benchmark run in HTML format.
Parameters: |
|
---|---|
Returns: | HTML document |
Return type: | str |
Runs all benchmarks.
Parameters: | scale (int or list of int) – defines the number of (OpenMP) threads to be used. If scale is a scalar all benchmarks are run with scale number of threads. If scale is a list, the p-th problem in each of the benchmarks in the suite is run with scale[p] threads. If scale[p] <1 the p-th problem is omitted. |
---|
Bases: object
Defines a set of options to be used to run a BenchmarkProblem.