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

2004-12-13 Thread Lucas Hofman
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:

[EMAIL PROTECTED] test]$ /usr/bin/python pystone.py
Pystone(1.1) time for 5 passes = 1.86
This machine benchmarks at 26881.7 pystones/second
[EMAIL PROTECTED] test]$ /usr/local/bin/python2.3 pystone.py
Pystone(1.1) time for 5 passes = 1.22
This machine benchmarks at 40983.6 pystones/second

This is ok, a 52% speed increase, but:

[EMAIL PROTECTED] test]$ /usr/local/bin/python2.4 pystone.py
Pystone(1.1) time for 5 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

-- 
http://mail.python.org/mailman/listinfo/python-list


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

2004-12-13 Thread Lucas Hofman
Nick Craig-Wood  craig-wood.com> writes:

> 
> Peter Hansen  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 100 ; done
> 
> 2.1
> Pystone(1.1) time for 100 passes = 40.67
> This machine benchmarks at 24588.1 pystones/second
> 2.2
> Pystone(1.1) time for 100 passes = 39.64
> This machine benchmarks at 25227 pystones/second
> 2.3
> Pystone(1.1) time for 100 passes = 32.49
> This machine benchmarks at 30778.7 pystones/second
> 2.4
> Pystone(1.1) time for 100 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 
> 


I got this list on a single processor P4 1.6 Ghz:
2.1
Pystone(1.1) time for 10 passes = 6.74
This machine benchmarks at 14836.8 pystones/second
2.2
Pystone(1.1) time for 10 passes = 6.36
This machine benchmarks at 15723.3 pystones/second
2.3
Pystone(1.1) time for 10 passes = 4.92
This machine benchmarks at 20325.2 pystones/second
2.4
Pystone(1.1) time for 10 passes = 4.51
This machine benchmarks at 22172.9 pystones/second

Which shows the expected speedup.

On a dual Xeon 3.0 Ghz:
2.2
Pystone(1.1) time for 100 passes = 37.45
This machine benchmarks at 26702.3 pystones/second
2.3
Pystone(1.1) time for 100 passes = 25.28
This machine benchmarks at 39557 pystones/second
2.4
Pystone(1.1) time for 100 passes = 25.94
This machine benchmarks at 38550.5 pystones/second

Which shows a decrease in performance. Could this have anything to do with the
fact that is is a dual processor box?

Lucas

-- 
http://mail.python.org/mailman/listinfo/python-list


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

2004-12-13 Thread Lucas Hofman
Mark Asbach wrote:
Hi Lucas,

On a dual Xeon 3.0 Ghz:

[...]

Which shows a decrease in performance. Could this have anything to do with the
fact that is is a dual processor box?

Maybe. But my 3Gh P4/HT is also detected as a dual processor machine
(Kernel 2.6), so it might be a general problem with the Xeon?
Hi Mark,
No,the reason that you see 2 times as many processors as really are 
installed is the hyperthreading feature of the Xeon (see 
http://www.infoworld.com/infoworld/article/02/02/25/020225plxeon_1.html)

I turned it off (in the BIOS). The machine I tested on has 2 (pysical) 
processors installed. Turning on or off does not influence the pystone 
number significantly..

Regards, Lucas
--
http://mail.python.org/mailman/listinfo/python-list


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

2004-12-14 Thread Lucas Hofman
Istvan Albert  mailblocks.com> writes:

> 
> Lucas Hofman wrote:
> 
> > Anyone who understands what is going on?
> 
> It is difficult to measure a speedup that might be
> well within your measurement error.
> 
> Run the same pystone benchmark repeatedly and
> see what variation you get.
> 
> Istvan.

Very little variation actually. The system measured is only lightly loaded (and
it is a 2 processor box). I ran the benchmark > 4 times and got 3 results that
are within 1% of each other.

Lucas


-- 
http://mail.python.org/mailman/listinfo/python-list