{
  "id": "python/pytest-benchmark-no-fixture",
  "signature": "fixture 'benchmark' not found",
  "signature_zh": "未找到夹具 'benchmark'",
  "regex": "fixture\\ 'benchmark'\\ not\\ found",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest-benchmark 插件未安装或未加载，因此 benchmark 夹具不可用。如果插件在 pytest.ini 中被禁用，也可能发生这种情况。",
  "versions": [
    {
      "version": "4.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This shadows the plugin's fixture and does not provide benchmarking functionality. The test will not actually benchmark anything.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This provides raw timing but lacks statistical analysis, warmup, and comparison features of pytest-benchmark.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install pytest-benchmark\npytest --benchmark-only",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "# pytest.ini\n[pytest]\n# Remove -p no:benchmark if present\naddopts = -p benchmark",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-07",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}