« Return to Thread: How reliable is PyAMF -- AS3 remoting?

Re: Terrible performance results of echo_test in local network

by Nick Joyce :: Rate this Message:

Reply to Author | View in Thread

That is really weird ..

What is the ping between the two machines? Can you switch logging on in pyamf :

import logging
logging.basicConfig(level=logging.DEBUG,
           format='%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s')

and rerun the echo_test and attach the log - this would be able to show if pyamf is taking 8 seconds minimum to process the request or if the time is elsewhere ?

I would also suggest using something like Firebug to view the network timeline and see where the lag is ..

Using echoserver isn't built for performance but even so 8+ seconds is crazy!

Hth,

Nick

On 4 Jun 2009, at 16:24, Kay Schluehr wrote:

Dear PyAMF users,

for the last week I developed in Flash + PyAMF-0.4.2 on a WinXP notebook. The performance of the connection and throughput was quite good. Now I distributed my app and let my Flash client run on Vista PC while the server still runs on the XP notebook. The performance went down by at least two orders of magnitude. One can blame a slow network connection but this alone might not suffice.

I attempted to reproduce the measurements with echo_test.swf + echoserver in WSGI mode from the PyAMF site and it confirmed that each message required at least 8 sec + X no matter how much data was transferred.

On a single notebook ( both client and server ) I got the following results:

Connecting through REMOTEOBJECT using AMF3 encoding...
Testing null: OK (in 0.812 sec). Result: (null)
Testing undefined: OK (in 0.042 sec). Result: (null)
Testing true: OK (in 0.045 sec). Result: (true)
Testing false: OK (in 0.043 sec). Result: (false)
Testing : OK (in 0.045 sec). Result: (String with 0 chars)
Testing Hello world!: OK (in 0.044 sec). Result: (Hello world!)
Testing test1,test2,test3,test4: OK (in 0.044 sec). Result: (test1,test2,test3,test4)
Testing String with 40000 chars: OK (in 0.069 sec). Result: (String with 40000 chars)
Testing String with 70000 chars: OK (in 0.062 sec). Result: (String with 70000 chars)
Testing String with 1000000 chars: OK (in 0.769 sec). Result: (String with 1000000 chars)
Testing 0: OK (in 0.014 sec). Result: (0)
...
Testing ByteArray containing 142 bytes: OK (in 0.045 sec). Result: (ByteArray containing 142 bytes)
Tesing array of 2 ByteArrays: OK (in 14991 sec). Result: (Array of 2 ByteArrays)
Successfully ran 52 test(s) in 3.853 seconds.

On a  PC + notebook network I got this result

Connecting through REMOTEOBJECT using AMF3 encoding...
Testing null: OK (in 22.886 sec). Result: (null)
Testing undefined: OK (in 9.211 sec). Result: (null)
Testing true: OK (in 9.01 sec). Result: (true)
Testing false: OK (in 8.636 sec). Result: (false)
Testing : OK (in 9.211 sec). Result: (String with 0 chars)
Testing Hello world!: OK (in 9.186 sec). Result: (Hello world!)
Testing test1,test2,test3,test4: OK (in 8.847 sec). Result: (test1,test2,test3,test4)
Testing String with 40000 chars: OK (in 9.079 sec). Result: (String with 40000 chars)
Testing String with 70000 chars: OK (in 9.611 sec). Result: (String with 70000 chars)
Testing String with 1000000 chars: OK (in 21.65 sec). Result: (String with 1000000 chars)
Testing 0: OK (in 8.033 sec). Result: (0)
Testing ByteArray containing 142 bytes: OK (in 9.159 sec). Result: (ByteArray containing 142 bytes)
....
Tesing array of 2 ByteArrays: OK (in 524675 sec). Result: (Array of 2 ByteArrays)
Successfully ran 52 test(s) in 490.744 seconds.


Has anyone an idea how to explain the discrepances? Notice that running a simple pure Python client/server system as described here

http://ilab.cs.byu.edu/python/socket/echoserver.html

distributed on both computers needs about one second for echoing a message. This is a guessed result though and I could provide numbers if someone is interested.

Regards, Kay
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users


_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

 « Return to Thread: How reliable is PyAMF -- AS3 remoting?