
13 Feb
2009
13 Feb
'09
9:33 a.m.
Gokulakannan Somasundaram wrote:
Attaching the files..
Testing with GCC 4.3.2, -O3 -march=native -fomit-frame-pointer on an Intel Core 2 Duo. My results are: Time elapsed: 2621 mu.s 11000000 Time elapsed: 3136 mu.s 22000000 Time elapsed: 2250 mu.s 5000000 Hence, switch is slightly faster. Why do you test two times for the variant by the way?