[openamq-dev] Fwd: Ruby QPID libraries
Gordon Sim
gsim at redhat.com
Wed Apr 30 15:55:26 CEST 2008
Carl Bourne wrote:
> Thanks Gordon,
>
>>Are you seeing the throughput drop off for counts higher than 1000? Or
> is it just the low
>>throughput in general?
>
> Yes seems to progressively slow right down the higher the message count
> goes!
>
> 10000 in around 30 seconds – Is that just sending or send and receive?
> I.e. You push 10000 in and see all 10000 out within the 30 secs?
Yes, I believe so.
> If so can you show me a code snippet of how you are sending/receiving?
Test attached... its just a hacked version of the trivial example with
the loop as you described it. Output I see is below:
[gordon at thinkpad ruby]$ for c in 1000 5000 10000; do echo "Testing with
$c iterations..."; time ruby multi_test.rb
~/qpid/branches/M2.1-release/specs/amqp.0-9.no-wip.xml $c ; done
Testing with 1000 iterations...
1000 messages sent
1000 messages received
real 0m4.766s
user 0m4.112s
sys 0m0.168s
Testing with 5000 iterations...
5000 messages sent
Got Test Message 1000
Got Test Message 2000
Got Test Message 3000
Got Test Message 4000
5000 messages received
real 0m21.158s
user 0m18.349s
sys 0m1.296s
Testing with 10000 iterations...
10000 messages sent
Got Test Message 1000
Got Test Message 2000
Got Test Message 3000
Got Test Message 4000
Got Test Message 5000
Got Test Message 6000
Got Test Message 7000
Got Test Message 8000
Got Test Message 9000
10000 messages received
real 0m33.145s
user 0m29.194s
sys 0m2.120s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_test.rb
Type: application/x-ruby
Size: 795 bytes
Desc: not available
Url : http://lists.openamq.org/pipermail/openamq-dev/attachments/20080430/3db12bc4/attachment.bin
More information about the openamq-dev
mailing list