[LWN Logo]

From: "M.-A. Lemburg" <mal@lemburg.com>
Subject: Version 0.5 of the Python Benchmark Suite
Date: Sun, 05 Apr 1998 21:49:28 EDT

The Python Benchmark Suite is a collection of tests that provide
a portable way to measure the performance of the Python interpreter.
It takes a very close look at different aspects of Python programs
and let's you decide which factors are more important to you than
others, rather than wrapping everything up in  one number, like
the pystone test does.

Here is a sample output:

PYBENCH 0.5

Benchmark: mxp15-O-1 (rounds=10, warp=10)

Tests:                              per run    per op.    diff *
------------------------------------------------------------------------
          BuiltinFunctionCalls:    1148.95 ms    4.51 us  -11.55%
           BuiltinMethodLookup:    1397.75 ms    1.33 us  -28.96%
               CreateInstances:    1355.60 ms   16.14 us  -21.63%
                  DictCreation:    1451.65 ms    4.84 us  -13.02%
                    IfThenElse:    1959.55 ms    1.45 us   +0.14%
                   ListSlicing:    1488.25 ms  170.09 us   -2.07%
                NestedForLoops:    1011.55 ms    1.35 us  -16.37%
          NormalClassAttribute:    1435.65 ms    1.20 us  -10.13%
       NormalInstanceAttribute:    1184.70 ms    0.99 us  -24.85%
           PythonFunctionCalls:    1385.70 ms    4.20 us  -18.77%
             PythonMethodCalls:    1162.85 ms    7.75 us  -12.39%
                     Recursion:    1184.80 ms   47.39 us   -9.71%
        SimpleDictManipulation:    1015.75 ms    1.69 us  -31.80%
         SimpleFloatArithmetic:    1152.75 ms    1.05 us  -18.57%
       SimpleIntegerArithmetic:    1051.55 ms    0.80 us  -23.47%
        SimpleListManipulation:     963.80 ms    1.78 us  -30.40%
                    SmallLists:    1624.50 ms    3.19 us  -17.35%
                   SmallTuples:    1331.60 ms    2.77 us  -11.24%
         SpecialClassAttribute:    1444.55 ms    1.20 us  -25.20%
      SpecialInstanceAttribute:    1432.65 ms    1.19 us  -25.79%
                  TupleSlicing:    3104.35 ms    5.91 us   +0.11%
------------------------------------------------------------------------
            Average round time:   33117.00 ms             -16.64%

*) measured against: p15-O (rounds=10, warp=10)

Note that the absolute figures are not that important. It's
the relative difference that makes statements w/r to speed
improvements possible.

You can download the suite at:

	http://starship.skyport.net/~lemburg/pybench-0.5.zip

-- 
Marc-Andre Lemburg                       
......................................................................
            |  Python Pages:  http://starship.skyport.net/~lemburg/  |
             --------------------------------------------------------

-- 
-------- comp.lang.python.announce (moderated) --------
Article Submission Address:  python-announce@python.org
Python Language Home Page:   http://www.python.org/
-------------------------------------------------------