Getting started¶
Installation¶
The benchmark tool can be installed with Python 3.10 or newer using pip:
To access the latest updates and fixes you can either use:
Or alternatively build the tool yourself, which requires the setuptools package.
We recommend using conda, which includes setuptools in its default Python
installation. To build the tool manually run the following commands:
git clone https://github.com/potassco/benchmark-tool
cd benchmark-tool
conda create -n <env-name> python=3.14
conda activate <env-name>
pip install .
The provided default templates use runlim to supervise benchmark execution.
If you want to use them, make sure to build the latest version and copy (or
symlink) the executable into the ./programs directory.
Usage¶
You can verify a successful installation by running:
Supported subcommands in order of use:
init: Prepare the benchmark environmentgen: Generate scripts from runscriptrun-dist: Run distributed jobsverify: Check for runlim errorseval: Collect resultsconv: Convert results to spreadsheet and more
Each subcommand has their own help page, which you can access using:
A generic workflow and detailed descriptions on how to use each component is available via the sidebar. Additionally a brief description of each component can be found in the glossary.
Info
When running benchmarks on a cluster, jobs may fail due to the following error:
This is a known issue.
For single-process systems under test (SUT), this issue can be avoided by
using the runlim option --single in the template_options attribute of
the corresponding job element. In that case, {solver} should either
be the SUT executable or you should use exec if {solver} refers
to a shell script.
If you cannot use --single, the verify subcommand can
be used to identify jobs that failed due to a runlim error and remove the
corresponding .finished files. The gen subcommand can then generate a
new start script, which excludes valid jobs, by using the -e option.