Re: Pyro 4 help - please? :)
"Aaron Wylie" <[email protected]> Thu, 23 Oct 2014 09:56:04 -0700
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
So I ran a 'while' loop that asked the server for 'time.time() * 1000', return it, subtract the previous result from the current one and then print it. The result from each loop was between 4-5ms which is exactly where I thought it should be. My issue earlier was that I was setting up the proxy each time. Thanks a bunch for your help with this. It's an awesome library. Also, the documentation you have online is some of the friendliest I've seen. :) ~ Aaron -----Original Message----- From: Aaron Wylie [mailto:[email protected]] Sent: Wednesday, October 22, 2014 4:36 PM To: 'Pyro mailing list' Subject: RE: [Pyro] Pyro 4 help - please? :) Hi Irmen, Thanks for the testing direction here. I'll play around with it over the next little while and let you know how I make out. Cheers! ~ Aaron -----Original Message----- From: Irmen de Jong [mailto:[email protected]] Sent: Tuesday, October 21, 2014 11:50 PM To: [email protected] Subject: Re: [Pyro] Pyro 4 help - please? :) On 22-10-2014 5:31, Aaron Wylie wrote: > If you don't mind, one question about function call turnaround time. > I've created a simple function on the pi server: > test_func(self): > pass > Basically just to have something to test with from the client side > because my app needs a high level of time precision. > In the client code I have: > freq = Pyro4.Proxy("PYRONAME:frequency") start = time.clock() > freq.test_time() > end = time.clock() > print end-start > > My result print at the end varies (1.047, 1.038, 1.024, > 1.042....etc.). I believe those separate results are in seconds from > what I understand. Am I to deduce that the time it takes to perform > "freq.test_time()" over my wired network, which is really just a pass > statement, ranges from around 1020 milliseconds to 1050 milliseconds? > Should the round trip be taking that long? No, round trips should be in the order of a few millisecs. http://pythonhosted.org/Pyro4/intro.html#performance (older numbers, but you get a feeling of what should be possible) Run the benchmark example yourself to see what numbers it produces. Keep in mind that you might experience the dns lookup delay if you just create a new proxy and do a single call on it. Try with a direct ip address and doing a loop of calls on the same proxy. Irmen ---------------------------------------------------------------------------- -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Pyro-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyro-core ------------------------------------------------------------------------------