Python 2.3.3 : Win32 build vs Cygwin build performance ?

Nicolas Lehuen hotrearia at jetable.net
Tue Jan 27 18:51:19 CET 2004


Hi,

Is it me, or does anyone else get significantly better pystone results under
Cygwin versus the standard Win32 build ?

CYGWIN 1.5.6 + python 2.3.3-1 :
$ time python /usr/lib/python2.3/hotshot/stones.py
Pystone(1.1) time for 50000 passes = 2.344
This machine benchmarks at 21331.1 pystones/second
         850004 function calls in 4.371 CPU seconds

   Ordered by: internal time, call count

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
    50000    1.351    0.000    2.917    0.000 pystone.py:133(Proc1)
    50000    1.132    0.000    1.202    0.000 pystone.py:53(copy)
        1    0.609    0.609    4.371    4.371 pystone.py:79(Proc0)
    50000    0.239    0.000    0.239    0.000 pystone.py:208(Proc8)
   150000    0.184    0.000    0.184    0.000 pystone.py:203(Proc7)
   150000    0.157    0.000    0.157    0.000 pystone.py:221(Func1)
    50000    0.147    0.000    0.200    0.000 pystone.py:229(Func2)
    50000    0.104    0.000    0.153    0.000 pystone.py:160(Proc3)
    50000    0.098    0.000    0.153    0.000 pystone.py:184(Proc6)
    50000    0.090    0.000    0.090    0.000 pystone.py:149(Proc2)
    50002    0.070    0.000    0.070    0.000 pystone.py:45(__init__)
    50000    0.068    0.000    0.068    0.000 pystone.py:177(Proc5)
    50000    0.067    0.000    0.067    0.000 pystone.py:170(Proc4)
    50000    0.055    0.000    0.055    0.000 pystone.py:246(Func3)
        1    0.000    0.000    4.371    4.371 pystone.py:67(pystones)
        0    0.000             0.000          profile:0(profiler)


real    0m26.603s
user    0m25.765s
sys     0m0.280s

Win32 :
C:\Documents and Settings\nlehuen>python c:\Python23\Lib\hotshot\stones.py
Pystone(1.1) time for 50000 passes = 4.1542
This machine benchmarks at 12036 pystones/second
         850004 function calls in 14.917 CPU seconds

   Ordered by: internal time, call count

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    3.772    3.772   14.917   14.917 pystone.py:79(Proc0)
    50000    2.226    0.000    6.314    0.000 pystone.py:133(Proc1)
   150000    1.166    0.000    1.166    0.000 pystone.py:221(Func1)
   150000    1.123    0.000    1.123    0.000 pystone.py:203(Proc7)
    50000    1.075    0.000    1.075    0.000 pystone.py:208(Proc8)
    50000    0.939    0.000    1.410    0.000 pystone.py:53(copy)
    50000    0.903    0.000    1.279    0.000 pystone.py:229(Func2)
    50000    0.795    0.000    1.157    0.000 pystone.py:160(Proc3)
    50000    0.776    0.000    1.137    0.000 pystone.py:184(Proc6)
    50000    0.500    0.000    0.500    0.000 pystone.py:149(Proc2)
    50002    0.472    0.000    0.472    0.000 pystone.py:45(__init__)
    50000    0.416    0.000    0.416    0.000 pystone.py:170(Proc4)
    50000    0.394    0.000    0.394    0.000 pystone.py:177(Proc5)
    50000    0.361    0.000    0.361    0.000 pystone.py:246(Func3)
        1    0.000    0.000   14.917   14.917 pystone.py:67(pystones)
        0    0.000             0.000          profile:0(profiler)

(total real time elapsed > 30 seconds)





More information about the Python-list mailing list