AI WebGPU Lab Benchmark

Worker Isolation vs Main Thread Jank

`bench-worker-isolation-and-ui-jank` is a deterministic browser-only harness. It runs the same CPU burn loop on the main thread or in a dedicated worker while capturing frame gaps, timer lag, optional input lag, and worker round-trip costs.

Type in the input field during a run if you want live input delay samples in addition to the automatic frame and timer metrics.

Scenario Controls

Choose one scenario. Both modes use the same burn profile so you can compare how much responsiveness is preserved when the work moves off the main thread.

Interactive Probe

The automatic metrics are repeatable without manual input. Typing during a run adds an extra input-lag proxy using performance.now() - event.timeStamp.

Benchmark Guidance

  • Keep the same round count and burn duration when comparing browsers or devices.
  • Run main-thread first, then worker, and export separate JSON drafts for each scenario.
  • Promote the raw draft only after recording browser, OS, and device context in RESULTS.md.

Responsiveness Timeline

Metrics

Environment Snapshot

Activity Log

    Schema-Aligned Result Draft

    {
      "status": "pending"
    }