You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Gordon Sim <gs...@redhat.com> on 2012/07/09 11:57:51 UTC

qpid-send and qpid-receive utilities

You may be familiar[1] with the c++ test utilities qpid-send, 
qpid-receive and the qpid-cpp-benchmark script that harnesses them for 
simple performance testing.

Pavel Moravec has been good enough to contribute a python port of these 
utilities[2] and a modification (and rename) for qpid-cpp-benchmark[3] 
to allow the script to drive either version of the utilities (in any 
combination). (Thanks, Pavel!)

There are a couple of questions I wanted to ask before getting these 
contributions into the tree.

(i) Where should the python utilities live? I was thinking about 
creating a 'perf' directory under examples (alongside 'api) and putting 
them in there. Though they aren't restricted to perf testing, that would 
see to at least be obvious location).

(ii) Is everyone ok with renaming qpid-cpp-benchmark? (Just taking the 
'cpp' out of it, since it can now run against either python or c++ - the 
script itself is python). The script will otherwise be entirely backward 
compatible, so for those who do rely on the current name and can't 
change a  symbolic link should be fine.

(iii) Should we move the qpid-[cpp]-benchmark script out of the c++ 
tree? This would be logically more consistent I think, e.g. it could go 
under extras? (It could go under tools, but we may want to distinguish 
between management tools and test utilities).

Any thoughts or opinions?

--Gordon.

[1] For those who are not, they are essentially richer versions of the 
spout and drain examples. They are not restricted to performance 
testing, but do provide a simple way to explore the performance impact 
of different settings/choices.

[2] https://issues.apache.org/jira/browse/QPID-4115

[3] https://issues.apache.org/jira/browse/QPID-4116

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Gordon Sim <gs...@redhat.com>.
On 07/11/2012 03:21 PM, Ken Giusti wrote:
> Sorry for the late feedback...

Likewise!

> +1 to renaming qpid-cpp-benchmark to qpid-benchmark.   I think moving qpid-benchmark into qpid/tools makes sense - it is a 'tool', even if it is not exactly a management tool. :)
>
> Is the intent also to install qpid-benchmark as part of the tool install, like qpid-route?

If it went under tools, then yes.

> I'd be in favor of that, but that would require making the qpid-send/receive part of the tool install also.

I don't think it does. I think the script is just a driver for 
separately installable test executables. That said, I'm not entirely 
convinced tools is the right place. I still think extras may be better...

> Since qpid-send.cpp/qpid-receive.cpp live in qpid/cpp/src/tests, then should the python variants of those tools live in qpid/python/tests - for consistency?

The python client tests are actually under qpid/python/qpid/tests. I'm 
not sure that the python and c++ trees are similar enough that 
consistency between them is easy to define.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Gordon Sim <gs...@redhat.com>.
On 07/11/2012 03:23 PM, Andy Goldstein wrote:
> We use these apps all the time.  I'd prefer to see them all moved out of the tests directories and moved into someplace like tools.

My only objection there is the complications for automated tests and 
sensible installs. The c++ tests require the c++ client libraries. In my 
view it is simplest to keep the actual tests alongside the clients they 
are testing.

If anyone wants to submit/commit a patch for something fancier, that is 
fine by me though.

> It would also be nice to see them installed as part of the distribution.

They are installed by make install already (to libexec/qpid/tests on my 
system).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Rajith Attapattu <ra...@gmail.com>.
+1 for moving the benchmark script outside.
I managed to use the qpid-cpp-benchmark script with minor changes for
the corresponding JMS send/receive tools.

Regards,

Rajith

On Wed, Jul 11, 2012 at 10:23 AM, Andy Goldstein
<an...@redhat.com> wrote:
> We use these apps all the time.  I'd prefer to see them all moved out of the tests directories and moved into someplace like tools.  It would also be nice to see them installed as part of the distribution.
>
> Andy
>
> On Jul 11, 2012, at 10:21 AM, Ken Giusti wrote:
>
>> Sorry for the late feedback...
>>
>> +1 to renaming qpid-cpp-benchmark to qpid-benchmark.   I think moving qpid-benchmark into qpid/tools makes sense - it is a 'tool', even if it is not exactly a management tool. :)
>>
>> Is the intent also to install qpid-benchmark as part of the tool install, like qpid-route?  I'd be in favor of that, but that would require making the qpid-send/receive part of the tool install also.
>>
>> Since qpid-send.cpp/qpid-receive.cpp live in qpid/cpp/src/tests, then should the python variants of those tools live in qpid/python/tests - for consistency?
>>
>> -K
>>
>> ----- Original Message -----
>>> On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
>>>> On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
>>>>> (iii) Should we move the qpid-[cpp]-benchmark script out of the
>>>>> c++
>>>>> tree? This would be logically more consistent I think, e.g. it
>>>>> could
>>>>> go under extras? (It could go under tools, but we may want to
>>>>> distinguish between management tools and test utilities).
>>>>
>>>> +1 as well. We could collect all performance tests there rather
>>>> than
>>>> having them (potentially) peppered in different directories.
>>>
>>> The c++ build's automated tests rely on qpid-send and qpid-receive
>>> (but
>>> not on the qpid-cpp-benchmark script). I think leaving the c++
>>> versions
>>> in the c++ tree makes sense. Relocating the script that drives them
>>> (and/or the python versions) was what I was talking about here.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Alan Conway <ac...@redhat.com>.
On Wed, 2012-07-11 at 10:23 -0400, Andy Goldstein wrote:
> We use these apps all the time.  I'd prefer to see them all moved out of the tests directories and moved into someplace like tools.  It would also be nice to see them installed as part of the distribution.
> 
+1

