Python is darn fast (was: How fast is Python)

Lawrence Oluyede raims at
Sat Aug 23 20:27:32 CEST 2003

 P at wrote:

> If you want to try different machines
> then 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
rhymes at

More information about the Python-list mailing list