Performance (pystone) of python 2.4 lower then python 2.3 ???

Andreas Kostyrka andreas at mtg.co.at
Fri Dec 17 09:00:51 EST 2004


Ok, here are my results, all python Versions supplied by Debian:

andreas at andi-lap:~> python1.5 /usr/lib/python1.5/test/pystone.py
Pystone(1.1) time for 10000 passes = 1.33
This machine benchmarks at 7518.8 pystones/second
andreas at andi-lap:~> python2.2 /usr/lib/python1.5/test/pystone.py
Pystone(1.1) time for 10000 passes = 1.03
This machine benchmarks at 9708.74 pystones/second
andreas at andi-lap:~> python2.3 /usr/lib/python1.5/test/pystone.py
Pystone(1.1) time for 10000 passes = 0.73
This machine benchmarks at 13698.6 pystones/second
andreas at andi-lap:~> python2.4 /usr/lib/python1.5/test/pystone.py
Pystone(1.1) time for 10000 passes = 0.66
This machine benchmarks at 15151.5 pystones/second

Run on a Knoppix/Debian based Duron 700 (Sony PCG-FX201 laptop).

I guess there must be differences in how your pythons got compiled, even
if you didn't specifies explicitly options.

Andreas

Am Mo, den 13.12.2004 schrieb Lucas Hofman um 17:09:
> Hi,
> 
> Just installed Python 2.4 on a machine (RH8.0 Linux) that also has python 2.3
> and python 2.2 installed. The latter came with the linux distribution, the other
> are compiled from source tarballs.
> 
> Comparing them gives the following unexpected result:
> 
> [lucas at oslwb03 test]$ /usr/bin/python pystone.py
> Pystone(1.1) time for 50000 passes = 1.86
> This machine benchmarks at 26881.7 pystones/second
> [lucas at oslwb03 test]$ /usr/local/bin/python2.3 pystone.py
> Pystone(1.1) time for 50000 passes = 1.22
> This machine benchmarks at 40983.6 pystones/second
> 
> This is ok, a 52% speed increase, but:
> 
> lucas at oslwb03 test]$ /usr/local/bin/python2.4 pystone.py
> Pystone(1.1) time for 50000 passes = 1.31
> This machine benchmarks at 38167.9 pystones/second
> 
> A 7% speed DECREASE??? According to the documentation it should be a 5% increase?
> 
> The machine is a 3.0 GHz Xeon box.
> 
> Both python 2.3 and 2.4 where configure without any options.
> 
> Anyone who understands what is going on?
> 
> Regards, Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://mail.python.org/pipermail/python-list/attachments/20041217/071264ed/attachment.sig>


More information about the Python-list mailing list