> Andy
> 
> On Jul 11, 2012, at 10:21 AM, Ken Giusti wrote:
> 
> > Sorry for the late feedback...
> > 
> > +1 to renaming qpid-cpp-benchmark to qpid-benchmark.   I think moving qpid-benchmark into qpid/tools makes sense - it is a 'tool', even if it is not exactly a management tool. :)
> > 
> > Is the intent also to install qpid-benchmark as part of the tool install, like qpid-route?  I'd be in favor of that, but that would require making the qpid-send/receive part of the tool install also.   
> > 
> > Since qpid-send.cpp/qpid-receive.cpp live in qpid/cpp/src/tests, then should the python variants of those tools live in qpid/python/tests - for consistency?
> > 
> > -K
> > 
> > ----- Original Message -----
> >> On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
> >>> On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
> >>>> (iii) Should we move the qpid-[cpp]-benchmark script out of the
> >>>> c++
> >>>> tree? This would be logically more consistent I think, e.g. it
> >>>> could
> >>>> go under extras? (It could go under tools, but we may want to
> >>>> distinguish between management tools and test utilities).
> >>> 
> >>> +1 as well. We could collect all performance tests there rather
> >>> than
> >>> having them (potentially) peppered in different directories.
> >> 
> >> The c++ build's automated tests rely on qpid-send and qpid-receive
> >> (but
> >> not on the qpid-cpp-benchmark script). I think leaving the c++
> >> versions
> >> in the c++ tree makes sense. Relocating the script that drives them
> >> (and/or the python versions) was what I was talking about here.
> >> 
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> >> For additional commands, e-mail: users-help@qpid.apache.org
> >> 
> >> 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Andy Goldstein <an...@redhat.com>.
We use these apps all the time.  I'd prefer to see them all moved out of the tests directories and moved into someplace like tools.  It would also be nice to see them installed as part of the distribution.

Andy

On Jul 11, 2012, at 10:21 AM, Ken Giusti wrote:

> Sorry for the late feedback...
> 
> +1 to renaming qpid-cpp-benchmark to qpid-benchmark.   I think moving qpid-benchmark into qpid/tools makes sense - it is a 'tool', even if it is not exactly a management tool. :)
> 
> Is the intent also to install qpid-benchmark as part of the tool install, like qpid-route?  I'd be in favor of that, but that would require making the qpid-send/receive part of the tool install also.   
> 
> Since qpid-send.cpp/qpid-receive.cpp live in qpid/cpp/src/tests, then should the python variants of those tools live in qpid/python/tests - for consistency?
> 
> -K
> 
> ----- Original Message -----
>> On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
>>> On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
>>>> (iii) Should we move the qpid-[cpp]-benchmark script out of the
>>>> c++
>>>> tree? This would be logically more consistent I think, e.g. it
>>>> could
>>>> go under extras? (It could go under tools, but we may want to
>>>> distinguish between management tools and test utilities).
>>> 
>>> +1 as well. We could collect all performance tests there rather
>>> than
>>> having them (potentially) peppered in different directories.
>> 
>> The c++ build's automated tests rely on qpid-send and qpid-receive
>> (but
>> not on the qpid-cpp-benchmark script). I think leaving the c++
>> versions
>> in the c++ tree makes sense. Relocating the script that drives them
>> (and/or the python versions) was what I was talking about here.
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Ken Giusti <kg...@redhat.com>.
Sorry for the late feedback...

+1 to renaming qpid-cpp-benchmark to qpid-benchmark.   I think moving qpid-benchmark into qpid/tools makes sense - it is a 'tool', even if it is not exactly a management tool. :)

