PostBench

Web Messaging & Cross-Context IPC Suite · Cross-Origin Isolated

When does postMessage() actually become the bottleneck?

Measure every web IPC primitive directly in your browser across same-thread baselines, Dedicated Workers, Transferable objects, SharedArrayBuffer, SharedWorker, ServiceWorker (postMessage & intercepted fetch()), BroadcastChannel, storage handoffs, iframes, popups, and real-world app workloads.

"Is postMessage the bottleneck? Usually not for small control messages. Sending a small command object and summary back across threads costs roughly 0.05–0.30 ms. Messaging only dominates when an app structured-clones megabytes of data per call instead of transferring ArrayBuffer ownership or keeping state inside the worker."

Hypothesis from wasm-vs-js.com/methodology · Context & MessagePort patterns inspired by port-authority.dev
Browser & OS Detecting...
Concurrency —
Isolation Mode —
Timer Resolution —
Cross-Origin Peer —
Browser IPC Capability Matrix (click to inspect detected APIs)

Benchmark Controls

Categories
Cross-Origin & Interactive Tests:
Ready. Keep this tab active while benchmarks run to avoid background timer throttling.

Hypothesis Verdict: Small Control Messages vs Megabyte Clones

Scaling Curves & Channel Latency

Payload Scaling (64 B → 16 MiB)

Channel Comparison (p50 Bar + p95 Whisker)

Same-Origin vs Cross-Origin Comparison

Real-World Application Scenarios

Detailed Benchmark Tables

Click or press Enter on any row to inspect full percentile distributions, IQR, MAD, synchronous send-block latency, and its deterministic proof-of-execution digest.

Verify, Submit & Export

Runs bind to a single-use HMAC-SHA256 server session and verify deterministic payload checksums before storing in Cloudflare D1.
Isolation Mode & OAC: Isolated Mode (/) sends COOP: same-origin and COEP: require-corp for high-resolution timers and SharedArrayBuffer. OAC reflects window.originAgentCluster (?1 requests origin-keyed clustering).
Why Popups Need Standard Mode: Browsers with Cross-Origin-Opener-Policy: same-origin sever window.opener when opening cross-origin windows, so /standard/ omits COOP/COEP to test live window.open() popups.

Case Details