Re: could use some assistance in tracking down some current issues
Éric Piel <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 20/08/13 20:49, Irmen de Jong wrote: : >> ========================================= >> eventloop slow with multiple calls: I don't know how to test. >> $ python ./eventloop/client.py >> 5*11=55 >> 'x'*10=xxxxxxxxxx >> press enter to do two more calls: >> 2*4=8 >> '@'*3=@@@ >> >> (That looked like less than a second, both multiplex and threaded) > > I've very recently updated this example to use a loop in the client, that should finish > almost instantaneous because it is only 20 iterations. It does that on windows and OSX, > but on Linux, it takes much longer with only a few calls/sec Yes, I got the new version with a pull this morning. That's fresh! And indeed, it's painfully slow on my system (both threaded and multiplexed server): $ time echo "" | python ./client.py 5*11=55 'x'*10=xxxxxxxxxx press enter to do a loop of some more calls:2*i=2 '@'*i=@ 2*i=4 '@'*i=@@ 2*i=6 '@'*i=@@@ 2*i=8 '@'*i=@@@@ 2*i=10 '@'*i=@@@@@ 2*i=12 '@'*i=@@@@@@ 2*i=14 '@'*i=@@@@@@@ 2*i=16 '@'*i=@@@@@@@@ 2*i=18 '@'*i=@@@@@@@@@ 2*i=20 '@'*i=@@@@@@@@@@ 2*i=22 '@'*i=@@@@@@@@@@@ 2*i=24 '@'*i=@@@@@@@@@@@@ 2*i=26 '@'*i=@@@@@@@@@@@@@ 2*i=28 '@'*i=@@@@@@@@@@@@@@ 2*i=30 '@'*i=@@@@@@@@@@@@@@@ 2*i=32 '@'*i=@@@@@@@@@@@@@@@@ 2*i=34 '@'*i=@@@@@@@@@@@@@@@@@ 2*i=36 '@'*i=@@@@@@@@@@@@@@@@@@ 2*i=38 '@'*i=@@@@@@@@@@@@@@@@@@@ real 0m3.337s user 0m0.124s sys 0m0.008s Cheers, Éric ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk