flashbang bench

Service Worker redirect latency across all query types

Configuration

Methodology

Each query type is benchmarked independently using fetch('/?q=...', { redirect: 'manual' }) which stops at the Service Worker’s 302 redirect response without following it. This measures the actual SW processing time with no network overhead.

  • 50 warmup iterations per query type (discarded) to stabilize caches
  • 500 measured iterations by default (configurable 100–5,000)
  • performance.now() for high-resolution timing per iteration
  • Stats computed: median, mean, p95, p99, min, max

Run with DevTools closed — Chrome adds huge instrumentation overhead to Service Worker timing.