[mod_python] Win32 threading issue

Chris Trengove trengove at econdata.com.au
Thu May 10 08:45:08 EST 2001


Stephane,

Sorry, the mail program keeps messing up the formatting of the script, so
here it is as an attachment.

Chris

At 02:07 PM 9/05/2001 +0200, =?US-ASCII?Q?Stephane_Bidoul?= wrote:
>Chris,
>
>Could you send me your driver script?
>I cannot reproduce the behaviour you describe with
>my own test scripts.
>
>BTW, do you have a multiprocessor machine?
>I know some problems have been reported
>but never reproced on MP WIN2K machines.
>
>-sbi
-------------- next part --------------
import sys
import time
import urllib

URL = "http://127.0.0.1/python/test.py"
NUM_GETS = 1000

start = time.clock()
for i in range(0,NUM_GETS):
    f = urllib.urlopen(URL)
    print f.read(),
    f.close()
stop = time.clock()
elapsed = stop - start
print "%d GETs in %.3f seconds = %.0f GETs/second" % (NUM_GETS,elapsed,NUM_GETS / elapsed)


More information about the Mod_python mailing list