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

Discussion in 'Python' started by Andreas Kostyrka, Dec 17, 2004.

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

    andreas@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@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@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@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@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@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@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


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQBBwuaSHJdudm4KnO0RAjcLAKC3TQrn0KqieSzGKQ5JSQghKCkJXQCgqueh
    qHGDKlqtMrzmTfSveMbtGBY=
    =36zE
    -----END PGP SIGNATURE-----
    Andreas Kostyrka, Dec 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zhi Min
    Replies:
    0
    Views:
    401
    Zhi Min
    Jun 11, 2004
  2. Lucas Hofman
    Replies:
    13
    Views:
    728
  3. Franco Fiorese

    Pystone benchmark: Win vs. Linux (again)

    Franco Fiorese, Jan 28, 2005, in forum: Python
    Replies:
    6
    Views:
    2,775
    Franco Fiorese
    Jan 29, 2005
  4. Replies:
    2
    Views:
    432
    Raymond Hettinger
    Mar 27, 2011
  5. Replies:
    0
    Views:
    270
Loading...

Share This Page