|
|
Warp wrote:
>> Uhuh. And are you by any chance running this on an AMD Mobile AlthonXP
>> 1400+?
>
> I have hard time believing my computer is 30 times faster than that.
> Twice or three times as fast I could still maybe swallow, but not 30 times.
> (Athlons are rather notorious for being much faster than the Pentium4 line
> with the same clockrates.)
>
P4 Core2 Duo here,
1 billion iterations, C#
1000000000 Int Sum Time: 00:00:02.2499280
1000000000 Double Sum Time: 00:00:03.3905165
1000000000,1000000000 Double Convert Time: 00:00:03.7655045
^^ Interestingly the float to int conversion uses an MMX instruction.
Apparently it is very costly to do it without MMX, the CLR JIT uses the
MMX instruction regardless, so I have no comparison for the non-MMX
instruction. But, the difference is negligible between floating point
operations and integer.
--
~Mike
Post a reply to this message
|
|