Is the intent also to install qpid-benchmark as part of the tool install, like qpid-route?  I'd be in favor of that, but that would require making the qpid-send/receive part of the tool install also.   

Since qpid-send.cpp/qpid-receive.cpp live in qpid/cpp/src/tests, then should the python variants of those tools live in qpid/python/tests - for consistency?

-K

----- Original Message -----
> On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
> > On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
> >> (iii) Should we move the qpid-[cpp]-benchmark script out of the
> >> c++
> >> tree? This would be logically more consistent I think, e.g. it
> >> could
> >> go under extras? (It could go under tools, but we may want to
> >> distinguish between management tools and test utilities).
> >
> > +1 as well. We could collect all performance tests there rather
> > than
> > having them (potentially) peppered in different directories.
> 
> The c++ build's automated tests rely on qpid-send and qpid-receive
> (but
> not on the qpid-cpp-benchmark script). I think leaving the c++
> versions
> in the c++ tree makes sense. Relocating the script that drives them
> (and/or the python versions) was what I was talking about here.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Gordon Sim <gs...@redhat.com>.
On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
> On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
>> (iii) Should we move the qpid-[cpp]-benchmark script out of the c++
>> tree? This would be logically more consistent I think, e.g. it could
>> go under extras? (It could go under tools, but we may want to
>> distinguish between management tools and test utilities).
>
> +1 as well. We could collect all performance tests there rather than
> having them (potentially) peppered in different directories.

The c++ build's automated tests rely on qpid-send and qpid-receive (but 
not on the qpid-cpp-benchmark script). I think leaving the c++ versions 
in the c++ tree makes sense. Relocating the script that drives them 
(and/or the python versions) was what I was talking about here.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by Gordon Sim <gs...@redhat.com>.
On 07/09/2012 02:58 PM, Darryl L. Pierce wrote:
> On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
>> You may be familiar[1] with the c++ test utilities qpid-send,
>> qpid-receive and the qpid-cpp-benchmark script that harnesses them
>> for simple performance testing.
>>
>> Pavel Moravec has been good enough to contribute a python port of
>> these utilities[2] and a modification (and rename) for
>> qpid-cpp-benchmark[3] to allow the script to drive either version of
>> the utilities (in any combination). (Thanks, Pavel!)
>>
>> There are a couple of questions I wanted to ask before getting these
>> contributions into the tree.
>>
>> (i) Where should the python utilities live? I was thinking about
>> creating a 'perf' directory under examples (alongside 'api) and
>> putting them in there. Though they aren't restricted to perf
>> testing, that would see to at least be obvious location).
>
> If they're performance tests, why place them under examples? I would
> putting them under a sibling directory named util would be more
> logical, maybe util/perf.

They aren't simply performance tests. They aren't really intended as 
examples either though, but general testing utilities.

My only reason for adding them under examples was that it seemed like 
the closest existing area for code using the messaging API. I'd be fine 
with adding a new directory for them however.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-send and qpid-receive utilities

Posted by "Darryl L. Pierce" <dp...@redhat.com>.
On Mon, Jul 09, 2012 at 10:57:51AM +0100, Gordon Sim wrote:
> You may be familiar[1] with the c++ test utilities qpid-send,
> qpid-receive and the qpid-cpp-benchmark script that harnesses them
> for simple performance testing.
> 
> Pavel Moravec has been good enough to contribute a python port of
> these utilities[2] and a modification (and rename) for
> qpid-cpp-benchmark[3] to allow the script to drive either version of
> the utilities (in any combination). (Thanks, Pavel!)
> 
> There are a couple of questions I wanted to ask before getting these
> contributions into the tree.
> 
> (i) Where should the python utilities live? I was thinking about
> creating a 'perf' directory under examples (alongside 'api) and
> putting them in there. Though they aren't restricted to perf
> testing, that would see to at least be obvious location).

If they're performance tests, why place them under examples? I would
putting them under a sibling directory named util would be more
logical, maybe util/perf.

> 
> (ii) Is everyone ok with renaming qpid-cpp-benchmark? (Just taking
> the 'cpp' out of it, since it can now run against either python or
> c++ - the script itself is python). The script will otherwise be
> entirely backward compatible, so for those who do rely on the
> current name and can't change a  symbolic link should be fine.

+1 I don't think we should have any apps include an implementation
detail like the language in the name.

> (iii) Should we move the qpid-[cpp]-benchmark script out of the c++
> tree? This would be logically more consistent I think, e.g. it could
> go under extras? (It could go under tools, but we may want to
> distinguish between management tools and test utilities).

+1 as well. We could collect all performance tests there rather than
having them (potentially) peppered in different directories.

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/