Approximate Number of CPU Cycles for Various Operations
Posted
by colordot
on Stack Overflow
See other posts from Stack Overflow
or by colordot
Published on 2010-04-23T22:50:27Z
Indexed on
2010/04/23
22:53 UTC
Read the original article
Hit count: 231
I am trying to find a reference for approximately how many CPU cycles various operations require.
I don't need exact numbers (as this is going to vary between CPUs) but I'd like something relatively credible that gives ballpark figures that I could cite in discussion with friends.
As an example, we all know that floating point division takes more CPU cycles than say doing a bitshift.
I'd guess that the difference is that the division is around 100 cycles, where as a shift is 1 but I'm looking for something to cite to back that up.
Can anyone recommend such a resource?
© Stack Overflow or respective owner