{
  "measured_at_utc": "2026-10-25T01:49:33+00:00",
  "runtime": {
    "php": "8.4.27",
    "database": "8.4.13",
    "driver": "pdo_mysql",
    "os": "Linux"
  },
  "dataset": {
    "type": "synthetic",
    "rows": 50000,
    "dealers": 250,
    "table": "connection-local temporary quote-history slice, same filter/order/limit shape as quote listing",
    "seed": "deterministic integer sequence; see mysql-benchmark.php"
  },
  "method": {
    "runs": 30,
    "warmups": 5,
    "clock": "hrtime monotonic",
    "query": "SELECT id, subtotal_cents, created_at FROM benchmark_quote_history WHERE dealer_id = ? AND status = ? ORDER BY created_at DESC, id DESC LIMIT 20",
    "binds": [
      42,
      "approved"
    ],
    "index": "dealer_status_recent(dealer_id,status,created_at)",
    "environment": "disposable GitHub CI MySQL service; single client, warm query slice, no customer data or public endpoint load"
  },
  "before": {
    "explain_analyze": [
      "-> Limit: 20 row(s)  (cost=5301 rows=20) (actual time=10.5..10.5 rows=20 loops=1)\n    -> Sort: benchmark_quote_history.created_at DESC, benchmark_quote_history.id DESC, limit input to 20 row(s) per chunk  (cost=5301 rows=50117) (actual time=10.5..10.5 rows=20 loops=1)\n        -> Filter: ((benchmark_quote_history.`status` = 'approved') and (benchmark_quote_history.dealer_id = '42'))  (cost=5301 rows=50117) (actual time=0.101..10.4 rows=67 loops=1)\n            -> Table scan on benchmark_quote_history  (cost=5301 rows=50117) (actual time=0.0718..7.33 rows=50000 loops=1)\n"
    ],
    "median_ms": 8.53623,
    "p95_ms": 8.717561,
    "rows_returned": 20,
    "result_sha256": "945d2c9df54c0bdee80c59652d8a55540edce03a3ed00e5e3a361687a14bba37"
  },
  "after": {
    "explain_analyze": [
      "-> Limit: 20 row(s)  (cost=73.7 rows=20) (actual time=0.108..0.113 rows=20 loops=1)\n    -> Index lookup on benchmark_quote_history using dealer_status_recent (dealer_id='42', status='approved') (reverse)  (cost=73.7 rows=67) (actual time=0.108..0.111 rows=20 loops=1)\n"
    ],
    "median_ms": 0.233308,
    "p95_ms": 0.249967,
    "rows_returned": 20,
    "result_sha256": "945d2c9df54c0bdee80c59652d8a55540edce03a3ed00e5e3a361687a14bba37"
  },
  "limits": "Engine/query-slice evidence only. Not a production throughput, concurrency, authentication or full-dataset benchmark."
}
