The official Python benchmark suite for CPython. Provides a collection of benchmarks used to measure and compare performance of Python versions and implementations. Current version is 1.14.0, with regular releases as CPython evolves. Requires Python >=3.10.
pip install pyperformanceNo compatibility data collected yet for this library.
Run pyperformance benchmarks from Python code using subprocess. For CLI usage, run `python -m pyperformance run` directly.
Use `subprocess.run(['python', '-m', 'pyperformance', 'run'])` or run the `pyperformance` command directly from the terminal.
Close all other applications, disable CPU scaling, and use `--strict` for reproducible results.
Upgrade to Python 3.10 or newer.
Do not import pyperformance. Use `python -m pyperformance` or run the `pyperformance` command directly.
Use `--bench` or `--benchmarks` with a space: `pyperformance run --bench crypto_pyaes`.
Provide a positive integer to `--loops` (e.g., `--loops=5`) or omit the flag to let pyperformance decide.