# fixture 'benchmark' not found

- **ID:** `python/pytest-benchmark-no-fixture`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pytest-benchmark plugin is not installed or not loaded, so the benchmark fixture is unavailable. This can also happen if the plugin is disabled in pytest.ini.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 4.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   pip install pytest-benchmark
pytest --benchmark-only
   ```
2. **** (90% success)
   ```
   # pytest.ini
[pytest]
# Remove -p no:benchmark if present
addopts = -p benchmark
   ```

## Dead Ends

- **** — This shadows the plugin's fixture and does not provide benchmarking functionality. The test will not actually benchmark anything. (90% fail)
- **** — This provides raw timing but lacks statistical analysis, warmup, and comparison features of pytest-benchmark. (75% fail)
