[Python-Dev] Joys of Optimization

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Mar 15 00:45:12 EST 2004


> From: Hye-Shik Chang [mailto:perky at i18n.org]
> 
> If you are interested in more performance, try to build the port
> with this options:
> 
>  CFLAGS=-O3 CPUTYPE=p2 make install clean
> 
> FreeBSD ports use only -O1 by default. -O3 may boost the benchmark
> result by 10%~15%.

True, and it will be interesting to see if this makes any relative difference between 2.3 and 2.4. The important thing though is that the same compilation options were used for 2.3 and 2.4, so I'm comparing like with like.

BTW, other comments have indicated that -Os might give the best results (can fit more in cache).

Tim Delaney



More information about the Python-Dev mailing list