Differences
This shows you the differences between two versions of the page.
programming:instruction-timings [2006/12/13 19:36] cyril |
programming:instruction-timings [2013/09/19 16:41] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Instruction timings ====== | ||
- | |||
- | Here are some results of timings I've done of several instructions in C/C++, to compare several ways to do one thing. | ||
- | |||
- | ===== Proceeding ===== | ||
- | |||
- | |||
- | ===== Summary of results ===== | ||
- | |||
- | Depending on machines, floating point operations can be a lot slower than integer operations, or as fast, or even faster. | ||
- | |||
- | Multiprocessor configs and multicore processors doesn' | ||
- | |||
- | ===== All results ===== | ||
- | |||
- | All timings are given in nanoseconds (ns). | ||
- | |||
- | ^ Title ^ Code ^ Cyril_F | ||
- | ^ RGB -> Y Conversion | ||
- | |Float | ||
- | |Integer | ||
- | |Shift1 |'' | ||
- | |Shift2 |'' | ||
- | |||
- | |||
- | ===== Configs used ===== | ||
- | |||
- | Summary : | ||
- | |||
- | ^ ^ CPU ^ Frequence | ||
- | ^Cyril_F | ||
- | ^Cyril_P | ||
- | ^cJ_F | | | | | | | | | ||
- | ^cJ_P | | | | | | | | | ||
- | ^Infomob |Tri-Xeon | ||
- | ^Almighty | ||
- | ^PC104 | ||
- | |||
- | |||
- | |||
- | ''/ | ||
- | |||
- | |||