Skip to content

Latest commit

 

History

History
120 lines (80 loc) · 2.51 KB

user-guide.md

File metadata and controls

120 lines (80 loc) · 2.51 KB

User guide

Installation

  • Clone the repository

    git clone --recursive https://github.com/Open-ForBC/OpenForBC-Benchmark.git
  • Install the o4bc-bench tool

    cd OpenForBC-Benchmark
    pip3 install .

Usage

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 --help

To get help for a particular command, use:

o4bc-bench <command:str> --help

Sample commands for the functionality offered by the CLI:

1. List Benchmarks/Suites:

o4bc-bench benchmark list # or `o4bc-bench benchmark` alias
o4bc-bench suite list # or `o4bc-bench suite` alias

Get 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_benchmark

Then 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 preset1

3. 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 preset1

4. Build a suite:

o4bc-bench suite create

Logs for benchmarks/suites

Logs 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.

View format

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.