Tuesday, June 29, 2004

amd64 slow

linux and freebsd testing.

counting primes naively by testing against all odd numbers from 3 to sqrt of candidate. i386 1.3ghz (pentium m) and 1.4ghz (athlon) runs to 2^30 around 30 seconds.

linux box at work runs to 2^24 in a minute.

amd64 1.6 ghz runs to 2^24 in a minute (native compile with 4-byte int)
and 90 seconds in 8-byte ints

so the compilers suck.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home