This is an old revision of the document!


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.1166036320.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0