On Thu, Sep 10, 2009 at 4:13 AM, Oleg Oltar <oltarase...@gmail.com> wrote: > Hi! > > I have a question. > I want to create simple load test for my web application. > > Consider the following script: > > while 1: > urllib2.urlopen("www.example.com") > > How can I make it running in several threads?
Have you read at all about threads? http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/ http://www.wellho.net/solutions/python-python-threads-a-first-example.html You might consider using an existing load test application, there are many, some even written in Python: http://httpd.apache.org/docs/2.0/programs/ab.html http://www.opensourcetesting.org/performance.php http://www.softwareqatest.com/qatweb1.html#LOAD Kent _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor