March 19, 2026
Silicon fortune-tellers?
How many branches can your CPU predict?
AMD 'mind-reader' hits 30k, Apple 10k, Intel 5k — and comments erupt
TLDR: A simple benchmark showed AMD’s chip memorizing 30,000 repeated “if” outcomes, far above Apple and Intel, and the internet ignited. Commenters argued whether this proves real-world speed, exposes Intel tradeoffs, or just measures memorization — with devs noting code style can make CPUs shine or stumble.
A simple loop lit up the internet: in Daniel Lemire’s blog test, AMD’s newest chip “memorized” 30,000 if‑statements, Apple’s did 10,000, and Intel’s only 5,000. Translation for non‑nerds: modern chips guess which way your code will go to run faster. When fed the same “random” pattern over and over, AMD guessed best. Cue the drama.
Commenters roasted Intel like it’s 2012 again, joking that AMD is a mind reader, Apple’s the middle child, and Intel’s got goldfish memory. But the pushback was instant: one engineer argued that making a bigger “guesser” costs chip space and speed elsewhere — maybe Intel spent those resources on other features. Another crowd questioned the test itself: if you use random values, aren’t you measuring memorization, not real‑world smarts? One dev admitted they had to switch to “branchless” code because Intel stumbled under load — a very practical “ouch.” Others scratched their heads: how can a single if‑statement be learned thousands of different ways?
So is AMD the psychic hero or just acing a memory quiz? The thread split cleanly: performance bragging rights vs. “this isn’t the real world.” Either way, everyone agreed on one thing — your code’s shape can make or break your CPU’s magic.
Key Points
- •The article tests how many branch outcomes modern CPUs can memorize and predict perfectly.
- •A loop with a branch on value parity is run repeatedly using the same random sequence to allow predictors to learn the pattern.
- •With this benchmark, AMD Zen 5 learned ~30,000 branch outcomes perfectly.
- •Apple M4 learned ~10,000 branch outcomes perfectly.
- •Intel Emerald Rapids learned ~5,000 branch outcomes perfectly.