pytest-perf 0.11.0


pip install pytest-perf==0.11.0

Project Links

Meta
Author: Jason R. Coombs
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3 :: Only
https://img.shields.io/pypi/v/pytest-perf.svg https://img.shields.io/pypi/pyversions/pytest-perf.svg tests Code style: Black https://img.shields.io/badge/skeleton-2021-informational

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.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
pip-run (>=8.5)
tempora (>=4.1)
jaraco.functools
more-itertools
jaraco.context