Re:CPU branch prediction evolution over years
by tcmart14 on Saturday December 31, 2022 @11:39PM
(#34203670)
Wouldn't any kind of measurement have to rely on a heuristic? We would need a baseline as to how often a branch prediction is accurate. If the branch prediction is always wrong, we can assume the speed would be the same. If the branch prediction is always correct, then it should be a pretty big speed up. I would be interested to see a paper on about this topic, so if anyone has one, please share!
[ Parent
| on HN ]
Re:CPU branch prediction evolution over years
by eru on Sunday January 01, 2023 @12:13AM
(#34203812)
> If the branch prediction is always wrong, we can assume the speed would be the same.
Not sure, because in that case the wrongly-predicting CPU is doing lots of wasted work, which contributes to eg waste heat. A non-predicting CPU could do more real work, than a wrong-predicting one?