Skip to main content

turbobench logo
⚖️ Matched environments, measured fairly ⚖️

CI status on main Published PyPI version Python 3.11 or newer MIT license

turbobench is a Python command-line tool for reinforcement-learning environment authors, researchers, and provider maintainers. It checks whether compatible implementations behave the same and measures their performance under matched workloads. Use it to test a provider during development or compare exact releases.

Results stay local in portable bundles with recorded versions, hashes, and verification evidence. Optional comparison videos replay the same actions in both providers; diagnostic videos are visibly watermarked.

Install

Requires Python 3.11+, uv, FFmpeg, and FFprobe. Isolated provider environments default to CPython 3.14.

Install turbobench-cli 2.0.7:

uv tool install turbobench-cli==2.0.7

Alternatively, install it in an active virtual environment with python -m pip install turbobench-cli==2.0.7. The installed command and Python import remain turbobench.

For development and the new two-host showcase workflow, use the checkout:

git clone https://github.com/tsilva/turbobench.git
cd turbobench
uv sync --frozen --group dev

Run turbobench profiles list and turbobench providers list to choose a compatible workload and provider pair. In a checkout, prefix commands with uv run --frozen.

Commands

turbobench profiles list               # list immutable workloads
turbobench providers list              # list available provider adapters
turbobench doctor vizdoom/basic-v1     # check the host, tools, and assets

# Check behavior without benchmarking; quick runs are diagnostic.
turbobench parity vizdoom/basic-v1 \
  --candidate env-vizdoom-turbo@1.3.0.post27 --quick \
  --output turbobench-results/parity-vizdoom
turbobench verify-parity turbobench-results/parity-vizdoom

# Measure a matched provider pair.
turbobench compare vizdoom/basic-v1 \
  --left env-vizdoom-turbo@1.3.0.post27 \
  --right vizdoom@1.3.0 \
  --output turbobench-results/vizdoom

turbobench verify turbobench-results/vizdoom  # verify integrity and consistency
turbobench report turbobench-results/vizdoom  # print the generated report
turbobench promo turbobench-results/vizdoom --diagnostic

uv run --frozen ruff check .                   # lint a checkout
uv run --frozen pytest -m "not acceptance"     # test without proprietary assets

See the usage guide for provider selectors, Breakout comparisons, evidence reuse, and measurement details. The parity guide covers dirty-checkout diagnostics and certification of an exact final wheel.

Two-host showcases

Available in the published CLI. Run from the render machine, replacing the example SSH host and policy path with your own:

uv run --frozen turbobench configure \
  --benchmark-host benchmark.example.com \
  --policy /path/to/verified-policy-package

uv run --frozen turbobench compare --showcase --smoke  # diagnostic end-to-end check
uv run --frozen turbobench compare --policy-benchmark --showcase  # full policy timing and video

Measurements run on the other machine; replay, video, animated WebP, and the scaling chart are generated locally. Saved policy settings, declarations from exact provider packages, and versioned TurboBench comparison rules resolve to one frozen workload. Its sources, checkpoint, host roles, measurements and exports are bound into versioned proofs; existing proofs still verify. Full workflows double the environment count until both providers plateau or slow down. Output goes to a fresh directory under turbobench-results/. Follow the workflow guide for policy import, assets on both hosts, extra rendering tools, and proof checks.

Notes

  • Official comparisons require compatible providers, matched correctness, paired timing, uncertainty estimates, provenance, asset validation, and acceptable system load. Quick runs and overrides remain diagnostic.
  • Supply lawful game assets locally through TURBOBENCH_ROM_PATH, TURBOBENCH_ASSET_ROOT, or RETRO_DATA_PATH. ROMs and their local paths stay out of portable evidence.
  • Official v1 hosts are Apple-silicon macOS and x86-64 Linux. Third-party adapters register through the turbobench.providers entry-point group.
  • Long-running commands send progress to standard error and final machine-readable JSON to standard output. Bundles are not uploaded or published.
  • Rerun performance claims from versions 1.0.3–2.0.6. Those releases ran mutable API validation inside workload processes, which could contaminate timing. Version 2.0.7 isolates validation from measured workloads; see the usage guide.

Architecture

The core matched-comparison pipeline:

turbobench matched-comparison architecture

License

MIT

Metadata

Release files for turbobench-cli 2.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turbobench-cli 2.0.10
File Size Uploaded Provenance Actions
turbobench_cli-2.0.10.tar.gz 2.5 MB With provenance Details for turbobench_cli-2.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for turbobench-cli 2.0.10
File Interpreter ABI Platform Actions
turbobench_cli-2.0.10-py3-none-any.whl Python 3 none any Details for turbobench_cli-2.0.10-py3-none-any.whl

Total release size: 2.7 MB

Release files / turbobench_cli-2.0.10.tar.gz

Download URL turbobench_cli-2.0.10.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
17fc626c35e6eefda08f4e32bdc958c167b66a91ce9b9655f0d3ffe096965422
BLAKE2b-256 checksum
How to use checksums
1f22b422ed2f7b148693ee35d9b887b62f11f6c6417a6aa4dee36b6fa3ba3294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / turbobench_cli-2.0.10-py3-none-any.whl

Download URL turbobench_cli-2.0.10-py3-none-any.whl
Size 225.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22d32951f1a4c73d2137a1899c0e61f7b8436b07ee0f4665b53b2f9ebe7bdbc4
BLAKE2b-256 checksum
How to use checksums
c0a5e9cd56b064bdb661d9735347f3f5b1046687b7b7c043e96157d0736ce47c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Security for turbobench-cli 2.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for turbobench_cli-2.0.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page