[openamq-dev] Fwd: Ruby QPID libraries

Carl Bourne cbourne at intellect.co.uk
Wed Apr 30 17:36:36 CEST 2008


Gordon,

Just ran your attached test script:

ruby newsend.rb ../amqp0-8.xml 2
newsend.rb:15: undefined method `body=' for #<Qpid::Content:0xb7b93270> (NoMethodError)
    from newsend.rb:14:in `times'
    from newsend.rb:14

Any pointers as to why it failed?

Carl


On 30/04/2008 14:55, "Gordon Sim" <gsim at redhat.com> wrote:

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 --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20080430/1ed5bbe8/attachment.htm 


More information about the openamq-dev mailing list