pytest-benchmark — Easy Playground
Benchmark functions inside pytest with statistics
Getting started with pytest-benchmarkRun locally
Install
pip install pytest-benchmarkPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: pytest_benchmark)
pytest-benchmark is a third-party package. Benchmark functions inside pytest with statistics. Install with: pip install pytest-benchmark
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?