Repository navigation
Releases
abench 0.2.0
What's new
- Live benchmark progress with elapsed time, current/peak memory, and a run-log tail. Periodic status history is saved to disk.
- Arrow-key menus for experiment selection and input choices.
- Automatic macOS idle-sleep prevention during benchmarks, with an
--allow-sleepopt-out. Displays can still sleep. - Optional GitHub PR result comments containing version-attributed summaries and attached memory/runtime SVG charts.
- Permanent publication launchers, readable status files, dry runs, GitHub verification, and retry recovery that checks for an existing comment.
- A complete PR benchmarking example and documentation.
- Source-aware uv cache keys so local checkout changes are reflected in
uvx --fromruns.
Usage
Install/run with uvx abench@0.2.0. PR publication requires a publishing-enabled experiment, GitHub CLI with --attach support, and an authenticated account with repository write access.
After a run, use publication/publish.sh to publish results, --status to read the local record, or --verify to check GitHub. The interactive HTML report is generated locally; this release uploads the summary and charts only.
abench 0.1.2
Fix warmup failures in non-root Docker containers when Sharrow imports Numba-cached helpers, such as:
cannot cache function 'piece': no locator available
Abench now sets a writable NUMBA_CACHE_DIR before Python starts and checks write access before running models. The cache is retained across warmup, measured attempts, workers, and compatible experiment snapshots. Older snapshots may need one warmup recompilation.
Docker regression tests now compile sharrow.maths.piece and verify serial/MP execution, retry behavior, and cache reuse.
Update and run:
uvx abench@latest /path/to/modelabench 0.1.1
Run benchmark suites interactively from model repositories:
uvx abench@latest /path/to/model- Discover and choose experiment YAML files from a model's
.abenchdirectory. - Prompt for typed inputs, accept defaults with Enter, and validate required values.
--setand--non-interactiveremain available for automation. - Resolve GitHub branches and PR heads to exact commits at launch and retain those pins in experiment metadata.
- Download and verify model data using ActivitySim's shared external-example cache.
- Display periodic build/run elapsed time and current/peak memory while retaining complete logs.
Supports macOS and Linux hosts with Linux Docker. Directory discovery requires experiment YAML files supplied by the model repository; direct YAML invocation remains supported.
abench 0.1.0
First public release of abench, a CLI for ActivitySim runtime and memory benchmarks in Linux Docker containers.
- Run MTC, SANDAG ABM3, or custom model profiles with exact Git commits for Python dependencies.
- Define reusable experiment suites in YAML.
- Compare component runtimes and whole-container memory in standalone HTML reports.
- Reuse compiled Sharrow flows automatically; retry attempts that compile additional signatures and accept only compilation-free benchmark results.
Run with uv:
uvx abench --help
uvx abench experiments.yamlRequires a macOS or Linux host, a running Linux Docker engine with cgroup v2, and local model configuration/data. Model dependencies are installed inside Docker.