Infographics: Operation Costs in CPU Clock Cycles - IT Hare on Soft.ware
UPDATED: TLB and CAS/atomics (including different NUMA node) added
Click to enlarge
NB: scale is logarithmic!
Premature Pessimization Easy on yourself, easy on the code: All other things being equal, notably code complexity and readability, certain efficient design patterns and coding idioms should just flow naturally from your fingertips and are no harder to write than the pessimized alternatives. This is not premature optimization; it is avoiding gratuitous pessimization.— Herb Sutter, Andrei ...
Read more at ithare.com