Skip to main content

Shared benchmarking harness, results, and reports for the gwmock packages

Project description

gwmock-benchmark

Python CI pre-commit.ci status Documentation codecov PyPI Version Python Versions License: GPL-3.0-or-later Ruff SPEC 0 — Minimum Supported Dependencies DOI

Shared benchmarking for the gwmock packages: one harness, the committed results, and the rendered report site — in one place.

📊 Results: https://leuven-gravity-institute.github.io/gwmock-benchmark/

It exists so that every gwmock package is benchmarked the same way, so anyone can contribute results from their own hardware with a single pull request, and so the package repositories stay free of benchmark tooling, data, and figures.

How it works

  1. You run a benchmark with the CLI; it writes one metrics-only JSON record.
  2. You open a pull request adding that file under data/<package>/<suite>/.
  3. CI validates it; on merge, the docs pipeline regenerates the figures and tables from the data — contributors never commit images or edit the docs.

Records are tiny (~1–2 KB), carry full provenance (CPU/GPU model, library versions — no hostnames), and are capped at 16 KB so the dataset stays light in the repository.

Benchmarked packages

Package Suites Extra
gwmock-signal performance, consistency gwmock-benchmark[signal]

More packages (gwmock-pop, gwmock-noise, gwmock) plug in as suites under src/gwmock_benchmark/suites/.

Install

uv pip install "gwmock-benchmark[signal]"   # extra per package you want to benchmark

Linux and macOS (the harness uses Unix facilities and the suites pull HPC packages such as lalsuite); Python 3.12–3.14.

CLI

# Run a benchmark (writes a record)
gwmock-benchmark signal performance --backend ripple --method batched --n-events 5000 -o out.json
gwmock-benchmark signal consistency -o data/signal/consistency

# Generate a cluster submission script for any command
gwmock-benchmark submit slurm --command "gwmock-benchmark signal performance ..." \
    --cpus 8 --gpus 1 --time 04:00:00 -o run.slurm

# Render the committed dataset into the docs (run by the docs pipeline)
gwmock-benchmark aggregate --data-dir data --docs-dir docs

Contributing results

Benchmarks from more hardware make the reports better. See the Contribute a benchmark guide for the full workflow (run locally or on a cluster → add a data file → open a PR).

Development

git clone git@github.com:Leuven-Gravity-Institute/gwmock-benchmark.git
cd gwmock-benchmark
uv venv --python 3.12 && source .venv/bin/activate
uv sync --group dev --group docs
uv run prek install
uv run pytest

Build the site locally (renders figures from data/ first):

uv run --group docs gwmock-benchmark aggregate
uv run --group docs zensical serve

License

GPL-3.0-or-later — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gwmock_benchmark-0.2.0.tar.gz (500.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gwmock_benchmark-0.2.0-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file gwmock_benchmark-0.2.0.tar.gz.

File metadata

  • Download URL: gwmock_benchmark-0.2.0.tar.gz
  • Upload date:
  • Size: 500.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gwmock_benchmark-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d7bf8ae3a7e42ba6840b368857f04688d4ad92012d5f42eaed7ad7ad1665eace
MD5 6451bebae033db52c64545414915fb24
BLAKE2b-256 8881790c7e5dfbb666730eff7314f701cf1efa8653f7890de7d975b60adf15cb

See more details on using hashes here.

File details

Details for the file gwmock_benchmark-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gwmock_benchmark-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 45.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gwmock_benchmark-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 968c5a237a7825a902855e42dc5ac631fa45aa7b10e3a6230f71ae0acaf67281
MD5 107aa2111572f126a83bc523102367be
BLAKE2b-256 25d26d7ed5907831567328bfebe314100c789c401fe9a0f46aa7bcf7e8c6c92c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page