# fixture 'benchmark' not found
available fixtures: cache, capfd, ...

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

## Root Cause

pytest-benchmark is not installed, so the 'benchmark' fixture it provides is unavailable. Common when copying benchmark tests into a repo without the dev dependency.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (97% success)
   ```
   pip install pytest-benchmark

# then
def test_sort(benchmark):
    result = benchmark(sorted, list(range(1000)))
    assert result[0] == 0
   ```
2. **** (90% success)
   ```
   import pytest

pytest.importorskip('pytest_benchmark')

def test_sort(benchmark):
    benchmark(sorted, list(range(1000)))
   ```

## Dead Ends

- **** — Provides no timing, statistics, or comparison; the test gives false confidence. (90% fail)
- **** — No integration with pytest reporting, no --benchmark-compare, and noisy CI output. (70% fail)
