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
pytest-perf-0.11.0.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for pytest_perf-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d027d245b491cc50b4551e0af146f2f9428f59ad31c2571886af6bebcbad6855 |
|
MD5 | 37d3e5bdc3cff4d25a54b619415c7cc7 |
|
BLAKE2b-256 | c3c302013772a015e3ed80cfee8b633a169074b3b0cb920e539d402f5cd59da3 |