I Built a 39-Line WebAssembly Phone Benchmark and Collected 2,000+ Real Runs: Here Is What Surprised Me
A few weeks ago I wanted to answer a simple question: instead of abstract benchmark scores that only engineers care about, what if you measured smartphone CPU speed in a unit anyone can picture instantly?
So I built Cardmark: a free, 1-second browser benchmark that counts how many 52-card poker decks your phone can genuinely shuffle across all CPU cores using WebAssembly and Web Workers - no app install, no sign-up, and zero tracking.
After sharing it online, users organically ran 2,000+ anonymous tests across 195 smartphone models (and shuffled over 31 billion decks in its live Android vs. iPhone arena). Looking at the real-world dataset, four genuinely surprising patterns popped out.
How the 39-Line WebAssembly Kernel Works
To keep the workload honest across browsers and architectures (ARM64, Apple Silicon, x86):
- Unbiased Fisher-Yates shuffle on a 52-card array (
0..51). - Zero modulo bias via rejection sampling (
uint32_t threshold = (0u - bound) % bound). - Deterministic PRNG: instead of
Math.random()(which differs by browser), every worker runsxoshiro128**(Blackman & Vigna), bit-identical on every device. - Anti-dead-code-elimination: an FNV-1a check hashes 5 fixed card slots after every single deck, plus a 52-bit bitmask verifies every 1,024 decks that all 52 distinct cards are present.
- Best of 3×1s runs after warm-up, with all UI animations paused so the screen doesn't steal CPU cycles.
4 Surprising Findings From 2,000+ Real-World Runs
1. Apple Wins Single-Core, but Android Nearly Doubles It in Multi-Core
On a single CPU core, Apple still holds the #1 and #2 spots: iPhone 18 Pro Max reaches 10.33M decks/sec and iPhone 18 Pro hits 10.27M, ahead of Galaxy Z Fold8 Ultra (9.45M) and Galaxy S26 Ultra (9.27M).
Once you fan out across Web Workers, however, every iPhone generation consistently caps around 2.6×-2.8× scaling (~28M total), whereas Snapdragon 8 Elite / Gen 5 flagships scale 5.0×-6.1×, pushing Multi-Core to 48.57M decks/sec.
You can explore the live table here: Single-Core vs. Multi-Core Observatory.
2. Custom Oryon Cores vs. Standard ARM Cores on Tight 32-Bit WASM Loops
Across the live database, chips using standard ARM core designs cluster surprisingly close together on this tight 32-bit integer loop:
- Galaxy S24 Ultra (Snapdragon 8 Gen 3, 50 runs): 13.4M
- Google Pixel 11 Pro (Tensor, 24 runs): 15.1M
- Oppo Find X9 Pro (Dimensity 9500, 5 runs): 13.6M (5.7× scaling)
Meanwhile, Qualcomm's custom Oryon cores jump more than 3× higher (43.2M on S25 Ultra, 47.3M on S26 Ultra).
3. Same Phone, Different Browser = Up to 22%-33% Speed Gap
Because the benchmark runs inside everyday mobile browsers instead of a native lab app, it also exposes real differences between browser engines on identical hardware:
- On Galaxy Z Fold7, Samsung Internet beats Chrome by +22% (41.1M vs. 33.6M).
- On Galaxy S25, Samsung Internet beats Chrome by +16% (46.2M vs. 39.9M).
- Across devices, the in-app Google App browser is the slowest overall - dropping up to 33% on iPhone 16 compared to Chrome.
Live browser data is tracked here: Fastest Mobile Browsers Observatory.
4. Up to 40% Real-World Spread on the Exact Same Model
On popular models with 10+ runs, the spread between healthy units and throttled units of the exact same phone reaches 32%-40% (e.g. Galaxy S25 Ultra ranges from 47.7M down to 28.6M; Pixel 9a drops 40%; iPhone 17 Pro drops 32%).
Because of that, I added a free 1-second CPU Health Report right after each test: it compares your phone against the real-world average of other owners of your exact model, breaks down every individual core, and flags likely throttling or browser bottlenecks (CPU Health Guide).
Open Data & Try It Yourself
All aggregated model data is published under CC BY 4.0 with a free JSON API (CARDMARK API) and full live rankings (Worldwide Smartphone Leaderboard).
If you want to see where your own phone lands - or test how your browser compares - you can run the 1-second test at cardmark.net.
Curious to hear what scores and scaling factors you get!
Comments
No comments yet. Start the discussion.