python locally compiled or binary distribution
Some time ago Dieter posted a comment where he indicated that he saw a substantial performance difference using a locally compiled python vs. the python shipped with the binary distribution. Why is this the case? What sort of performance difference might I expect?
Dennis Allison wrote at 2003-5-30 23:36 -0700:
Some time ago Dieter posted a comment where he indicated that he saw a substantial performance difference using a locally compiled python vs. the python shipped with the binary distribution. Why is this the case? What sort of performance difference might I expect?
The distributed binary probably uses conservative optimization options. My Python went from 12.000 to 17.500 pystones. Dieter
Dieter -- I just build Python 2.1.3 locally and ran pystones and compared it to the distribution binary version. I did not tuning and chose no special options. On a dual processor 2100+ Athalon I got: distribution: 20833.3 pystones local build: 20408.2 pystones I can up the level of optimization a bit (I think it defaults to -O2) but this seems a bit off from your results. What flag settings did you use? On Sat, 31 May 2003, Dieter Maurer wrote:
Dennis Allison wrote at 2003-5-30 23:36 -0700:
Some time ago Dieter posted a comment where he indicated that he saw a substantial performance difference using a locally compiled python vs. the python shipped with the binary distribution. Why is this the case? What sort of performance difference might I expect?
The distributed binary probably uses conservative optimization options.
My Python went from 12.000 to 17.500 pystones.
Dieter
Dennis Allison wrote at 2003-5-31 13:50 -0700:
I just build Python 2.1.3 locally and ran pystones and compared it to the distribution binary version. I did not tuning and chose no special options. On a dual processor 2100+ Athalon I got:
distribution: 20833.3 pystones local build: 20408.2 pystones
I can up the level of optimization a bit (I think it defaults to -O2) but this seems a bit off from your results. What flag settings did you use?
I do not say that all distributions behave the way I observed it. In fact, I had my bad experience only with SuSE 7.3's "Python 2.1.1". My local build did not use any special settings. I just did: ./configure make Dieter
I was using the standard linux binary distribution shipped with Zope 2.5.1 and 2.6.1. The pystones for the distributed version appears to have been compiled with the -O3 flag. Other permutations of settings do not appear to improve performance.
participants (2)
-
Dennis Allison -
Dieter Maurer