diff --git a/docs/benchx.md b/docs/benchx.md index 7fecf21..98cc982 100644 --- a/docs/benchx.md +++ b/docs/benchx.md @@ -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 diff --git a/src/benchx/cli.py b/src/benchx/cli.py index f26d5c4..84b4dd9 100644 --- a/src/benchx/cli.py +++ b/src/benchx/cli.py @@ -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.",