{
    "measured_at_utc": "2026-10-25T01:32:04+00:00",
    "runtime": {
        "php": "8.4.24",
        "database": "SQLite 3.53.2",
        "os": "Windows"
    },
    "dataset": {
        "type": "synthetic",
        "rows": 50000,
        "dealers": 250,
        "seed": "deterministic integer sequence; see tools/benchmark.php"
    },
    "method": {
        "runs": 30,
        "warmups": 5,
        "clock": "hrtime monotonic",
        "query": "SELECT id, subtotal_cents, created_at FROM quote_history WHERE dealer_id = ? AND status = ? ORDER BY created_at DESC LIMIT 20",
        "binds": [
            42,
            "approved"
        ],
        "index": "dealer_status_recent(dealer_id,status,created_at)",
        "environment": "single process, in-memory database; no network, concurrent load, storage latency or production traffic"
    },
    "before": {
        "plan": [
            {
                "id": 4,
                "parent": 0,
                "notused": 216,
                "detail": "SCAN quote_history"
            },
            {
                "id": 21,
                "parent": 0,
                "notused": 0,
                "detail": "USE TEMP B-TREE FOR ORDER BY"
            }
        ],
        "median_ms": 2.36305,
        "p95_ms": 3.0781,
        "rows_returned": 20,
        "result_sha256": "dabc449d13418ed4e66b43b8217c77d7248fc274206cc23127b93b4e8e9a72c4"
    },
    "after": {
        "plan": [
            {
                "id": 5,
                "parent": 0,
                "notused": 86,
                "detail": "SEARCH quote_history USING INDEX dealer_status_recent (dealer_id=? AND status=?)"
            }
        ],
        "median_ms": 0.0082,
        "p95_ms": 0.0083,
        "rows_returned": 20,
        "result_sha256": "dabc449d13418ed4e66b43b8217c77d7248fc274206cc23127b93b4e8e9a72c4"
    },
    "mysql_status": "not_run: no approved isolated MySQL runtime; SQLite measurements do not establish MySQL query plans or production throughput"
}
