Python is darn fast (was: How fast is Python)
Lawrence Oluyede
raims at dot.com
Sat Aug 23 14:27:32 EDT 2003
P at draigBrady.com wrote:
> If you want to try different machines
> then http://www.pixelbeat.org/scripts/gcccpuopt will give
> you the appropriate machine specific gcc options to use.
Very cool script, thanks :) Anyway it didn't change so much with erf.c
$ time ./erf
real 0m0.190s
user 0m0.157s
sys 0m0.001s
$ time ./erfCPU
real 0m0.180s
user 0m0.146s
sys 0m0.002s
erfCPU is compiled with the flags suggested by gcccpuopt script:
$ gcccpuopt
-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow
--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com
rhymes at NOSPAMmyself.com
More information about the Python-list
mailing list