{
  "schemaVersion": 1,
  "suite": "upscale-image",
  "version": "upscale-2026-10-25",
  "date": "2026-10-25",
  "caseCount": 15,
  "kinds": [
    "photo",
    "flat",
    "edge"
  ],
  "pipeline": {
    "model": "Real-ESRGAN general-x4v3 fp16",
    "scale": 4,
    "backend": "wasm",
    "revision": "upscale-2026-10-25"
  },
  "methodology": {
    "protocol": "Clean original → 4× bicubic downsample (with JPEG variants) → Real-ESRGAN 4× → compare with the original.",
    "metrics": [
      "PSNR full image",
      "SSIM full image",
      "HF ratio",
      "Edge HF ratio",
      "processing time"
    ],
    "source": "scripts/gen-bench-upscale.py + scripts/bench-upscale-run.mjs",
    "scope": "15 synthetic cases across photo, flat and edge content; clean, JPEG70 and JPEG40 inputs. No runtime failures are claimed beyond this snapshot; human review is separately marked unreviewed.",
    "license": "CC BY 4.0 — ClearPix synthetic benchmark assets"
  },
  "environment": {
    "browser": "Chromium via Playwright",
    "deviceClass": "local development machine",
    "backend": "wasm"
  },
  "summary": {
    "psnrFull": 29.9787,
    "ssimFull": 0.8927,
    "hfAbs": 0.9337,
    "hfRatio": 1.1847,
    "edgeHfRatio": 1.0787,
    "srMs": 67.6667
  },
  "cases": [
    {
      "id": "photo-people-clean",
      "kind": "photo",
      "degrade": "clean",
      "psnrFull": 24.9,
      "ssimFull": 0.817,
      "hfAbs": 1.403,
      "hfRatio": 0.15,
      "edgeHfRatio": 0.15,
      "srMs": 207,
      "timing": {
        "convertMs": 1.18,
        "inferMs": 54.605,
        "pasteMs": 2.01
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-people-clean/input.png",
        "original": "/bench-upscale/photo-people-clean/original.png",
        "zoomInput": "/bench-upscale/photo-people-clean/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-people-clean/zoom-sr.png"
      }
    },
    {
      "id": "photo-people-jpeg70",
      "kind": "photo",
      "degrade": "jpeg70",
      "psnrFull": 23.75,
      "ssimFull": 0.777,
      "hfAbs": 1.581,
      "hfRatio": 0.19,
      "edgeHfRatio": 0.2,
      "srMs": 51,
      "timing": {
        "convertMs": 0.14,
        "inferMs": 48.95,
        "pasteMs": 1.36
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-people-jpeg70/input.png",
        "original": "/bench-upscale/photo-people-jpeg70/original.png",
        "zoomInput": "/bench-upscale/photo-people-jpeg70/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-people-jpeg70/zoom-sr.png"
      }
    },
    {
      "id": "photo-people-jpeg40",
      "kind": "photo",
      "degrade": "jpeg40",
      "psnrFull": 23.2,
      "ssimFull": 0.748,
      "hfAbs": 1.337,
      "hfRatio": 0.14,
      "edgeHfRatio": 0.14,
      "srMs": 52,
      "timing": {
        "convertMs": 0.35,
        "inferMs": 48.94,
        "pasteMs": 2.255
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-people-jpeg40/input.png",
        "original": "/bench-upscale/photo-people-jpeg40/original.png",
        "zoomInput": "/bench-upscale/photo-people-jpeg40/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-people-jpeg40/zoom-sr.png"
      }
    },
    {
      "id": "photo-texture-clean",
      "kind": "photo",
      "degrade": "clean",
      "psnrFull": 29.27,
      "ssimFull": 0.91,
      "hfAbs": 0.903,
      "hfRatio": 0.35,
      "edgeHfRatio": 0.35,
      "srMs": 52,
      "timing": {
        "convertMs": 0.88,
        "inferMs": 49.01,
        "pasteMs": 1.425
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-texture-clean/input.png",
        "original": "/bench-upscale/photo-texture-clean/original.png",
        "zoomInput": "/bench-upscale/photo-texture-clean/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-texture-clean/zoom-sr.png"
      }
    },
    {
      "id": "photo-texture-jpeg70",
      "kind": "photo",
      "degrade": "jpeg70",
      "psnrFull": 27.79,
      "ssimFull": 0.881,
      "hfAbs": 0.933,
      "hfRatio": 0.37,
      "edgeHfRatio": 0.37,
      "srMs": 57,
      "timing": {
        "convertMs": 0.955,
        "inferMs": 53.225,
        "pasteMs": 2.185
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-texture-jpeg70/input.png",
        "original": "/bench-upscale/photo-texture-jpeg70/original.png",
        "zoomInput": "/bench-upscale/photo-texture-jpeg70/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-texture-jpeg70/zoom-sr.png"
      }
    },
    {
      "id": "photo-texture-jpeg40",
      "kind": "photo",
      "degrade": "jpeg40",
      "psnrFull": 26.94,
      "ssimFull": 0.867,
      "hfAbs": 0.911,
      "hfRatio": 0.34,
      "edgeHfRatio": 0.34,
      "srMs": 67,
      "timing": {
        "convertMs": 0.895,
        "inferMs": 49.555,
        "pasteMs": 15.59
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-texture-jpeg40/input.png",
        "original": "/bench-upscale/photo-texture-jpeg40/original.png",
        "zoomInput": "/bench-upscale/photo-texture-jpeg40/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-texture-jpeg40/zoom-sr.png"
      }
    },
    {
      "id": "photo-structure-clean",
      "kind": "photo",
      "degrade": "clean",
      "psnrFull": 31.7,
      "ssimFull": 0.902,
      "hfAbs": 0.733,
      "hfRatio": 0.51,
      "edgeHfRatio": 0.53,
      "srMs": 53,
      "timing": {
        "convertMs": 0.37,
        "inferMs": 50.1,
        "pasteMs": 2.125
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-structure-clean/input.png",
        "original": "/bench-upscale/photo-structure-clean/original.png",
        "zoomInput": "/bench-upscale/photo-structure-clean/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-structure-clean/zoom-sr.png"
      }
    },
    {
      "id": "photo-structure-jpeg70",
      "kind": "photo",
      "degrade": "jpeg70",
      "psnrFull": 29.9,
      "ssimFull": 0.855,
      "hfAbs": 0.775,
      "hfRatio": 0.61,
      "edgeHfRatio": 0.63,
      "srMs": 66,
      "timing": {
        "convertMs": 0.88,
        "inferMs": 48.95,
        "pasteMs": 15.26
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-structure-jpeg70/input.png",
        "original": "/bench-upscale/photo-structure-jpeg70/original.png",
        "zoomInput": "/bench-upscale/photo-structure-jpeg70/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-structure-jpeg70/zoom-sr.png"
      }
    },
    {
      "id": "photo-structure-jpeg40",
      "kind": "photo",
      "degrade": "jpeg40",
      "psnrFull": 29.22,
      "ssimFull": 0.835,
      "hfAbs": 0.741,
      "hfRatio": 0.51,
      "edgeHfRatio": 0.53,
      "srMs": 53,
      "timing": {
        "convertMs": 0.375,
        "inferMs": 49.765,
        "pasteMs": 2.745
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/photo-structure-jpeg40/input.png",
        "original": "/bench-upscale/photo-structure-jpeg40/original.png",
        "zoomInput": "/bench-upscale/photo-structure-jpeg40/zoom-input.png",
        "zoomResult": "/bench-upscale/photo-structure-jpeg40/zoom-sr.png"
      }
    },
    {
      "id": "flat-gradient-clean",
      "kind": "flat",
      "degrade": "clean",
      "psnrFull": 42.2,
      "ssimFull": 0.998,
      "hfAbs": 0.122,
      "hfRatio": 3.47,
      "edgeHfRatio": 2.96,
      "srMs": 65,
      "timing": {
        "convertMs": 0.875,
        "inferMs": 48.975,
        "pasteMs": 15.07
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/flat-gradient-clean/input.png",
        "original": "/bench-upscale/flat-gradient-clean/original.png",
        "zoomInput": "/bench-upscale/flat-gradient-clean/zoom-input.png",
        "zoomResult": "/bench-upscale/flat-gradient-clean/zoom-sr.png"
      }
    },
    {
      "id": "flat-gradient-jpeg70",
      "kind": "flat",
      "degrade": "jpeg70",
      "psnrFull": 42.15,
      "ssimFull": 0.998,
      "hfAbs": 0.145,
      "hfRatio": 4.7,
      "edgeHfRatio": 4.16,
      "srMs": 53,
      "timing": {
        "convertMs": 0.365,
        "inferMs": 49.02,
        "pasteMs": 2.9
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/flat-gradient-jpeg70/input.png",
        "original": "/bench-upscale/flat-gradient-jpeg70/original.png",
        "zoomInput": "/bench-upscale/flat-gradient-jpeg70/zoom-input.png",
        "zoomResult": "/bench-upscale/flat-gradient-jpeg70/zoom-sr.png"
      }
    },
    {
      "id": "flat-gradient-jpeg40",
      "kind": "flat",
      "degrade": "jpeg40",
      "psnrFull": 41.61,
      "ssimFull": 0.998,
      "hfAbs": 0.164,
      "hfRatio": 5.55,
      "edgeHfRatio": 4.94,
      "srMs": 68,
      "timing": {
        "convertMs": 0.86,
        "inferMs": 48.795,
        "pasteMs": 16.455
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/flat-gradient-jpeg40/input.png",
        "original": "/bench-upscale/flat-gradient-jpeg40/original.png",
        "zoomInput": "/bench-upscale/flat-gradient-jpeg40/zoom-input.png",
        "zoomResult": "/bench-upscale/flat-gradient-jpeg40/zoom-sr.png"
      }
    },
    {
      "id": "edge-sharp-clean",
      "kind": "edge",
      "degrade": "clean",
      "psnrFull": 26.12,
      "ssimFull": 0.942,
      "hfAbs": 1.387,
      "hfRatio": 0.29,
      "edgeHfRatio": 0.29,
      "srMs": 52,
      "timing": {
        "convertMs": 0.405,
        "inferMs": 49.01,
        "pasteMs": 2.625
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/edge-sharp-clean/input.png",
        "original": "/bench-upscale/edge-sharp-clean/original.png",
        "zoomInput": "/bench-upscale/edge-sharp-clean/zoom-input.png",
        "zoomResult": "/bench-upscale/edge-sharp-clean/zoom-sr.png"
      }
    },
    {
      "id": "edge-sharp-jpeg70",
      "kind": "edge",
      "degrade": "jpeg70",
      "psnrFull": 25.62,
      "ssimFull": 0.935,
      "hfAbs": 1.412,
      "hfRatio": 0.29,
      "edgeHfRatio": 0.29,
      "srMs": 67,
      "timing": {
        "convertMs": 0.91,
        "inferMs": 48.935,
        "pasteMs": 15.99
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/edge-sharp-jpeg70/input.png",
        "original": "/bench-upscale/edge-sharp-jpeg70/original.png",
        "zoomInput": "/bench-upscale/edge-sharp-jpeg70/zoom-input.png",
        "zoomResult": "/bench-upscale/edge-sharp-jpeg70/zoom-sr.png"
      }
    },
    {
      "id": "edge-sharp-jpeg40",
      "kind": "edge",
      "degrade": "jpeg40",
      "psnrFull": 25.31,
      "ssimFull": 0.928,
      "hfAbs": 1.459,
      "hfRatio": 0.3,
      "edgeHfRatio": 0.3,
      "srMs": 52,
      "timing": {
        "convertMs": 0.35,
        "inferMs": 48.96,
        "pasteMs": 2.285
      },
      "review": {
        "verdict": "unreviewed",
        "notes": "Benchmark snapshot only; no human verdict has been assigned."
      },
      "assets": {
        "input": "/bench-upscale/edge-sharp-jpeg40/input.png",
        "original": "/bench-upscale/edge-sharp-jpeg40/original.png",
        "zoomInput": "/bench-upscale/edge-sharp-jpeg40/zoom-input.png",
        "zoomResult": "/bench-upscale/edge-sharp-jpeg40/zoom-sr.png"
      }
    }
  ]
}
