Message4467

Author amak
Recipients amak, kfitch42
Date 2009-04-07.17:02:52
SpamBayes Score 7.678394e-05
Marked as misclassified No
Message-id <1239123772.87.0.32733739088.issue1304@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-04-07 17:02:52amaksetmessageid: <1239123772.87.0.32733739088.issue1304@psf.upfronthosting.co.za>
2009-04-07 17:02:52amaksetrecipients: + amak, kfitch42
2009-04-07 17:02:52amaklinkissue1304 messages
2009-04-07 17:02:52amakcreate