{
  "title": "UUIDv4 vs UUIDv7 insert test: SQLite B-tree primary key",
  "date": "2026-11-10",
  "publisher": "Control Plane Labs",
  "method": "1,000,000 keys per run, 16-byte BLOB PRIMARY KEY in a WITHOUT ROWID table, inserted in 10,000-row transactions in generation order; journal_mode=OFF, synchronous=OFF; 3 runs per configuration, median reported. Keys from Python uuid.uuid4() and uuid.uuid7().",
  "environment": {
    "python": "3.14.3",
    "sqlite": "3.50.4",
    "arch": "x86_64",
    "cpus": 2
  },
  "results": [
    {
      "cache_kib": 8000,
      "v4": {
        "seconds_median": 2.46,
        "runs": [
          2.44,
          2.47,
          2.46
        ],
        "db_bytes": 26685440
      },
      "v7": {
        "seconds_median": 0.89,
        "runs": [
          0.89,
          0.9,
          0.86
        ],
        "db_bytes": 27508736
      }
    },
    {
      "cache_kib": 128000,
      "v4": {
        "seconds_median": 1.99,
        "runs": [
          1.95,
          2.02,
          1.99
        ],
        "db_bytes": 26611712
      },
      "v7": {
        "seconds_median": 0.89,
        "runs": [
          0.88,
          0.89,
          0.95
        ],
        "db_bytes": 27508736
      }
    }
  ],
  "leaf_page_fill_percent": {
    "v4": 90.5,
    "v7": 87.5
  },
  "v7_byte_order_matches_generation_order_100k": true,
  "caveats": "Single machine, in-process SQLite. Absolute times are not comparable to a networked database; the ratio and page fill are the findings."
}