DEV Community

Zephyrwr6k
Zephyrwr6k

Posted on Originally published at whisperweb.dev

We Benchmarked Whisper in Browser WASM Across Linux, Windows, and macOS — 4 Surprises in the Data

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.

In 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.

We built an MIT-licensed benchmark harness (whisperweb-dev/browser-whisper-benchmark, v1.2.0) and measured:

  • 3 operating systems: Linux x64 (Ubuntu 24.04), Windows x64, macOS arm64
  • 3 browser engines: Chromium 136, WebKit 18.4, Firefox (SpiderMonkey), plus local Apple M3 Pro Chrome 156
  • Native multi-threaded ONNX (Node.js 24.22.3)
  • Cloud GPU reference: faster-whisper-large-v3-turbo and large-v3 on NVIDIA A10G (24 GB)
  • 9 SHA-256 verified clips across 4 languages (English, Spanish, German, French) + a 30-minute multi-speaker English interview

Here are the four engineering takeaways that surprised us most.


Surprise 1: In single-threaded Chrome WASM, fp32 beat int8 by 3.3×

On Apple M3 Pro (Chrome 156, single-threaded Web Worker WASM SIMD, crossOriginIsolated=false, 3 warm runs on a 60s TED talk):

  • whisper-tiny.en (fp32) — 10.76s [10.51–11.08] (5.58× real-time, 3.7% WER)
  • whisper-tiny.en (int8) — 35.21s [34.30–36.03] (1.70× real-time, 3.7% WER)
  • whisper-base.en (fp32) — 17.70s [15.92–17.90] (3.39× real-time, 2.6% WER)

On 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.


Surprise 2: WebKit 18.4 beat Chromium on Apple Silicon int8, while Firefox lagged by ~8×

Across clean CI runners on the exact same 60-second English talk (ted_60s, 3 warm runs):

OS & CPU Engine tiny.en (fp32) tiny.en (int8) base.en (fp32) base multi (int8)
macOS arm64 (M2 Pro Virtual) Chromium 136 7.02s (8.55×) 9.64s (6.22×) 12.00s (5.00×) 15.58s (3.85×)
macOS arm64 (M2 Pro Virtual) WebKit 18.4 8.28s (7.25×) 8.01s (7.49×) 14.09s (4.26×) 14.71s (4.08×)
Linux x64 (AMD EPYC 9V74) Chromium 136 11.12s (5.40×) 11.13s (5.39×) 19.58s (3.06×) 19.19s (3.13×)
Windows x64 (AMD EPYC 9V74) Chromium 136 11.18s (5.37×) 10.98s (5.46×) 20.19s (2.97×) 18.98s (3.16×)
Linux x64 (AMD EPYC 9V74) WebKit 18.4 12.02s (4.99×) 11.43s (5.25×) 21.61s (2.78×) 20.49s (2.93×)
Linux x64 (AMD EPYC 9V74) Firefox 93.38s (0.64×) 102.46s (0.59×) Timed out (>18m) —

Two notable patterns:

  1. Browser WASM accuracy was bit-for-bit deterministic across Linux, Windows, and macOS (Chromium & WebKit): base multi int8 scored 2.1% WER, base.en fp32 2.6%, tiny.en 3.7% everywhere.
  2. Engine choice matters enormously: Linux and Windows Chromium were within 1–3% of each other, WebKit 18.4 beat Chromium on Apple Silicon int8, and Firefox SpiderMonkey was ~8× slower on the exact same CPU.

Surprise 3: Non-English accuracy is where local base and cloud large-v3-turbo diverge sharply

On clean human-verified Multilingual LibriSpeech (CC-BY-4.0) and a 30-minute multi-speaker English interview (Wikimedia Commons CC BY-SA 4.0):

Task Local whisper-base (int8) NVIDIA A10G large-v3-turbo (fp16)
German clean (mls_de, 14.35s) 33.3% WER (9/27) 0.0% WER (0/27) · 0.361s (39.8× RT)
French clean (mls_fr, 12.66s) 32.4% WER (12/37) 0.0% WER (0/37) · 0.367s (34.5× RT)
Spanish clean (mls_es, 14.96s) 0.0% WER (0/25) 0.0% WER (0/25) · 0.348s (43.0× RT)
German 8 kHz phone (minds14_de) 26.9% WER (7/26) 11.5% WER (3/26) · 0.352s (37.8× RT)
60s English TED (ted_60s) 2.1% WER (4/189) · 15.6–20.9s 1.1% WER (2/189) · 0.740s (81.1× RT)
30:00 multi-speaker interview (4,147 words) ~6–10 min in browser 14.44s median (124.7× RT; cold load 8.16s)

(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.)


Surprise 4: Greedy decoding needs 1–2 seconds of trailing silence

On 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.


Reproduce all 628 WER scores locally

git clone https://github.com/whisperweb-dev/browser-whisper-benchmark.git
cd browser-whisper-benchmark
npm ci --ignore-scripts
npm run verify:audio
npm run score:wer   # independently recomputes all 628 stored WER entries (0 mismatches)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)