pytest-perf
Project description
Run performance tests against the mainline code.
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-perf-0.11.0.tar.gz.
File metadata
- Download URL: pytest-perf-0.11.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9678bba899046ce0a518913fe3e4b07752e2925501f6f524af4f61c317e744
|
|
| MD5 |
22f0ae9e4e48ff833df03fbd2a5d3cc5
|
|
| BLAKE2b-256 |
f44fe44b56b635c962aa179f4111423b6702b6ec24369a2bd7a63926fcd749d9
|
File details
Details for the file pytest_perf-0.11.0-py3-none-any.whl.
File metadata
- Download URL: pytest_perf-0.11.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d027d245b491cc50b4551e0af146f2f9428f59ad31c2571886af6bebcbad6855
|
|
| MD5 |
37d3e5bdc3cff4d25a54b619415c7cc7
|
|
| BLAKE2b-256 |
c3c302013772a015e3ed80cfee8b633a169074b3b0cb920e539d402f5cd59da3
|