pytest-benchmark

Package — TestingPython 3.7+Intermediate

Benchmark functions inside pytest with statistics

Quick Info

Documentation
Official Docs
Python Version
3.7+
Dependencies
pytest, py-cpuinfo
Install
pip install pytest-benchmark

Learn by Difficulty

Quick Example

python
# Install: pip install pytest-benchmark
import pytest_benchmark

# Basic pytest-benchmark usage
print(f"Using pytest-benchmark")
# See documentation for detailed examples

pytest-benchmark is a third-party package. Benchmark functions inside pytest with statistics. Install with: pip install pytest-benchmark

Try in Playground

Tags

packagetestingquality-assurance