{"slug": "we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the", "title": "We Benchmarked Whisper in Browser WASM Across Linux, Windows, and macOS — 4 Surprises in the Data", "summary": "A developer built an MIT-licensed benchmark harness, browser-whisper-benchmark v1.2.0, that measures OpenAI Whisper running in-browser via WebAssembly across Linux, Windows and macOS, and published the results. The tests found that fp32 beat int8 by 3.3× on an Apple M3 Pro, that Firefox was roughly 10× slower than Chromium and WebKit (93.38s versus 7.02s for tiny.en fp32), and that whisper-small.en matched 189/189 words verbatim before hallucinating six trailing repetitions at a hard 60-second cut-off, while faster-whisper-large-v3-turbo handled the same cut-off cleanly.", "body_md": "Running OpenAI Whisper directly inside a browser tab via WebAssembly (`@xenova/transformers` + `onnxruntime-web`) sounds great in theory: zero server cost, instant privacy, no file upload.\n\nIn practice, almost every blog post stops at copying the 2022 OpenAI paper's parameter table. Nobody shows repeated Web Worker timings across operating systems, nobody tests Firefox vs WebKit vs Chromium, and almost nobody publishes the verbatim transcripts where small models quietly enter repetition loops.\n\nWe built an MIT-licensed benchmark harness ([`whisperweb-dev/browser-whisper-benchmark`](https://github.com/whisperweb-dev/browser-whisper-benchmark), `v1.2.0`) and measured:\n\n`faster-whisper-large-v3-turbo` and `large-v3` on NVIDIA A10G (24 GB)\nHere are the four engineering takeaways that surprised us most.\n\n`fp32` beat `int8` by 3.3×\nOn Apple M3 Pro (Chrome 156, single-threaded Web Worker WASM SIMD, `crossOriginIsolated=false`, 3 warm runs on a 60s TED talk):\n\n`whisper-tiny.en (fp32)` — `[10.51–11.08]` (`whisper-tiny.en (int8)` — `[34.30–36.03]` (`whisper-base.en (fp32)` — `[15.92–17.90]` (\nOn desktop Chrome, `base.en (fp32)` was roughly **twice as fast AND more accurate** than `tiny.en (int8)`. Quantized `int8` still cuts download size by ~73% (39 MB vs 144.5 MB), making it the right default for mobile browsers — while desktop browsers should default to `fp32` once cached.\n\nAcross clean CI runners on the exact same 60-second English talk (`ted_60s`, 3 warm runs):\n\n| OS & CPU | Engine | `tiny.en (fp32)` | `tiny.en (int8)` | `base.en (fp32)` | `base` multi (`int8` ) | \n|---|---|---|---|---|---|\n| macOS arm64 (M2 Pro Virtual) | Chromium 136 | **7.02s** (8.55×) | 9.64s (6.22×) | **12.00s** (5.00×) | 15.58s (3.85×) | \n| macOS arm64 (M2 Pro Virtual) | WebKit 18.4 | 8.28s (7.25×) | **8.01s** (7.49×) | 14.09s (4.26×) | **14.71s** (4.08×) | \n| Linux x64 (AMD EPYC 9V74) | Chromium 136 | 11.12s (5.40×) | 11.13s (5.39×) | 19.58s (3.06×) | 19.19s (3.13×) | \n| Windows x64 (AMD EPYC 9V74) | Chromium 136 | 11.18s (5.37×) | 10.98s (5.46×) | 20.19s (2.97×) | 18.98s (3.16×) | \n| Linux x64 (AMD EPYC 9V74) | WebKit 18.4 | 12.02s (4.99×) | 11.43s (5.25×) | 21.61s (2.78×) | 20.49s (2.93×) | \n| Linux x64 (AMD EPYC 9V74) | Firefox | 93.38s (0.64×) | 102.46s (0.59×) | Timed out (>18m) | — | \n\nTwo notable patterns:\n\n`base` multi `base.en fp32` `tiny.en` `large-v3-turbo` diverge sharply\nOn clean human-verified **Multilingual LibriSpeech** (CC-BY-4.0) and a **30-minute multi-speaker English interview** (Wikimedia Commons CC BY-SA 4.0):\n\n| Task | Local `whisper-base (int8)` | NVIDIA A10G `large-v3-turbo` (`fp16` ) | \n|---|---|---|\n| German clean ( `mls_de` , 14.35s) | 33.3% WER (9/27) | **0.0% WER** (0/27) · 0.361s (39.8× RT) | \n| French clean ( `mls_fr` , 12.66s) | 32.4% WER (12/37) | **0.0% WER** (0/37) · 0.367s (34.5× RT) | \n| Spanish clean ( `mls_es` , 14.96s) | 0.0% WER (0/25) | **0.0% WER** (0/25) · 0.348s (43.0× RT) | \n| German 8 kHz phone ( `minds14_de` ) | 26.9% WER (7/26) | **11.5% WER** (3/26) · 0.352s (37.8× RT) | \n| 60s English TED ( `ted_60s` ) | 2.1% WER (4/189) · 15.6–20.9s | **1.1% WER** (2/189) · 0.740s (81.1× RT) | \n| 30:00 multi-speaker interview (4,147 words) | ~6–10 min in browser | **14.44s median** (124.7× RT; cold load 8.16s) | \n\n*(Note: we also tested `PolyAI/minds14` Spanish/French telephony clips and discovered upstream reference-transcript omissions in both clips — all verbatim outputs are preserved in the repo for inspection.)*\n\nOn `ted_60s`, which ends abruptly mid-sentence at 60.0s, `whisper-small.en (int8)` matched **189/189 spoken words verbatim (0.0% pre-cutoff WER)** — then hallucinated six trailing repetitions at the hard cut-off (33.9% raw WER). Meanwhile `faster-whisper-large-v3-turbo` handled the exact same hard cut-off cleanly with zero trailing loops.\n\n```\ngit clone https://github.com/whisperweb-dev/browser-whisper-benchmark.git\ncd browser-whisper-benchmark\nnpm ci --ignore-scripts\nnpm run verify:audio\nnpm run score:wer   # independently recomputes all 628 stored WER entries (0 mismatches)\n```\n\n", "url": "https://wpnews.pro/news/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the", "canonical_source": "https://dev.to/zephyrwr6k/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-surprises-in-the-data-3132", "published_at": "2026-11-28 07:33:05+00:00", "updated_at": "2026-11-28 07:43:39.459108+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "ai-tools", "developer-tools"], "entities": ["OpenAI", "Whisper", "WebAssembly", "Firefox", "Chromium", "WebKit", "Apple M3 Pro", "NVIDIA A10G"], "also_reported_by": [], "takeaway": "On desktop Chrome, whisper-base.en in fp32 ran about twice as fast and more accurately than whisper-tiny.en in int8 (12.00s vs 9.64s on macOS arm64), while int8 still cuts model download size by ~73% (39 MB vs 144.5 MB), making it the better default for mobile.", "recommendation": {"advice": "Default desktop browsers to fp32 Whisper models once cached and reserve int8 for mobile, and avoid Firefox for in-browser WASM inference, where tiny.en fp32 took 93.38s versus 7.02s on Chromium.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the", "markdown": "https://wpnews.pro/news/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the.md", "text": "https://wpnews.pro/news/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the.txt", "jsonld": "https://wpnews.pro/news/we-benchmarked-whisper-in-browser-wasm-across-linux-windows-and-macos-4-in-the.jsonld"}}