Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It differs by CPU model.


So some CPU models wait 120 cycles and others wait a millisecond (millions of cycles)? That seems like a pretty drastic difference. I wonder why they would write code with such a drastic difference between CPU models.


No, Haswell's PAUSE is 9 cycles, the P-cores of Alder Lake are 160 cycles. Zen 4 is 65.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: