Differences

This shows you the differences between two versions of the page.

Link to this comparison view

programming:instruction-timings [2006/12/13 18:58]
cyril created
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 ===== 
- 
- 
-===== All results ===== 
- 
- 
-^  Title  ^  Code  ^  Cyril_F  ^  Cyril_P  ^  cJ_F  ^  cJ_P  ^  Infomob  ^  Almighty  ^  PC104  ^ 
-^  RGB -> Y Conversion  ^^^^^^^^^ 
-|Float  |''imgg[k2++] = (0.299*img[k++] + 0.587*img[k++] + 0.114*img[k++]);''  |  175  |  |  |  6.09 ??!  |  20.8  |  12.6  |  84.3  | 
-|Integer  |''imgg[k2++] = (19595*img[k++] + 38470*img[k++] + 7471*img[k++]) >> 16;''  |  91.1  |  |  |  |  25.1  |  4.03  |  153  | 
-|Shift1 |''imgg[k2++] = (img[k++]>>2 + img[k]>>1 + img[k++]>>3 + img[k++]>>3);''  |  50.4  |  |  |  |  10.6  |  5.97  |  29.3  | 
-|Shift2 |''imgg[k2++] = (img[k]>>2 + img[k++]>>4 + img[k]>>1 + img[k++]>>4 + img[k++]>>3);''  |  56.7  |  |  |  |  11.7 |  6.65  |  43.4  | 
  
programming/instruction-timings.txt ยท Last modified: 2013/09/19 16:41 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0