Message4467
One more thing, I changed your code to send more data, and to loop a few
times sending it, so that the JVM gets a little time to warm up.
So I changed your code to this
p = Problem()
p.send('helo'*4800)
for x in range(10):
p.send('A'*19200)
And the timings I get look far more favourable.
These are the timings with the settimeout call
send 19200 bytes in 0.015000 seconds
send 19200 bytes in 0.016000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.016000 seconds
And these are the timings without the settimeout call
send 19200 bytes in 0.141000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.016000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.000000 seconds
send 19200 bytes in 0.016000 seconds
send 19200 bytes in 0.000000 seconds
Do you see the same on your platform? |
|
Date |
User |
Action |
Args |
2009-04-07 17:02:52 | amak | set | messageid: <1239123772.87.0.32733739088.issue1304@psf.upfronthosting.co.za> |
2009-04-07 17:02:52 | amak | set | recipients:
+ amak, kfitch42 |
2009-04-07 17:02:52 | amak | link | issue1304 messages |
2009-04-07 17:02:52 | amak | create | |
|