Skip to content
Draft
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
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ jobs:
strategy:
fail-fast: false
# `requires`: what the example needs beyond benchx and pyperf, for `uv pip install`.
# arrow-demo and archery-local build a C++ suite with CMake: the runner has cmake and a C++
# compiler, and CMake fetches Google Benchmark.
matrix:
include:
- example: pyperf-suite
- example: matmul-params
requires: numpy torch --index-url https://download.pytorch.org/whl/cpu
- example: arrow-demo
- example: archery-local
env:
EXAMPLE: ${{ matrix.example }}
steps:
Expand Down
8 changes: 4 additions & 4 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ in this repository.
`bx bench`, the local store, and `bx series` / `bx history`.
- [`matmul-params`](examples/matmul-params.md) — one benchmark function with several parameter
combinations (sizes, numpy and torch), and a numpy-vs-torch comparison with `bx compare`.
- [`arrow-demo`](examples/arrow-demo.md) — CMake + Google Benchmark walkthrough covering the
`revisions` and `environments` comparison profiles on a small C++ suite, with the local store.
- [`archery-local`](examples/archery-local.md) — target provider walkthrough
(`benchx.conf.json` and `@CONFIG` targets): one commit built plain and hardened, and compared.

## Additional, cookbook-style examples

Expand All @@ -51,9 +55,5 @@ Standalone, runnable examples of local usage live in a separate repository,
tracked over a series of commits, and one varied by an environment variable.
- `examples/pandas-asv` -- cross-environment comparison run of a specific benchmark
from the pandas ASV suite. Also shows how to run existing ASV benchmarks.
- `examples/arrow/demo/run.sh` — CMake + Google Benchmark walkthrough covering
comparison profiles on a small C++ suite.
- `examples/arrow/archery-local` — target provider walkthrough
(`benchx.conf.json` and `@CONFIG` targets).

See [benchx](benchx.md) for installation and the full `bx` CLI reference.
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Each directory here is an example: a `README.md` and the files it uses. CI execu
link to a Markdown page that does not exist fails `zensical build --strict`.
- Benchmarks run in the checkout, so the example measures the benchx repository as the tree. Put the
output in an ignored directory (`out/`, as `pyperf-suite` does).
- A directory here with no `README.md` is not an example, and the documentation tooling skips it. It holds
files that examples share: `arrow-suite` is the C++ suite that `arrow-demo` and `archery-local` copy.

## Adding one

Expand Down
1 change: 1 addition & 0 deletions examples/archery-local/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_work/
Loading
Loading