comparative performance benchmark Python 1.5.2 - 2.0 - 2.1 (fwd)

Lulu of the Lotus-Eaters mertz at gnosis.cx
Sun Oct 21 18:55:39 EDT 2001


[Neil Schemenauer]
> Benchmarking is hard:
>     spud ~$ python1.5 pystone.py
>     Pystone(1.1) time for 10000 passes = 1.33224
>     This machine benchmarks at 7506.16 pystones/second
>     spud ~$ python2.0 pystone.py
>     Pystone(1.1) time for 10000 passes = 1.38104
>     This machine benchmarks at 7240.92 pystones/second
>     spud ~$ python2.1 pystone.py
>     Pystone(1.1) time for 10000 passes = 1.04334
>     This machine benchmarks at 9584.57 pystones/second
>     spud ~$ python2.2 pystone.py
>     Pystone(1.1) time for 10000 passes = 0.975024
>     This machine benchmarks at 10256.2 pystones/second

Not that much anyone probably need more benchmark numbers... but I got
curious, and ran all the Python versions on my OS/2 machine, which is
what I use most of the time (I use a little script to massage
environment variables to select a version):

  D:\py151\lib\test % py 151
  -- Using Python v1.51 --

  D:\py151\lib\test % python pystone.py
  Pystone(1.1) time for 10000 passes = 2.242
  This machine benchmarks at 4460.3 pystones/second

  D:\py151\lib\test % py 152
  -- Using Python v1.52 --

  D:\py151\lib\test % python pystone.py
  Pystone(1.1) time for 10000 passes = 1.086
  This machine benchmarks at 9208.1 pystones/second

  D:\py151\lib\test % py 20
  -- Using Python v2.0/emx --

  D:\py151\lib\test % python pystone.py
  Pystone(1.1) time for 10000 passes = 1.07
  This machine benchmarks at 9345.79 pystones/second

  D:\py151\lib\test % py sl
  -- Using Python v2.0/emx (Stackless) --

  D:\py151\lib\test % python pystone.py
  Pystone(1.1) time for 10000 passes = 1.07
  This machine benchmarks at 9345.79 pystones/second

  D:\py151\lib\test % py 21
  -- Using Python v2.1/emx --

  D:\py151\lib\test % python pystone.py
  Pystone(1.1) time for 10000 passes = 1.11
  This machine benchmarks at 9009.01 pystones/second

  D:\py151\lib\test % \jython20\jython.cmd pystone.py
  Pystone(1.1) time for 10000 passes = 1.782
  This machine benchmarks at 5611.67 pystones/second

FWIW, I don't seem to get any significant difference for a second run,
as Tim finds on Win98.  1.5.1 seems pretty slow.  But the others seem
pretty close... interestingly, the pattern between versions is not like
what Neil finds.  YMMV.

Yours, Lulu...





More information about the Python-list mailing list