diff --git a/README.md b/README.md index c3cea466..a549a0be 100644 --- a/README.md +++ b/README.md @@ -43,23 +43,49 @@ We welcome contributions of all sorts: add a user story, tell us about your use implement a missing feature. - Documentation: +- Live deployment (Apache Arrow C++): - Issue tracker: -- A collection of worked examples: +- Worked examples: +## Live deployment and companion repositories + +A live continuous-benchmarking deployment tracking Apache Arrow C++ benchmarks +on `main` is published at . + +In line with the three-layer split described in +[`docs/design/ci-workbench.md`](docs/design/ci-workbench.md#7-packaging-and-repository-boundaries), +cloud CI automation and per-project benchmark configuration live in companion +repositories so that `benchx` itself stays cloud-free and CI-vendor-neutral: + +- [benchx-arrow](https://github.com/benchx-dev/benchx-arrow) — Apache Arrow C++ + benchmark tracking repository (project config, target provider, machine + catalog, and GitHub Pages publishing for the + [live dashboard](https://arrow.benchx.dev/)). +- [benchx-ci](https://github.com/benchx-dev/benchx-ci) — reusable GitHub Actions + workflows and AWS EC2/S3 infrastructure templates for ephemeral continuous + benchmarking. +- [benchx_examples](https://github.com/benchx-dev/benchx_examples) — local + end-to-end examples (NumPy, Arrow, pyperf, Google Benchmark, ASV). ## Contents -- `docs/design/benchmark-result-schema.md` — the benchmark result schema and - migration contract (the core design document). -- `docs/design/measurement-result-parquet.md` — how a result is stored in - Parquet (`src/benchx/parquet.py`), with a small converter in - `tools/json_to_parquet.py`. -- `docs/user_stories/` — user story template and collected stories. -- `src/benchx/` -- an in-progress implementation, with its tests in `tests/`. -- `src/benchx/schemas/` -- JSON schemas for the benchmark result and other components - (shipped with the package). -- worked examples of benchmarking setup(s) are in - [benchx_examples](https://github.com/benchx-dev/benchx_examples). +- [`docs/benchx.md`](docs/benchx.md) — installation, CLI reference (`bx`), and + implementation details. +- [`docs/examples.md`](docs/examples.md) — live deployments, CI setup, and local + worked examples. +- [`docs/design/benchmark-result-schema.md`](docs/design/benchmark-result-schema.md) + — the benchmark result schema and migration contract (the core design + document). +- [`docs/design/ci-workbench.md`](docs/design/ci-workbench.md) — unattended CI + workbench lifecycle, staging, and repository boundaries. +- [`docs/design/measurement-result-parquet.md`](docs/design/measurement-result-parquet.md) + — how a result is stored in Parquet (`src/benchx/parquet.py`), with a small + converter in `tools/json_to_parquet.py`. +- [`docs/user_stories/README.md`](docs/user_stories/README.md) — user story + template and collected stories. +- `src/benchx/` — the implementation, with its tests in `tests/`. +- `src/benchx/schemas/` — JSON schemas for the benchmark result and other + components (shipped with the package). ## Documentation site diff --git a/docs/benchx.md b/docs/benchx.md index 3d0e1b4e..e45e6aad 100644 --- a/docs/benchx.md +++ b/docs/benchx.md @@ -15,8 +15,12 @@ We welcome contributions of all sorts: add a user story, tell us about your use implement a missing feature. - Documentation: +- Live deployment (Apache Arrow C++): +- Examples & deployments: - Issue tracker: -- A collection of worked examples: +- Worked examples repo: +- Reusable CI workbench (GitHub Actions + AWS EC2/S3): +- Apache Arrow tracking repository: # Install diff --git a/docs/design/ci-workbench.md b/docs/design/ci-workbench.md index 3024bf81..3d803baf 100644 --- a/docs/design/ci-workbench.md +++ b/docs/design/ci-workbench.md @@ -238,17 +238,21 @@ enforce three boundaries: To keep the core `benchx` package small, cloud-free, and CI-vendor-neutral, responsibilities split across three layers: -1. **Core `benchx` repository:** schemas, runner, adapters, local workbench - (`bx`), store, comparator, and this design contract. Contains no cloud - templates (CloudFormation/Terraform) or CI-platform workflows. -2. **Reusable CI workbench repository (companion repo, once shared across - projects):** generic CI workflows, infrastructure templates (e.g. AWS +1. **Core `benchx` repository ([`benchx-dev/benchx`](https://github.com/benchx-dev/benchx)):** + schemas, runner, adapters, local workbench (`bx`), store, comparator, and + this design contract. Contains no cloud templates (CloudFormation/Terraform) + or CI-platform workflows. +2. **Reusable CI workbench repository (reference implementation: + [`benchx-dev/benchx-ci`](https://github.com/benchx-dev/benchx-ci)):** + generic CI workflows, infrastructure templates (e.g. AWS CloudFormation setup), unit-budget ratchet, and staging compaction scripts parameterized by project configuration. -3. **Project benchmark repository (e.g. per-project tracking repo):** +3. **Project benchmark repository (reference implementation: + [`benchx-dev/benchx-arrow`](https://github.com/benchx-dev/benchx-arrow), + live dashboard at ):** project-specific files only — `benchx.conf.json`, the project's target - provider (`provider/`), machine catalog (`machines.json`), and project - metadata. + provider (`provider/`), machine catalog (`machines.json`), thin caller + workflows, and project metadata. ## 8. Reference deployment mappings diff --git a/docs/examples.md b/docs/examples.md new file mode 100644 index 00000000..935dc254 --- /dev/null +++ b/docs/examples.md @@ -0,0 +1,48 @@ +# Examples + +Live continuous-benchmarking deployments and local worked examples built on +`benchx`. + +## Live deployments + +| Project | Live dashboard | Tracking repository | Harness / scope | Infrastructure | +|---|---|---|---|---| +| **Apache Arrow C++** | | [`benchx-dev/benchx-arrow`](https://github.com/benchx-dev/benchx-arrow) | Google Benchmark (Arrow C++ suites on `main`) | GitHub Actions + ephemeral AWS EC2 / S3 via [`benchx-dev/benchx-ci`](https://github.com/benchx-dev/benchx-ci), published to GitHub Pages | + +If your project publishes a `benchx` deployment and would like it listed here, +open a pull request adding a row to this table. + +## Continuous benchmarking setup + +Continuous deployments follow the three-layer split in +[CI workbench §7](design/ci-workbench.md#7-packaging-and-repository-boundaries) +so that core `benchx` remains cloud-free and CI-vendor-neutral: + +1. **Core package** ([`benchx-dev/benchx`](https://github.com/benchx-dev/benchx)) + — schemas, runner, adapters, local workbench (`bx`), store, and comparator. +2. **Reusable CI workbench** ([`benchx-dev/benchx-ci`](https://github.com/benchx-dev/benchx-ci)) + — reusable GitHub Actions workflows (`workflow_call`), AWS CloudFormation + infrastructure template, wall-clock unit-budget loop, and staging compaction + scripts parameterized by project configuration. +3. **Project tracking repository** (for example, + [`benchx-dev/benchx-arrow`](https://github.com/benchx-dev/benchx-arrow)) — + project-specific files only: `benchx.conf.json`, the target provider, + machine catalog, and thin caller workflows. Use `benchx-arrow` as a minimal + template when setting up continuous benchmarking for another project. + +## Local worked examples + +Standalone, runnable local examples live in +[`benchx-dev/benchx_examples`](https://github.com/benchx-dev/benchx_examples) +and are exercised by CI: + +- `examples/pyperf-suite` — timing a Python function suite with `pyperf` + (`bx bench` and replaying orders with `bx run`). +- `examples/numpy-venvs` — cross-environment comparison across two virtual + environments ([UC-04](use-cases/UC-04-cross-env.md)). +- `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. diff --git a/zensical.toml b/zensical.toml index 75a23e43..1d2bcf5d 100644 --- a/zensical.toml +++ b/zensical.toml @@ -75,6 +75,7 @@ nav = [ { "One-off benchmarking" = "user_stories/one-off.md" }, ] }, { "benchx" = "benchx.md" }, + { "Examples" = "examples.md" }, { "Releasing" = "releasing.md" }, ]