how fast can you pingpong pickled objects?

B

Bram Stolk

Hi there,

I'm transfering small pickled object over a socket.
The performance I see is lower than expected.

How fast should I be able to ping/pong small objects in python?

I use a threaded SocketServer, telnetlib and pickle to test this,
and I see that a 100 ping-pongs take 4 seconds or so, (over the
localhost network).

ping localhost gives me 0.06 msec, so the network
is fast enough.

My test code is here:

http://stolk.org/tmp/pingpong.py

Is there a limit in Python on how many times per second
a thread can be scheduled?

Thanks,

Bram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top