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

Nick Craig-Wood nick at craig-wood.com
Tue Dec 14 01:47:26 EST 2004


Peter Hansen <peter at engcorp.com> wrote:
>  For comparison, I do get a decent speedup.  Machine is an
>  AMD Athlon XP 2500+ (1.82GHz) running Win XP Pro SP2.
> 
>  Python 2.3.4: 36393 pystones.
>  Python 2.4:   39400 pystones.
> 
>  ...about an 8% speedup.

On my 2.6 GHz P4 running debian testing I got the following results :-

$ for p in 2.1 2.2 2.3 2.4; do echo $p; python$p pystone.py 1000000 ; done

2.1
Pystone(1.1) time for 1000000 passes = 40.67
This machine benchmarks at 24588.1 pystones/second
2.2
Pystone(1.1) time for 1000000 passes = 39.64
This machine benchmarks at 25227 pystones/second
2.3
Pystone(1.1) time for 1000000 passes = 32.49
This machine benchmarks at 30778.7 pystones/second
2.4
Pystone(1.1) time for 1000000 passes = 29.88
This machine benchmarks at 33467.2 pystones/second

Showing that 2.4 is the fastest so far!  (And is also a good advert
for AMD ;-)

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list