Re: Pyro 4 help - please? :)
"Aaron Wylie" <[email protected]> Wed, 22 Oct 2014 16:36:11 -0700
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------