|
|
# Benchmarks
|
|
|
[[_TOC_]]
|
|
|
|
|
|
This page contains information about benchmarks that are or were useful for solving issues. The issue that first motivated the creation of this page is #8885.
|
|
|
|
|
|
## Calibration
|
|
|
# Calibration
|
|
|
|
|
|
Pytest has 2 modes of [calibration](https://pytest-benchmark.readthedocs.io/en/stable/calibration.html):
|
|
|
|
|
|
* **automatic:** By default pytest-benchmark will try to run your function as many times needed to fit a 10 x `TIMER_RESOLUTION` period.
|
|
|
* **pedantic:** defaults to `rounds=1`, `warmup_rounds=0` and `iterations=1`.
|
|
|
|
|
|
## Configuration
|
|
|
# Configuration
|
|
|
|
|
|
These are the configuration options that all tests currently run:
|
|
|
|
... | ... | |