Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/benchx.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ Each target is `BUILD_DIR[:SOURCE_DIR]` or `@CONFIG[=SOURCE_REF]`. Two targets (
`--profile variants`) select measure mode, where `--run-key` names the new run; with no targets,
`--run-key` names the run to read: read mode.

- `BUILD_DIR[:SOURCE_DIR]` is a directory you prepared: a working tree (pyperf, asv) or a build
directory (Google Benchmark). Two revisions are two directories, such as two `git worktree`s,
and `--suite` is looked up in each. `SOURCE_DIR` names the checkout when CMake's cache does not.
- `@CONFIG[=SOURCE_REF]` asks the target provider (below) to build `CONFIG` at revision
`SOURCE_REF` (default: the working tree), as in `bx compare @release=main @release=HEAD …`.

`@CONFIG` asks the project's **target provider**, the command named by `provider.command`
in `benchx.conf.json` (it runs with the project root as its working directory). The provider speaks the contract of
`system-decomposition.md` §3.4: a JSON request on stdin, a target description
Expand Down
6 changes: 4 additions & 2 deletions src/benchx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,8 +1548,10 @@ def main(argv=None):
description="Read mode compares results already measured: --run-key KEY --baseline VALUE. "
"Measure mode runs two prepared targets, alternating them over "
"--rounds rounds, delivers the results to the local store, then compares: "
"BASELINE CONTENDER --suite NAME --rounds R, each target BUILD_DIR[:SOURCE_DIR] "
"or @CONFIG[=SOURCE_REF] (the project's target provider). "
"BASELINE CONTENDER --suite NAME --rounds R. A target is a directory you prepared, "
"BUILD_DIR[:SOURCE_DIR] (two revisions are two directories, e.g. ../main ../feature; "
"--suite is found in each), or @CONFIG[=SOURCE_REF], which asks the project's target "
"provider to build CONFIG at a revision (e.g. @release=main @release=HEAD). "
"The variants profile takes one target: its sides are two values of one "
"benchmark parameter (--vary), as in TARGET --profile variants --suite NAME "
"--rounds R.",
Expand Down
Loading