{
  "evidence": {
    "id": "local-rewrite-2026-10-30-16mib",
    "measuredOn": "2026-10-30",
    "synthetic": true,
    "cloudBenchmark": false,
    "rows": 640000,
    "filesBefore": 128,
    "filesAfter": 2,
    "targetMiB": 16,
    "sourceQueryMs": 125.16304198652506,
    "candidateQueryMs": 21.346875000745058,
    "repetitions": 5,
    "rowsEqual": true,
    "sourceUnchanged": true,
    "storageReclaimedBytes": 0,
    "method": "Generated events on a warm local filesystem. PyIceberg full-table materialization plus DuckDB SQL and connection setup. One warm-up per table, five timed repetitions per layout, alternating timed order. Reported query time is the median.",
    "caveat": "A local synthetic before/after microbenchmark, not an S3 Tables, Glue, Athena or cloud-cost comparison. No cold-cache, statistical-significance or production-performance claim.",
    "engine": "PyIceberg 0.11.1",
    "python": "3.11.16",
    "platform": "macOS, arm64, 8 logical CPUs, 16 GiB RAM",
    "legacy": {
      "peakRssBytes": 425705472,
      "operationSeconds": 0.7522940002381802,
      "outputFiles": 2
    },
    "bounded": {
      "peakRssBytes": 372899840,
      "operationSeconds": 2.2662141672335565,
      "outputFiles": 2
    }
  },
  "derived": {
    "fileReductionPercent": "98.4",
    "querySpeedup": "5.9",
    "sourceQueryMs": "125.2",
    "candidateQueryMs": "21.3",
    "memoryReductionPercent": "12.4",
    "legacyPeakMiB": "406.0",
    "boundedPeakMiB": "355.6",
    "legacySeconds": "0.75",
    "boundedSeconds": "2.27",
    "rowsThousands": "640",
    "rows": "640,000"
  },
  "comparisonCheckedOn": "2026-11-18",
  "comparisons": [
    {
      "label": "Operating model",
      "lakecost": "Self-hosted service, deployment scoped per pilot",
      "s3": "Managed Iceberg tables in S3 table buckets",
      "glue": "Managed optimizers for tables in the Glue Data Catalog",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Operating responsibilities",
      "lakecost": "Deployment, operation and support agreed per pilot",
      "s3": "AWS-managed table maintenance",
      "glue": "AWS-managed optimizer execution",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Current availability",
      "lakecost": "Accepting assisted pilot enquiries; scope agreed before work starts",
      "s3": "Documented managed service, subject to AWS prerequisites",
      "glue": "Documented managed service, subject to AWS prerequisites",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Compaction",
      "lakecost": "Current local implementation: explicit candidate rewrites; source remains unchanged",
      "s3": "Automatic compaction",
      "glue": "Configurable automatic compaction",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Decision evidence",
      "lakecost": "Demonstrated locally: before/after reports, writer-plan checks and logical-row validation",
      "s3": "Service-managed maintenance; evaluate using AWS monitoring and your workload",
      "glue": "Optimizer status and metrics; evaluate using AWS monitoring and your workload",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Lifecycle maintenance",
      "lakecost": "Read-only local preview. No expiration or deletion.",
      "s3": "Managed snapshot and unreferenced-file maintenance",
      "glue": "Configurable snapshot retention and orphan-file deletion",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Execution boundary",
      "lakecost": "Current implementation: no production promotion or cloud writes",
      "s3": "AWS-managed table-bucket operations",
      "glue": "AWS-managed catalog-table operations",
      "refs": [
        "s3",
        "glue"
      ]
    },
    {
      "label": "Best fit",
      "lakecost": "Teams assessing a customer-hosted service through an assisted pilot",
      "s3": "Adopt managed table storage and routine maintenance in AWS",
      "glue": "Automate maintenance around a Glue-catalogued lake",
      "refs": [
        "s3",
        "glue"
      ]
    }
  ],
  "sources": [
    {
      "id": "s3",
      "label": "Amazon S3 Tables maintenance",
      "url": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-maintenance.html"
    },
    {
      "id": "glue",
      "label": "AWS Glue table optimizers",
      "url": "https://docs.aws.amazon.com/glue/latest/dg/table-optimizers.html"
    }
  ]
}