Python CGI speed on MacOS X
Tony Lownds
tony-clpy at lownds.com
Wed Jul 18 22:28:02 EDT 2001
Day-to-day use of Mac OS X can cause quite a load on your machine.
What does uptime say?
[localhost:~/Linux] tlownds% uptime
7:21PM up 1:17, 1 user, load averages: 0.91, 1.17, 1.22
With that status (pretty quiet since Classic is running), my pystone
is:
[localhost:Python-2.1/Lib/test] tlownds% python pystone.py
Pystone(1.1) time for 10000 passes = 2.96
This machine benchmarks at 3378.38 pystones/second
And the startup time is:
[localhost:Python-2.1/Lib/test] tlownds% time python -c "pass"
0.240u 0.020s 0:00.60 43.3% 0+0k 0+2io 0pf+0w
Finally try
setenv PYTHONCASEOK 1
And see how it affects the numbers above. I think I saw a difference
while my machine was under serious load, but not when it was quiet.
-Tony
(please cc: on replies)
johnca at DIESPAMmac.com (John Abbe) wrote in message news:<johnca-1807011504080001 at nop009.transbay.net>...
> In article <mty9pm9ou8.fsf at astron.berkeley.edu>,
> johann at leporello.berkeley.edu wrote:
>
> > John Abbe writes:
> >
> > > I'm running MacOS X on a PowerBook G3 400MHz, and have Python 2.1
> > > installed (from http://tony.lownds.com/macosx/).
> >
> > I've got the same computer, and I do notice Python being a bit more
> > pokey than it should be. I suspect some weird intereaction between
> > the Apple-patched gcc compiler and the Python source.
>
> Maybe the 10.1 release of OS X will help.
>
> Anyone else able to offer insights?
More information about the Python-list
mailing list