# pytest_benchmark.fixture.BenchmarkFixture.NotEnoughTests: Unable to produce a benchmark: no rounds executed (target time 0.0s, min_rounds 0)

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

## Root Cause

The benchmarked function raised an exception inside the benchmark callable, or calibration settings (--benchmark-min-rounds=0 --benchmark-max-time=0) collapsed the run to zero iterations. Exception inside the function is silently swallowed by pytest-benchmark and reported as NotEnoughTests.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 4.0 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   def test_parse_works():
    assert parse('1,2,3') == [1, 2, 3]

def test_parse_bench(benchmark):
    result = benchmark(parse, '1,2,3')
    assert result == [1, 2, 3]
   ```
2. **** (85% success)
   ```
   pytest --benchmark-verbose tests/test_bench.py -s
   ```

## Dead Ends

- **** — If the function raises on every call, more rounds still fail; the exception is the root cause, not the round count. (85% fail)
- **** — pytest-benchmark invokes the callable internally; wrapping the fixture call does not catch exceptions raised inside the benchmark loop. (80% fail)
