-
Clone the repository
git clone --recursive https://github.com/Open-ForBC/OpenForBC-Benchmark.git
-
Install the
o4bc-benchtoolcd OpenForBC-Benchmark pip3 install .
Benchmarks can be run interactively by simply launching the o4bc-bench command
without any arguments.
The Interactive interface is quite intuitive to navigate around, with informative prompts to guide you.
For a textual CLI interface, a comprehensive list of arguments can be found using the following command:
o4bc-bench --helpTo get help for a particular command, use:
o4bc-bench <command:str> --help1. List Benchmarks/Suites:
o4bc-bench benchmark list # or `o4bc-bench benchmark` alias
o4bc-bench suite list # or `o4bc-bench suite` aliasGet information about a benchmark:
o4bc-bench benchmark get <benchmark_folder:str>or about a suite:
o4bc-bench suite get <suite_name:str>2. List and get preset information from a particular benchmark:
o4bc-bench benchmark list-presets <benchmark_folder:str>for example:
o4bc-bench benchmark list-presets dummy_benchmarkThen obtain information about the preset with:
o4bc-bench benchmark get-preset <benchmark_folder:str> <preset_name:str>for example:
o4bc-bench benchmark get-preset dummy_benchmark preset13. Run a benchmark/Suite:
o4bc-bench benchmark run <benchmark_folder:str> [<preset_name:str>]...
o4bc-bench suite run <suite-name:str>for example:
o4bc-bench benchmark run dummy_benchmark preset14. Build a suite:
o4bc-bench suite createLogs for each benchmark run can be found in /logs directory. Each run is
saved by the following format:
<benchmark_name>/<yyyymmdd_hhmmss>/<phase>_<preset>.<command_number>.<out/err>.log
Field <preset> is not present in setup and cleanup task phases and
<command_number> is only preset if there are multiple commands in the phase.
stdout and stderr are kept in separate files.
Many commands use a pretty table format by default, which can by disabled by
passing the option --no-table or -T. Some commands, such as benchmark run,
benchmark get-preset, benchmark get and suite run support output in json
format, which can be enabled by passing --json or -j.