Run performance tests against the mainline code.
Project description
Run performance tests against the mainline code.
Usage
To use it, include pytest-perf in the test dependencies for your project, then create some Python module in your package. The plugin will include any module that contains the text “pytest_perf” and will run performance tests on each function containing “perf” in the name.
Tests don’t execute the module directly, but instead parse out the code of the function in two parts, the warmup and the test, separated by a “# end warmup” comment, and then passes those to the timeit module.
See the exercises.py module for example usage.
Design
pytest-perf works by creating two installs, the control and the experiment, and measuring the performance of some python code against each.
Under the hood, it uses pip-run to install from the upstream main branch (e.g. https://github.com/jaraco/pytest-perf) for the control and from . for the experiment. It then runs each of the experiments against each of the enviroments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_perf-0.15.0.tar.gz
.
File metadata
- Download URL: pytest_perf-0.15.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900fe2ed9f74b25a5401210fb9a010010b3db945244951a4e878e745c9bc32d2 |
|
MD5 | 88811a5129a5193384fa798eab915fb5 |
|
BLAKE2b-256 | 95e72871d59de12088c74519b3c48a9f19fe3ec8bcecf5290a2287df49fef5ad |
File details
Details for the file pytest_perf-0.15.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_perf-0.15.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f4393221435d310f1a1d825c84461468cc2c26b62aaf9ff18d7381af2f844f |
|
MD5 | 7fd878714de842b74d191cf94e51f0fe |
|
BLAKE2b-256 | 739bd2d3907a15c88ad7250f22cc8deb1f394b7a4d28ba5765d22dfd97086a22 |