Re: [Tutor] Threads very simple examle

2009-09-10 Thread Kent Johnson
On Thu, Sep 10, 2009 at 4:13 AM, Oleg Oltar 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 a

Re: [Tutor] Threads very simple examle

2009-09-10 Thread Oleg Oltar
On Thu, Sep 10, 2009 at 12:43 PM, Alan Gauld wrote: > "Oleg Oltar" wrote > > I want to create simple load test for my web application. >> Consider the following script: >> >> while 1: >> urllib2.urlopen("www.example.com") >> > > Just a small caveat. > If you try a load test like this from a si

Re: [Tutor] Threads very simple examle

2009-09-10 Thread Alan Gauld
"Oleg Oltar" wrote I want to create simple load test for my web application. Consider the following script: while 1: urllib2.urlopen("www.example.com") Just a small caveat. If you try a load test like this from a single PC you might get very surprising (and non representative) results.

[Tutor] Threads very simple examle

2009-09-10 Thread Oleg Oltar
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? ___ Tutor maillist - Tutor@python.org To un