You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@river.apache.org by Patricia Shanahan <pa...@acm.org> on 2011/02/22 01:37:07 UTC
Benchmark organization
I want to get going on some performance tuning, but believe it is best
guided and controlled by well-organized benchmarks. To that end, I
propose adding a place for benchmarks to the River structure.
We will need several categories of benchmark code:
1. System level benchmarks. These benchmarks measure some public
features, such as the outrigger JavaSpace implementation. For these, I
think a similar structure to QA may be best. However, I need to
understand how the QA harness links together clients and servers, and
whether it has any special performance implications. We may need, for
example, to add network delays to properly score implementations that
involve different amounts of communication.
2. Internal benchmarks. These are more like unit tests, and need to
mirror the main src package structure so that they can access non-public
code.
3. Experimental code. In some situations it is useful to do run-offs
between two or more implementations of the same class. We cannot have
two classes with the same fully qualified name at the same time, so this
type of test will need special copies of the classes with modified class
names or package names. In addition to actually doing the tests and
picking the implementation to go in the trunk, it is useful to keep
discarded candidates around. One of them may turn out to be a better
basis in a future performance campaign.
Thoughts? Alternatives? Comments?
Patricia
Re: Benchmark organization
Posted by MICHAEL MCGRADY <mm...@topiatechnology.com>.
Does anyone have access to NetSim for Apache or for River? NetSim and like applications are all that.
MG
On Feb 22, 2011, at 1:32 PM, Gregg Wonderly wrote:
> On 2/22/2011 12:05 PM, Patricia Shanahan wrote:
>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>>> Patricia Shanahan wrote:
>>>> I want to get going on some performance tuning, but believe it is best
>>>> guided and controlled by well-organized benchmarks. To that end, I
>>>> propose adding a place for benchmarks to the River structure.
>>>>
>>>> We will need several categories of benchmark code:
>>>>
>>>> 1. System level benchmarks. These benchmarks measure some public
>>>> features, such as the outrigger JavaSpace implementation. For these, I
>>>> think a similar structure to QA may be best. However, I need to
>>>> understand how the QA harness links together clients and servers, and
>>>> whether it has any special performance implications. We may need, for
>>>> example, to add network delays to properly score implementations that
>>>> involve different amounts of communication.
>>>>
>>>> 2. Internal benchmarks. These are more like unit tests, and need to
>>>> mirror the main src package structure so that they can access
>>>> non-public code.
>>>>
>>>> 3. Experimental code. In some situations it is useful to do run-offs
>>>> between two or more implementations of the same class. We cannot have
>>>> two classes with the same fully qualified name at the same time, so
>>>> this type of test will need special copies of the classes with
>>>> modified class names or package names. In addition to actually doing
>>>> the tests and picking the implementation to go in the trunk, it is
>>>> useful to keep discarded candidates around. One of them may turn out
>>>> to be a better basis in a future performance campaign.
>>>>
>>>> Thoughts? Alternatives? Comments?
>>>>
>>>> Patricia
>>>>
>>> +1 to 1 and 2, not sure how to handle 3 - Peter.
>>>
>>> I wonder if we could have a location for long term experimental code in
>>> skunk?
>>>
>>> If the experiment into a modular build is successful, (my apologies for
>>> my recent lack of time), we could simply create an experimental module
>>> and compare it against the original.
>>>
>>
>> We won't always be able to integrate an experiment with its proper package until
>> after the experiment has been done.
>>
>> For example, my recent FastList changes involved a change in how a FastList user
>> scans the list, from one based on list.head() and node.next() to making FastList
>> Iterable. I did not do the changes to the rest of outrigger to compile with the
>> new interface until after I had assured myself that at least one Iterable
>> implementation was as fast as the old implementation.
>>
>> I'm also dubious about doing performance comparisons with different environments
>> for the code being compared. My ideal is a program that can cycle among
>> implementations in a single run. Next best is a program that measures a run-time
>> selected implementation, but with everything except the code under test
>> unchanged. Everything involved must be built with the same compiler version and
>> parameters, so I strongly prefer a single build.
>>
>> I'm not sure how all these issues would be handled in the modular build
>> environment.
>
> One thing you might do is use interfaces to bridge the gap. In particular, for a class, you can move the class to a newly named class, and make the old class name into an interface which is then implemented by the new test/experiment class. This won't work across the board, so you might then have to use an abstract class if there is a variable reference or other implementation detail that requires a class instead of an interface.
>
> Just some thoughts.
>
> Gregg
Michael McGrady
Chief Architect
Topia Technology, Inc.
Cel 1.253.720.3365
Work 1.253.572.9712 extension 2037
mmcgrady@topiatechnology.com
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
On 2/22/2011 12:05 PM, Patricia Shanahan wrote:
> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>> Patricia Shanahan wrote:
>>> I want to get going on some performance tuning, but believe it is best
>>> guided and controlled by well-organized benchmarks. To that end, I
>>> propose adding a place for benchmarks to the River structure.
>>>
>>> We will need several categories of benchmark code:
>>>
>>> 1. System level benchmarks. These benchmarks measure some public
>>> features, such as the outrigger JavaSpace implementation. For these, I
>>> think a similar structure to QA may be best. However, I need to
>>> understand how the QA harness links together clients and servers, and
>>> whether it has any special performance implications. We may need, for
>>> example, to add network delays to properly score implementations that
>>> involve different amounts of communication.
>>>
>>> 2. Internal benchmarks. These are more like unit tests, and need to
>>> mirror the main src package structure so that they can access
>>> non-public code.
>>>
>>> 3. Experimental code. In some situations it is useful to do run-offs
>>> between two or more implementations of the same class. We cannot have
>>> two classes with the same fully qualified name at the same time, so
>>> this type of test will need special copies of the classes with
>>> modified class names or package names. In addition to actually doing
>>> the tests and picking the implementation to go in the trunk, it is
>>> useful to keep discarded candidates around. One of them may turn out
>>> to be a better basis in a future performance campaign.
>>>
>>> Thoughts? Alternatives? Comments?
>>>
>>> Patricia
>>>
>> +1 to 1 and 2, not sure how to handle 3 - Peter.
>>
>> I wonder if we could have a location for long term experimental code in
>> skunk?
>>
>> If the experiment into a modular build is successful, (my apologies for
>> my recent lack of time), we could simply create an experimental module
>> and compare it against the original.
>>
>
> We won't always be able to integrate an experiment with its proper package until
> after the experiment has been done.
>
> For example, my recent FastList changes involved a change in how a FastList user
> scans the list, from one based on list.head() and node.next() to making FastList
> Iterable. I did not do the changes to the rest of outrigger to compile with the
> new interface until after I had assured myself that at least one Iterable
> implementation was as fast as the old implementation.
>
> I'm also dubious about doing performance comparisons with different environments
> for the code being compared. My ideal is a program that can cycle among
> implementations in a single run. Next best is a program that measures a run-time
> selected implementation, but with everything except the code under test
> unchanged. Everything involved must be built with the same compiler version and
> parameters, so I strongly prefer a single build.
>
> I'm not sure how all these issues would be handled in the modular build
> environment.
One thing you might do is use interfaces to bridge the gap. In particular, for
a class, you can move the class to a newly named class, and make the old class
name into an interface which is then implemented by the new test/experiment
class. This won't work across the board, so you might then have to use an
abstract class if there is a variable reference or other implementation detail
that requires a class instead of an interface.
Just some thoughts.
Gregg
Re: Benchmark organization
Posted by Brian Murphy <bt...@gmail.com>.
On Tue, Feb 22, 2011 at 1:05 PM, Patricia Shanahan <pa...@acm.org> wrote:
We won't always be able to integrate an experiment with its proper package
> until after the experiment has been done.
>
> For example, my recent FastList changes involved a change in how a FastList
> user scans the list, from one based on list.head() and node.next() to making
> FastList Iterable. I did not do the changes to the rest of outrigger to
> compile with the new interface until after I had assured myself that at
> least one Iterable implementation was as fast as the old implementation.
>
> I'm also dubious about doing performance comparisons with different
> environments for the code being compared. My ideal is a program that can
> cycle among implementations in a single run. Next best is a program that
> measures a run-time selected implementation, but with everything except the
> code under test unchanged. Everything involved must be built with the same
> compiler version and parameters, so I strongly prefer a single build.
>
> I'm not sure how all these issues would be handled in the modular build
> environment.
I'm also not sure how a modular build environment would deal with
this. For what it's worth though, given that one can specify real java
objects in the configuration, you might consider defining an interface
for the desired utility that your different implementations will implement;
and then have your test/benchmark retrieve from the configuration, the
particular implementation(s) you wish to use.
With respect to Outrigger's use of FastList, you could also eventually
modify Outrigger to retrieve a FastList implementation from its
configuration
(or use a default if no configuration exists, or no FastList entry is
specified
in the configuration), rather than instantiating the utility class as it
does now.
If you look at some of the config files provided with the hello example,
you'll see examples of things like a discovery manager or a service
discovery manager being configured. Configuring a FastList implementation
can be done in a similar fashion; for example,
<...>/com/sun/jini/example/hello/config/client.config
<...>/com/sun/jini/example/hello/config/jeri-server.config
It's just a thought, though. If I've misunderstood what you want to
accomplish, I apologize.
Brian
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
Cool, so I'm thinking we probably have some stuff that can be done component
by component and some that can't meaningfully.
I imagine for example we could do conformance on a per service basis but
there's other things that also need conformance testing (generic lookup and
discovery) and I reckon realistically that's one we run across everything
all in one go ultimately.
I think also we need to talk about which bits are asap and which are
long-running....
On 28 February 2011 13:16, Peter <ji...@zeus.net.au> wrote:
> Good response, lets follow it through: What are the test scenrios? When do
> we run them and under what circumstances?
>
> Unit test minor changes, perform often during modification, try to catch
> obvious bugs asap.
> Then Simulate a network environment and test integration, but limit it to
> relevant tests.
> Conformance testing - have we broken something, the law of unintended
> consequences.
> Regression test, did we fall for an old mistake.
> Concurrency test, have our changes brought other bugs to the surface.
> The implementation looks good, test everything, has anything broken, if so
> why?
> Performance test, what impact have the changes had on performance? Before
> and after.
> Test deployment, in a network environment, multiple machines.
>
> Rinse, lather, repeat from beginning at any stage.
>
> Then like Patricia suggests, record alternative implementations, perhaps
> with reasons for rejection / acceptance.
>
> Thoughts / refinement?
>
> ----- Original message -----
> > K, so....
> >
> > On 28 February 2011 11:27, Peter <ji...@zeus.net.au> wrote:
> >
> > > > I'm not yet ready to buy modules as being a decent divide point for
> > > tests.
> > > > Tests are typically associated with packages, not modules IMHO.
> > > >
> > > > Feels like an impedance mismatch or maybe I'm not liking how much the
> > > > build/deploy/package mechanism is a factor in a discussion about
> testing.
> > >
> > >
> > > Currently we have:
> > >
> > > Unit tests: junit
> > > Integration tests: qa test harness.
> > > Jini platform compliance tests: qa test harness
> > > Regression tests: jtreg
> > >
> > > On top of that we've got the discovery and join test kit.
> > >
> > > We're very lucky to have such a vast array of tests.
> > >
> > >
> > We are indeed.
> >
> >
> > > It would be nice if I could just work on a small part of what is River,
> > > improve it using test driven development by only running the tests
> needed.
> > >
> >
> > Yep - that's a requirement for sure. But the tests you run for that
> probably
> > don't include all the tests available. Probably just unit and service
> level
> > or similar. Probably not performance, maybe some compliance stuff etc.
> >
> >
> > >
> > > It seems that you must first build before you can test, sometimes it is
> > > wise to find the right questions before looking for the answer.
> > >
> > >
> > Well, yes you must first build but the tests you run aren't always
> directly
> > connected to that build. I might:
> >
> > (1) Be just building some module which maps closely to some service and
> thus
> > want to run service-specific tests.
> > (2) Be running some set of performance tests against nitty-gritty
> > implementation details within a single module.
> > (3) Be running some global set of tests across a number of services, only
> > one of which I've changed. Sounds strange right? Nope, if I'm halfway
> > through making a global change and I've updated some of the services, I
> want
> > to see how I'm doing and if I broke anything non obvious.
> >
> >
> >
> > > We don't build junit or jtreg every time we test, why can't the qa
> harness
> > > be separate too?
> > >
> > >
> > It can, but separation is merely a small element of the overall problem.
> > Some tests span, some tests run against APIs, some run against
> nitty-gritty
> > implementation bits. In essence, tests don't always nicely separate with
> > modules IMHO, sometimes they do, sometimes not.
> >
> >
> > > Why can't a component such as Outrigger be kept separate from the jini
> > > platform build? Why can't it have the tests that must be run to test
> it be
> > > known in advance, or compiled in advance for that matter?
> > >
> > > Why isn't it easy to determine the tests that need to be run to test a
> > > component?
> > >
> >
> > We're not always talking a component IMHO. Or at least, not a component
> that
> > is relevant at the build system level and herein lies the problem.
> >
> >
> > >
> > > Is there a better solution?
> > >
> > >
> > Dunno, but I'm thinking a clean separation of build/module/packaging from
> > test might be the way to go. Testing lifecycle and the things it touches
> are
> > unrelated to modules and such the build system yields and we want to
> account
> > for that.
> >
> >
> > > If not I'll have to face facts: my development windows of opportunity
> don't
> > > allow enough time to adequately test changes. Maybe modularity is not
> the
> > > answer, maybe I'm grasping at straws. I don't know, these things take
> time
> > > to figure out.
> > >
> > > Can anyone else see the problems?
> > >
> > > Anyone here know the right questions?
> > >
> >
> > What are all our testing scenarios and their associated lifecycles (when
> are
> > they run and against what)?
> >
> >
> > >
> > > With the right questions, answers are easier to find.
>
>
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
Good response, lets follow it through: What are the test scenrios? When do we run them and under what circumstances?
Unit test minor changes, perform often during modification, try to catch obvious bugs asap.
Then Simulate a network environment and test integration, but limit it to relevant tests.
Conformance testing - have we broken something, the law of unintended consequences.
Regression test, did we fall for an old mistake.
Concurrency test, have our changes brought other bugs to the surface.
The implementation looks good, test everything, has anything broken, if so why?
Performance test, what impact have the changes had on performance? Before and after.
Test deployment, in a network environment, multiple machines.
Rinse, lather, repeat from beginning at any stage.
Then like Patricia suggests, record alternative implementations, perhaps with reasons for rejection / acceptance.
Thoughts / refinement?
----- Original message -----
> K, so....
>
> On 28 February 2011 11:27, Peter <ji...@zeus.net.au> wrote:
>
> > > I'm not yet ready to buy modules as being a decent divide point for
> > tests.
> > > Tests are typically associated with packages, not modules IMHO.
> > >
> > > Feels like an impedance mismatch or maybe I'm not liking how much the
> > > build/deploy/package mechanism is a factor in a discussion about testing.
> >
> >
> > Currently we have:
> >
> > Unit tests: junit
> > Integration tests: qa test harness.
> > Jini platform compliance tests: qa test harness
> > Regression tests: jtreg
> >
> > On top of that we've got the discovery and join test kit.
> >
> > We're very lucky to have such a vast array of tests.
> >
> >
> We are indeed.
>
>
> > It would be nice if I could just work on a small part of what is River,
> > improve it using test driven development by only running the tests needed.
> >
>
> Yep - that's a requirement for sure. But the tests you run for that probably
> don't include all the tests available. Probably just unit and service level
> or similar. Probably not performance, maybe some compliance stuff etc.
>
>
> >
> > It seems that you must first build before you can test, sometimes it is
> > wise to find the right questions before looking for the answer.
> >
> >
> Well, yes you must first build but the tests you run aren't always directly
> connected to that build. I might:
>
> (1) Be just building some module which maps closely to some service and thus
> want to run service-specific tests.
> (2) Be running some set of performance tests against nitty-gritty
> implementation details within a single module.
> (3) Be running some global set of tests across a number of services, only
> one of which I've changed. Sounds strange right? Nope, if I'm halfway
> through making a global change and I've updated some of the services, I want
> to see how I'm doing and if I broke anything non obvious.
>
>
>
> > We don't build junit or jtreg every time we test, why can't the qa harness
> > be separate too?
> >
> >
> It can, but separation is merely a small element of the overall problem.
> Some tests span, some tests run against APIs, some run against nitty-gritty
> implementation bits. In essence, tests don't always nicely separate with
> modules IMHO, sometimes they do, sometimes not.
>
>
> > Why can't a component such as Outrigger be kept separate from the jini
> > platform build? Why can't it have the tests that must be run to test it be
> > known in advance, or compiled in advance for that matter?
> >
> > Why isn't it easy to determine the tests that need to be run to test a
> > component?
> >
>
> We're not always talking a component IMHO. Or at least, not a component that
> is relevant at the build system level and herein lies the problem.
>
>
> >
> > Is there a better solution?
> >
> >
> Dunno, but I'm thinking a clean separation of build/module/packaging from
> test might be the way to go. Testing lifecycle and the things it touches are
> unrelated to modules and such the build system yields and we want to account
> for that.
>
>
> > If not I'll have to face facts: my development windows of opportunity don't
> > allow enough time to adequately test changes. Maybe modularity is not the
> > answer, maybe I'm grasping at straws. I don't know, these things take time
> > to figure out.
> >
> > Can anyone else see the problems?
> >
> > Anyone here know the right questions?
> >
>
> What are all our testing scenarios and their associated lifecycles (when are
> they run and against what)?
>
>
> >
> > With the right questions, answers are easier to find.
Re: Benchmark organization
Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 28-02-11 13:13, Dan Creswell wrote:
>>
>> Is there a better solution?
>>
>>
> Dunno, but I'm thinking a clean separation of build/module/packaging from
> test might be the way to go. Testing lifecycle and the things it touches are
> unrelated to modules and such the build system yields and we want to account
> for that.
It depends on what you want to achieve. A benchmark will be long
running, so why bother about a long compile&package.
When you want a rapid profiling session, we are talking about dependency
based recompile, and skipping packaging in most cases. This profiling
will happen in a IDE, this is custom for the developer, so no need to
change the build system.
Are there cases i missed, proving the case of modularizing?
Gr. Sim
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
K, so....
On 28 February 2011 11:27, Peter <ji...@zeus.net.au> wrote:
> > I'm not yet ready to buy modules as being a decent divide point for
> tests.
> > Tests are typically associated with packages, not modules IMHO.
> >
> > Feels like an impedance mismatch or maybe I'm not liking how much the
> > build/deploy/package mechanism is a factor in a discussion about testing.
>
>
> Currently we have:
>
> Unit tests: junit
> Integration tests: qa test harness.
> Jini platform compliance tests: qa test harness
> Regression tests: jtreg
>
> On top of that we've got the discovery and join test kit.
>
> We're very lucky to have such a vast array of tests.
>
>
We are indeed.
> It would be nice if I could just work on a small part of what is River,
> improve it using test driven development by only running the tests needed.
>
Yep - that's a requirement for sure. But the tests you run for that probably
don't include all the tests available. Probably just unit and service level
or similar. Probably not performance, maybe some compliance stuff etc.
>
> It seems that you must first build before you can test, sometimes it is
> wise to find the right questions before looking for the answer.
>
>
Well, yes you must first build but the tests you run aren't always directly
connected to that build. I might:
(1) Be just building some module which maps closely to some service and thus
want to run service-specific tests.
(2) Be running some set of performance tests against nitty-gritty
implementation details within a single module.
(3) Be running some global set of tests across a number of services, only
one of which I've changed. Sounds strange right? Nope, if I'm halfway
through making a global change and I've updated some of the services, I want
to see how I'm doing and if I broke anything non obvious.
> We don't build junit or jtreg every time we test, why can't the qa harness
> be separate too?
>
>
It can, but separation is merely a small element of the overall problem.
Some tests span, some tests run against APIs, some run against nitty-gritty
implementation bits. In essence, tests don't always nicely separate with
modules IMHO, sometimes they do, sometimes not.
> Why can't a component such as Outrigger be kept separate from the jini
> platform build? Why can't it have the tests that must be run to test it be
> known in advance, or compiled in advance for that matter?
>
> Why isn't it easy to determine the tests that need to be run to test a
> component?
>
We're not always talking a component IMHO. Or at least, not a component that
is relevant at the build system level and herein lies the problem.
>
> Is there a better solution?
>
>
Dunno, but I'm thinking a clean separation of build/module/packaging from
test might be the way to go. Testing lifecycle and the things it touches are
unrelated to modules and such the build system yields and we want to account
for that.
> If not I'll have to face facts: my development windows of opportunity don't
> allow enough time to adequately test changes. Maybe modularity is not the
> answer, maybe I'm grasping at straws. I don't know, these things take time
> to figure out.
>
> Can anyone else see the problems?
>
> Anyone here know the right questions?
>
What are all our testing scenarios and their associated lifecycles (when are
they run and against what)?
>
> With the right questions, answers are easier to find.
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
> I'm not yet ready to buy modules as being a decent divide point for tests.
> Tests are typically associated with packages, not modules IMHO.
>
> Feels like an impedance mismatch or maybe I'm not liking how much the
> build/deploy/package mechanism is a factor in a discussion about testing.
Currently we have:
Unit tests: junit
Integration tests: qa test harness.
Jini platform compliance tests: qa test harness
Regression tests: jtreg
On top of that we've got the discovery and join test kit.
We're very lucky to have such a vast array of tests.
It would be nice if I could just work on a small part of what is River, improve it using test driven development by only running the tests needed.
It seems that you must first build before you can test, sometimes it is wise to find the right questions before looking for the answer.
We don't build junit or jtreg every time we test, why can't the qa harness be separate too?
Why can't a component such as Outrigger be kept separate from the jini platform build? Why can't it have the tests that must be run to test it be known in advance, or compiled in advance for that matter?
Why isn't it easy to determine the tests that need to be run to test a component?
Is there a better solution?
If not I'll have to face facts: my development windows of opportunity don't allow enough time to adequately test changes. Maybe modularity is not the answer, maybe I'm grasping at straws. I don't know, these things take time to figure out.
Can anyone else see the problems?
Anyone here know the right questions?
With the right questions, answers are easier to find.
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
On 28 February 2011 09:36, Peter <ji...@zeus.net.au> wrote:
> If the test uses only the public api then it would make sense to keep the
> test separate from the module, eg a jini platform compliance test, or in
> this case a javaspace performance test, perhaps maintained in its own module
> with other javaspace tests, it should be external to the outrigger module,
> so it can be tested against both implementations.
>
> Unit tests or performance tests that are implementation specific should
> remain with the module.
>
>
Does that mean they ship as part of the deployment .jar?
> We have a number of tests that test either the platform or the service for
> compliance. This includes the join and discovery compliance tests that are
> currently unmaintained. These should be mainained separately from other
> modules.
>
> So to sum up, you'd first develop a performance test using the qa harness
> module as a lib dependency, this performance test could be bundled with
> other performance tests for javaspace, these would be run without
> recompillation, against the new module implementation.
>
> The mechanics of implemeting that have not been done, so this is
> hypothetical. I wonder what thoughts others might have about how it might
> be implemented / structured?
>
>
I'm not yet ready to buy modules as being a decent divide point for tests.
Tests are typically associated with packages, not modules IMHO.
Feels like an impedance mismatch or maybe I'm not liking how much the
build/deploy/package mechanism is a factor in a discussion about testing.
> Peter.
>
> >
> > The issue I'm trying to understand is not the release of production
> > code, but the issue of how to organize benchmarks that need to be run in
> > order to decide whether to make a change. Depending on the benchmark
> > result, the change may not happen at all.
> >
> > Patricia
>
>
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
If the test uses only the public api then it would make sense to keep the test separate from the module, eg a jini platform compliance test, or in this case a javaspace performance test, perhaps maintained in its own module with other javaspace tests, it should be external to the outrigger module, so it can be tested against both implementations.
Unit tests or performance tests that are implementation specific should remain with the module.
We have a number of tests that test either the platform or the service for compliance. This includes the join and discovery compliance tests that are currently unmaintained. These should be mainained separately from other modules.
So to sum up, you'd first develop a performance test using the qa harness module as a lib dependency, this performance test could be bundled with other performance tests for javaspace, these would be run without recompillation, against the new module implementation.
The mechanics of implemeting that have not been done, so this is hypothetical. I wonder what thoughts others might have about how it might be implemented / structured?
Peter.
>
> The issue I'm trying to understand is not the release of production
> code, but the issue of how to organize benchmarks that need to be run in
> order to decide whether to make a change. Depending on the benchmark
> result, the change may not happen at all.
>
> Patricia
Re: Benchmark organization
Posted by Jason Pratt <jp...@gmail.com>.
@dan a little of both, its been a while since i was into jini. been off on
the osgi front for too long and not very impressed with it. so i am coming
home to jini/river and want to get going on it.
i think if we can get everything tuned up for maven we can handle both our
benchmarking issues and day2day unit testing
jason
On Mon, Feb 28, 2011 at 9:41 PM, Dan Creswell <da...@gmail.com>wrote:
> Can you explain what would we do with maven?
>
> I can't tell if you're attempting to encourage work on another item or
> trying to solve the benchmark challenge.
>
>
> On 28 February 2011 07:31, Jason Pratt <jp...@gmail.com> wrote:
>
>> any chance of getting maven into this?
>>
>> jason
>>
>>
>>
>> On Mon, Feb 28, 2011 at 8:29 PM, Patricia Shanahan <pa...@acm.org> wrote:
>>
>> > On 2/27/2011 11:19 PM, Peter Firmstone wrote:
>> >
>> >> Patricia Shanahan wrote:
>> >>
>> >>> On 2/23/2011 6:26 PM, Peter Firmstone wrote:
>> >>>
>> >>>> Patricia Shanahan wrote:
>> >>>>
>> >>>>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>> >>>>>
>> >>>>>> Patricia Shanahan wrote:
>> >>>>>>
>> >>>>>>> I want to get going on some performance tuning, but believe it is
>> >>>>>>> best
>> >>>>>>> guided and controlled by well-organized benchmarks. To that end, I
>> >>>>>>> propose adding a place for benchmarks to the River structure.
>> >>>>>>>
>> >>>>>> ...
>> >>>
>> >>>> Each module would be considered a separate build, the tests would
>> >>>> include unit and integration tests. Other modules yours depends on
>> are
>> >>>> like libraries, you wouldn't be concerned with their implementation.
>> The
>> >>>> existing qa harness would be a separate library module (similar to
>> how
>> >>>> junit or jtreg is a separate component). Jini Platform tests would be
>> >>>> separated from implementation tests. (We also need to consider how to
>> >>>> best utilise the discovery and join test kit.)
>> >>>>
>> >>>> If the changes are localised to your module, meaning the public API
>> >>>> doesn't change, which is like an independent build, you could just
>> >>>> duplicate the original module, modify it, then run performance tests
>> >>>> against both the new and original modules, your new module name would
>> >>>> have a different version number to reflect the experimental changes.
>> >>>>
>> >>>> If the changes to involve changing public API in the module, in a non
>> >>>> backward compatible manner, and this API is not part of net.jini.*
>> >>>> (which must remain backward compatible), then other modules that are
>> >>>> dependent can be migrated to the new module over time, proxy's that
>> >>>> utilise the new module will need to use preferred class loading to
>> >>>> ensure the correct classes are loaded. The module version number
>> would
>> >>>> be incremented to show it is not backward compatible.
>> >>>>
>> >>>
>> >>> How would you propose handling a case like outrigger.FastList?
>> >>>
>> >>> It is package access only, so changing its interface to the rest of
>> >>> outrigger did not affect any public API. Several classes needed to be
>> >>> changed to handle the interface change.
>> >>>
>> >>> Patricia
>> >>>
>> >>>
>> >>> Well each module can have it's own release schedule, in this case
>> you'd
>> >> develop the Outrigger module, integration test it, increment its
>> version
>> >> and release it. The public API hasn't changed, users can update their
>> >> Outrigger servers and add the new proxy jar archive to their codebase
>> >> servers, this will allow Outrigger to evolve at a faster pace than
>> >> River's Jini Platform. This makes our release process much faster, with
>> >> more updates more often.
>> >>
>> >> It's a lot of work to release the whole platform before users can
>> >> download and test the new Outrigger, so having incremental module
>> >> releases makes a lot of sense.
>> >>
>> >> Each module can function in the same environment coexisting with
>> >> previous module versions, since it is only an implementation of
>> >> Javaspace, implementation classes will exist in separate ClassLoaders
>> >> even in the same JVM.
>> >>
>> >
>> > The issue I'm trying to understand is not the release of production
>> code,
>> > but the issue of how to organize benchmarks that need to be run in order
>> to
>> > decide whether to make a change. Depending on the benchmark result, the
>> > change may not happen at all.
>> >
>> > Patricia
>> >
>>
>
>
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
Can you explain what would we do with maven?
I can't tell if you're attempting to encourage work on another item or
trying to solve the benchmark challenge.
On 28 February 2011 07:31, Jason Pratt <jp...@gmail.com> wrote:
> any chance of getting maven into this?
>
> jason
>
>
>
> On Mon, Feb 28, 2011 at 8:29 PM, Patricia Shanahan <pa...@acm.org> wrote:
>
> > On 2/27/2011 11:19 PM, Peter Firmstone wrote:
> >
> >> Patricia Shanahan wrote:
> >>
> >>> On 2/23/2011 6:26 PM, Peter Firmstone wrote:
> >>>
> >>>> Patricia Shanahan wrote:
> >>>>
> >>>>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
> >>>>>
> >>>>>> Patricia Shanahan wrote:
> >>>>>>
> >>>>>>> I want to get going on some performance tuning, but believe it is
> >>>>>>> best
> >>>>>>> guided and controlled by well-organized benchmarks. To that end, I
> >>>>>>> propose adding a place for benchmarks to the River structure.
> >>>>>>>
> >>>>>> ...
> >>>
> >>>> Each module would be considered a separate build, the tests would
> >>>> include unit and integration tests. Other modules yours depends on are
> >>>> like libraries, you wouldn't be concerned with their implementation.
> The
> >>>> existing qa harness would be a separate library module (similar to how
> >>>> junit or jtreg is a separate component). Jini Platform tests would be
> >>>> separated from implementation tests. (We also need to consider how to
> >>>> best utilise the discovery and join test kit.)
> >>>>
> >>>> If the changes are localised to your module, meaning the public API
> >>>> doesn't change, which is like an independent build, you could just
> >>>> duplicate the original module, modify it, then run performance tests
> >>>> against both the new and original modules, your new module name would
> >>>> have a different version number to reflect the experimental changes.
> >>>>
> >>>> If the changes to involve changing public API in the module, in a non
> >>>> backward compatible manner, and this API is not part of net.jini.*
> >>>> (which must remain backward compatible), then other modules that are
> >>>> dependent can be migrated to the new module over time, proxy's that
> >>>> utilise the new module will need to use preferred class loading to
> >>>> ensure the correct classes are loaded. The module version number would
> >>>> be incremented to show it is not backward compatible.
> >>>>
> >>>
> >>> How would you propose handling a case like outrigger.FastList?
> >>>
> >>> It is package access only, so changing its interface to the rest of
> >>> outrigger did not affect any public API. Several classes needed to be
> >>> changed to handle the interface change.
> >>>
> >>> Patricia
> >>>
> >>>
> >>> Well each module can have it's own release schedule, in this case
> you'd
> >> develop the Outrigger module, integration test it, increment its version
> >> and release it. The public API hasn't changed, users can update their
> >> Outrigger servers and add the new proxy jar archive to their codebase
> >> servers, this will allow Outrigger to evolve at a faster pace than
> >> River's Jini Platform. This makes our release process much faster, with
> >> more updates more often.
> >>
> >> It's a lot of work to release the whole platform before users can
> >> download and test the new Outrigger, so having incremental module
> >> releases makes a lot of sense.
> >>
> >> Each module can function in the same environment coexisting with
> >> previous module versions, since it is only an implementation of
> >> Javaspace, implementation classes will exist in separate ClassLoaders
> >> even in the same JVM.
> >>
> >
> > The issue I'm trying to understand is not the release of production code,
> > but the issue of how to organize benchmarks that need to be run in order
> to
> > decide whether to make a change. Depending on the benchmark result, the
> > change may not happen at all.
> >
> > Patricia
> >
>
Re: Benchmark organization
Posted by Jason Pratt <jp...@gmail.com>.
any chance of getting maven into this?
jason
On Mon, Feb 28, 2011 at 8:29 PM, Patricia Shanahan <pa...@acm.org> wrote:
> On 2/27/2011 11:19 PM, Peter Firmstone wrote:
>
>> Patricia Shanahan wrote:
>>
>>> On 2/23/2011 6:26 PM, Peter Firmstone wrote:
>>>
>>>> Patricia Shanahan wrote:
>>>>
>>>>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>>>>>
>>>>>> Patricia Shanahan wrote:
>>>>>>
>>>>>>> I want to get going on some performance tuning, but believe it is
>>>>>>> best
>>>>>>> guided and controlled by well-organized benchmarks. To that end, I
>>>>>>> propose adding a place for benchmarks to the River structure.
>>>>>>>
>>>>>> ...
>>>
>>>> Each module would be considered a separate build, the tests would
>>>> include unit and integration tests. Other modules yours depends on are
>>>> like libraries, you wouldn't be concerned with their implementation. The
>>>> existing qa harness would be a separate library module (similar to how
>>>> junit or jtreg is a separate component). Jini Platform tests would be
>>>> separated from implementation tests. (We also need to consider how to
>>>> best utilise the discovery and join test kit.)
>>>>
>>>> If the changes are localised to your module, meaning the public API
>>>> doesn't change, which is like an independent build, you could just
>>>> duplicate the original module, modify it, then run performance tests
>>>> against both the new and original modules, your new module name would
>>>> have a different version number to reflect the experimental changes.
>>>>
>>>> If the changes to involve changing public API in the module, in a non
>>>> backward compatible manner, and this API is not part of net.jini.*
>>>> (which must remain backward compatible), then other modules that are
>>>> dependent can be migrated to the new module over time, proxy's that
>>>> utilise the new module will need to use preferred class loading to
>>>> ensure the correct classes are loaded. The module version number would
>>>> be incremented to show it is not backward compatible.
>>>>
>>>
>>> How would you propose handling a case like outrigger.FastList?
>>>
>>> It is package access only, so changing its interface to the rest of
>>> outrigger did not affect any public API. Several classes needed to be
>>> changed to handle the interface change.
>>>
>>> Patricia
>>>
>>>
>>> Well each module can have it's own release schedule, in this case you'd
>> develop the Outrigger module, integration test it, increment its version
>> and release it. The public API hasn't changed, users can update their
>> Outrigger servers and add the new proxy jar archive to their codebase
>> servers, this will allow Outrigger to evolve at a faster pace than
>> River's Jini Platform. This makes our release process much faster, with
>> more updates more often.
>>
>> It's a lot of work to release the whole platform before users can
>> download and test the new Outrigger, so having incremental module
>> releases makes a lot of sense.
>>
>> Each module can function in the same environment coexisting with
>> previous module versions, since it is only an implementation of
>> Javaspace, implementation classes will exist in separate ClassLoaders
>> even in the same JVM.
>>
>
> The issue I'm trying to understand is not the release of production code,
> but the issue of how to organize benchmarks that need to be run in order to
> decide whether to make a change. Depending on the benchmark result, the
> change may not happen at all.
>
> Patricia
>
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
On 2/27/2011 11:19 PM, Peter Firmstone wrote:
> Patricia Shanahan wrote:
>> On 2/23/2011 6:26 PM, Peter Firmstone wrote:
>>> Patricia Shanahan wrote:
>>>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>>>>> Patricia Shanahan wrote:
>>>>>> I want to get going on some performance tuning, but believe it is
>>>>>> best
>>>>>> guided and controlled by well-organized benchmarks. To that end, I
>>>>>> propose adding a place for benchmarks to the River structure.
>> ...
>>> Each module would be considered a separate build, the tests would
>>> include unit and integration tests. Other modules yours depends on are
>>> like libraries, you wouldn't be concerned with their implementation. The
>>> existing qa harness would be a separate library module (similar to how
>>> junit or jtreg is a separate component). Jini Platform tests would be
>>> separated from implementation tests. (We also need to consider how to
>>> best utilise the discovery and join test kit.)
>>>
>>> If the changes are localised to your module, meaning the public API
>>> doesn't change, which is like an independent build, you could just
>>> duplicate the original module, modify it, then run performance tests
>>> against both the new and original modules, your new module name would
>>> have a different version number to reflect the experimental changes.
>>>
>>> If the changes to involve changing public API in the module, in a non
>>> backward compatible manner, and this API is not part of net.jini.*
>>> (which must remain backward compatible), then other modules that are
>>> dependent can be migrated to the new module over time, proxy's that
>>> utilise the new module will need to use preferred class loading to
>>> ensure the correct classes are loaded. The module version number would
>>> be incremented to show it is not backward compatible.
>>
>> How would you propose handling a case like outrigger.FastList?
>>
>> It is package access only, so changing its interface to the rest of
>> outrigger did not affect any public API. Several classes needed to be
>> changed to handle the interface change.
>>
>> Patricia
>>
>>
> Well each module can have it's own release schedule, in this case you'd
> develop the Outrigger module, integration test it, increment its version
> and release it. The public API hasn't changed, users can update their
> Outrigger servers and add the new proxy jar archive to their codebase
> servers, this will allow Outrigger to evolve at a faster pace than
> River's Jini Platform. This makes our release process much faster, with
> more updates more often.
>
> It's a lot of work to release the whole platform before users can
> download and test the new Outrigger, so having incremental module
> releases makes a lot of sense.
>
> Each module can function in the same environment coexisting with
> previous module versions, since it is only an implementation of
> Javaspace, implementation classes will exist in separate ClassLoaders
> even in the same JVM.
The issue I'm trying to understand is not the release of production
code, but the issue of how to organize benchmarks that need to be run in
order to decide whether to make a change. Depending on the benchmark
result, the change may not happen at all.
Patricia
Re: Benchmark organization
Posted by Peter Firmstone <ji...@zeus.net.au>.
Patricia Shanahan wrote:
> On 2/23/2011 6:26 PM, Peter Firmstone wrote:
>> Patricia Shanahan wrote:
>>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>>>> Patricia Shanahan wrote:
>>>>> I want to get going on some performance tuning, but believe it is
>>>>> best
>>>>> guided and controlled by well-organized benchmarks. To that end, I
>>>>> propose adding a place for benchmarks to the River structure.
> ...
>> Each module would be considered a separate build, the tests would
>> include unit and integration tests. Other modules yours depends on are
>> like libraries, you wouldn't be concerned with their implementation. The
>> existing qa harness would be a separate library module (similar to how
>> junit or jtreg is a separate component). Jini Platform tests would be
>> separated from implementation tests. (We also need to consider how to
>> best utilise the discovery and join test kit.)
>>
>> If the changes are localised to your module, meaning the public API
>> doesn't change, which is like an independent build, you could just
>> duplicate the original module, modify it, then run performance tests
>> against both the new and original modules, your new module name would
>> have a different version number to reflect the experimental changes.
>>
>> If the changes to involve changing public API in the module, in a non
>> backward compatible manner, and this API is not part of net.jini.*
>> (which must remain backward compatible), then other modules that are
>> dependent can be migrated to the new module over time, proxy's that
>> utilise the new module will need to use preferred class loading to
>> ensure the correct classes are loaded. The module version number would
>> be incremented to show it is not backward compatible.
>
> How would you propose handling a case like outrigger.FastList?
>
> It is package access only, so changing its interface to the rest of
> outrigger did not affect any public API. Several classes needed to be
> changed to handle the interface change.
>
> Patricia
>
>
Well each module can have it's own release schedule, in this case you'd
develop the Outrigger module, integration test it, increment its version
and release it. The public API hasn't changed, users can update their
Outrigger servers and add the new proxy jar archive to their codebase
servers, this will allow Outrigger to evolve at a faster pace than
River's Jini Platform. This makes our release process much faster, with
more updates more often.
It's a lot of work to release the whole platform before users can
download and test the new Outrigger, so having incremental module
releases makes a lot of sense.
Each module can function in the same environment coexisting with
previous module versions, since it is only an implementation of
Javaspace, implementation classes will exist in separate ClassLoaders
even in the same JVM.
Cheers,
Peter.
Re: Benchmark organization
Posted by MICHAEL MCGRADY <mm...@topiatechnology.com>.
+1
On Feb 28, 2011, at 5:26 AM, Dennis Reedy wrote:
>
> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>
>> How would you propose handling a case like outrigger.FastList?
>>
>> It is package access only, so changing its interface to the rest of outrigger did not affect any public API. Several classes needed to be changed to handle the interface change.
>
> If I understand your question correctly, I think it should be fairly straightforward. Following module conventions, we would have a structure that would look (something) like:
>
> outrigger/src/main/java/org/apache/river/outrigger
> outrigger/src/test/java/org/apache/river/outrigger
>
> The test (or benchmark) code would be in the same package, just in a different directory. You would be able to accommodate your package access only requirement.
>
Michael McGrady
Chief Systems Architect
Topia Technology, Inc.
Cel 1.253.720.3365
Work 1.253.572.9712 extension 2037
Skype ID: michael.mcgrady5
mmcgrady@topiatechnology.com
Re: Benchmark organization
Posted by Dennis Reedy <de...@gmail.com>.
On Feb 28, 2011, at 836AM, Tom Hobbs wrote:
> That makes sense as far as Patricia's question goes and assuming her
> tests fitted nicely in those boxes.
>
> The modular build tangent we've gone off on is not so easily satisfied.
>
> I agree with Peter that modularising the build to allow different
> parts of River to evolve at different places *more easily* is a noble
> goal and one worth pursuing. I think, and please correct me if I'm
> wrong, is that not all the tests fit into such nice individual
> buckets.
I'm not sure. I have not had the opportunity to take a serious look at how the tests may be organized, and whether they will align within the modules.
My assumption is most unit tests will align just fine. For integration tests, and for benchmarks that incorporate multiple parts of river, we can declare other modules (artifacts) as test only dependencies (for example an outrigger test that depends on mahalo), or worst case create a specific module that pulls in the parts of the system needed to accomplish specific goals.
Re: Benchmark organization
Posted by Tom Hobbs <tv...@googlemail.com>.
That makes sense as far as Patricia's question goes and assuming her
tests fitted nicely in those boxes.
The modular build tangent we've gone off on is not so easily satisfied.
I agree with Peter that modularising the build to allow different
parts of River to evolve at different places *more easily* is a noble
goal and one worth pursuing. I think, and please correct me if I'm
wrong, is that not all the tests fit into such nice individual
buckets. We are indeed very lucky to have such a thorough test suite,
but not all the tests have single intentions and so not all the tests
are going to fit into the same clean modules that the production code
does. I get the feeling that we'll need a separate modularising
strategy to deal with the tests than we do with the production code.
Maybe I'm barking up the wrong tree?
On Monday, February 28, 2011, Dennis Reedy <de...@gmail.com> wrote:
>
> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>
>> How would you propose handling a case like outrigger.FastList?
>>
>> It is package access only, so changing its interface to the rest of outrigger did not affect any public API. Several classes needed to be changed to handle the interface change.
>
> If I understand your question correctly, I think it should be fairly straightforward. Following module conventions, we would have a structure that would look (something) like:
>
> outrigger/src/main/java/org/apache/river/outrigger
> outrigger/src/test/java/org/apache/river/outrigger
>
> The test (or benchmark) code would be in the same package, just in a different directory. You would be able to accommodate your package access only requirement.
>
>
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
On 2/28/2011 9:54 AM, Patricia Shanahan wrote:
> Gregg Wonderly wrote:
> ...
>> Can you help me understand why multiple builds are not working? It just seems
>> to me that you'd build the existing code "once" to test, and then iterate
>> through your development practices to work on your "Experiment", testing with
>> that output as you go.
> ...
>
> Performance work is a bit different from functional development.
I am not sure. Your consideration of "will I always want to do it this way",
for me is just exactly what happens in software development, at all levels.
Performance is an interesting "consideration", but as you say, factors
everywhere affect it, so from my perspective, I think it is better to learn from
your experience then plan for all possibilities. We need to have benchmarks
first, and then after that, we might continue to add other benchmarks as we
learn about failure modes that we didn't know about or understand. Holding onto
the old version should be a branching issue. The SCM should have a record of
the older version and it is then possible to go get it. If you want it to be
visible in the tree, then you need to make it into a "module" or have an
"interface" to manage multiple implementation's visibility, as we've discussed.
> If two proposed implementations differ in functional correctness or source code
> readability, the one that is better now is going to stay better unless someone
> is working on the other one.
>
> On the other hand, which of two implementation has the better performance can
> change any time we move to a new JVM version, and new versions of associated
> libraries.
>
> One of the consequences of moving to JDK 1.5 is that I expect more and more
> performance critical parallel code to be written in terms of java.util packages.
> That means that code that is rejected for integration because it is slower than
> another version may become better than the integrated version without being
> under development.
>
> I'm looking for a shelf I can put such things on where they will not get lost. I
> would like to retain the ability to do performance run-offs without having to
> maintain different versions of all code that depends on the choice.
I don't think that it's necessary to be super conservative about this. I know
that you've not been around this code long, and I and others have varied
experience with different parts of it. When I first looked at the FastList
implementation and read the notes, I was immediately ready to replace it with a
"fully synchronized implementation" at least. I just really felt that it was
much more likely to be completely wrong (as you've found it has issues) with
it's JMM 'tricks" than I was willing to lose performance for.
> Ideally, it will be part of the River svn structure so that another
> evidence-driver performance person can pick it up even if I'm no longer active
> on the project, and also so that people with access to different environments
> can repeat experiments.
Keeping everything around forever is a difficult way to deal with the moving
target of "performance optimization". I really do think that the benchmarks
are what we should worry about, and when we can't meet a benchmark at a JDK
upgrade point, we can then look for opportunities of optimization instead of
spending time on a problem that doesn't exist, yet.
Gregg
Re: Benchmark organization
Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 28-02-11 16:54, Patricia Shanahan wrote:
> I'm looking for a shelf I can put such things on where they will not get
> lost. I would like to retain the ability to do performance run-offs
> without having to maintain different versions of all code that depends
> on the choice.
If a developer created benchmark/test code that is reseuable in later
builds or experiments, its worth to be saved.
> Ideally, it will be part of the River svn structure so that another
> evidence-driver performance person can pick it up even if I'm no longer
> active on the project, and also so that people with access to different
> environments can repeat experiments.
For instance.
Gr. Sim
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
On 28 February 2011 21:44, Patricia Shanahan <pa...@acm.org> wrote:
>
> I would not benchmark a base utility through something as big and
> complicated as the JavaSpace API. Especially on the relatively small
+1
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
See databene.org/contiperf
Its a performance test suite, syntax is similar to junit4
You can set the number of iterations and threads and expected performance window using annotations.
Peter.
----- Original message -----
> Yup, my original idea was to have a separate directory structure for
> this sort of thing, and rename classes in it for convenience. I was
> thinking of putting in a readme.txt describing the mapping to the real
> name for each source file that is in use in the trunk. For example, the
> recently checked in FastList implementation is "CLQFastList" in my test
> environment, because it is based on ConcurrentLinkedQueue.
>
> Of course, it would not just be one snippets directory. It would be more
> like an "experiments" directory with a separate sub-directory for each
> experiment.
>
> JUnit is fine for unit-level functional testing, especially with the
> advance to version 4. I have not tried using it for benchmarks, and I
> don't see any benefit for benchmarking over a simple application.
>
> Patricia
>
>
> On 2/28/2011 9:07 PM, Peter wrote:
> > Could you call it FastList2? That avoids name space conflicts. Which makes
> > testing easier.
> >
> > Is junit sufficient for testing?
> >
> > We could have a directory called snippets where we keep all the classes, which
> > are alternative implementations, appended with a number. If it replaces the
> > original the original can be stored there as FastList0?
> >
> > Peter.
> > ----- Original message -----
> > > On 2/28/2011 1:38 PM, Peter wrote:
> > > > Hmm valuable insight into the future based on past experience.
> > > >
> > > > Alternate code snippets sitting on the performance shelf need to be
> > > > compilable in their own right don't they?
> > > >
> > > > But as you've mentioned, fastlist and its replacement, don't share a common
> > > > interface for testing.
> > > >
> > > > We must test using a common api somewhere, such as the javaspace api, but
> > > > that risks duplicating identical code that might diverge over time causing
> > > > inaccurate test results. Divergence is expected as we evolve
> > > > implementations.
> > > >
> > >
> > > I wrote a very simple wrapper interface that was equally smoothly
> > > implemented on top of either of the FastList interfaces. For example, it
> > > uses the visitor pattern which is neutral between the old and new ways
> > > of scanning a list.
> > >
> > > I would not benchmark a base utility through something as big and
> > > complicated as the JavaSpace API. Especially on the relatively small
> > > system I have for benchmarking, other issues could mask differences in
> > > FastList speed. I also don't know enough about the performance
> > > characteristics of the way the QA tests are connected to their servers
> > > to include that in a benchmark of anything else.
> > >
> > > Patricia
> > >
> >
> >
>
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
Yup, my original idea was to have a separate directory structure for
this sort of thing, and rename classes in it for convenience. I was
thinking of putting in a readme.txt describing the mapping to the real
name for each source file that is in use in the trunk. For example, the
recently checked in FastList implementation is "CLQFastList" in my test
environment, because it is based on ConcurrentLinkedQueue.
Of course, it would not just be one snippets directory. It would be more
like an "experiments" directory with a separate sub-directory for each
experiment.
JUnit is fine for unit-level functional testing, especially with the
advance to version 4. I have not tried using it for benchmarks, and I
don't see any benefit for benchmarking over a simple application.
Patricia
On 2/28/2011 9:07 PM, Peter wrote:
> Could you call it FastList2? That avoids name space conflicts. Which makes testing easier.
>
> Is junit sufficient for testing?
>
> We could have a directory called snippets where we keep all the classes, which are alternative implementations, appended with a number. If it replaces the original the original can be stored there as FastList0?
>
> Peter.
> ----- Original message -----
>> On 2/28/2011 1:38 PM, Peter wrote:
>>> Hmm valuable insight into the future based on past experience.
>>>
>>> Alternate code snippets sitting on the performance shelf need to be compilable
>>> in their own right don't they?
>>>
>>> But as you've mentioned, fastlist and its replacement, don't share a common
>>> interface for testing.
>>>
>>> We must test using a common api somewhere, such as the javaspace api, but that
>>> risks duplicating identical code that might diverge over time causing
>>> inaccurate test results. Divergence is expected as we evolve implementations.
>>>
>>
>> I wrote a very simple wrapper interface that was equally smoothly
>> implemented on top of either of the FastList interfaces. For example, it
>> uses the visitor pattern which is neutral between the old and new ways
>> of scanning a list.
>>
>> I would not benchmark a base utility through something as big and
>> complicated as the JavaSpace API. Especially on the relatively small
>> system I have for benchmarking, other issues could mask differences in
>> FastList speed. I also don't know enough about the performance
>> characteristics of the way the QA tests are connected to their servers
>> to include that in a benchmark of anything else.
>>
>> Patricia
>>
>
>
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
Could you call it FastList2? That avoids name space conflicts. Which makes testing easier.
Is junit sufficient for testing?
We could have a directory called snippets where we keep all the classes, which are alternative implementations, appended with a number. If it replaces the original the original can be stored there as FastList0?
Peter.
----- Original message -----
> On 2/28/2011 1:38 PM, Peter wrote:
> > Hmm valuable insight into the future based on past experience.
> >
> > Alternate code snippets sitting on the performance shelf need to be compilable
> > in their own right don't they?
> >
> > But as you've mentioned, fastlist and its replacement, don't share a common
> > interface for testing.
> >
> > We must test using a common api somewhere, such as the javaspace api, but that
> > risks duplicating identical code that might diverge over time causing
> > inaccurate test results. Divergence is expected as we evolve implementations.
> >
>
> I wrote a very simple wrapper interface that was equally smoothly
> implemented on top of either of the FastList interfaces. For example, it
> uses the visitor pattern which is neutral between the old and new ways
> of scanning a list.
>
> I would not benchmark a base utility through something as big and
> complicated as the JavaSpace API. Especially on the relatively small
> system I have for benchmarking, other issues could mask differences in
> FastList speed. I also don't know enough about the performance
> characteristics of the way the QA tests are connected to their servers
> to include that in a benchmark of anything else.
>
> Patricia
>
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
On 2/28/2011 1:38 PM, Peter wrote:
> Hmm valuable insight into the future based on past experience.
>
> Alternate code snippets sitting on the performance shelf need to be compilable in their own right don't they?
>
> But as you've mentioned, fastlist and its replacement, don't share a common interface for testing.
>
> We must test using a common api somewhere, such as the javaspace api, but that risks duplicating identical code that might diverge over time causing inaccurate test results. Divergence is expected as we evolve implementations.
>
I wrote a very simple wrapper interface that was equally smoothly
implemented on top of either of the FastList interfaces. For example, it
uses the visitor pattern which is neutral between the old and new ways
of scanning a list.
I would not benchmark a base utility through something as big and
complicated as the JavaSpace API. Especially on the relatively small
system I have for benchmarking, other issues could mask differences in
FastList speed. I also don't know enough about the performance
characteristics of the way the QA tests are connected to their servers
to include that in a benchmark of anything else.
Patricia
Re: Benchmark organization
Posted by Peter <ji...@zeus.net.au>.
Hmm valuable insight into the future based on past experience.
Alternate code snippets sitting on the performance shelf need to be compilable in their own right don't they?
But as you've mentioned, fastlist and its replacement, don't share a common interface for testing.
We must test using a common api somewhere, such as the javaspace api, but that risks duplicating identical code that might diverge over time causing inaccurate test results. Divergence is expected as we evolve implementations.
So in this case I'm guessing that we want to replaced selected classes only?
----- Original message -----
> Gregg Wonderly wrote:
> ...
> > Can you help me understand why multiple builds are not working? It just
> > seems to me that you'd build the existing code "once" to test, and then
> > iterate through your development practices to work on your "Experiment",
> > testing with that output as you go.
> ...
>
> Performance work is a bit different from functional development.
>
> If two proposed implementations differ in functional correctness or
> source code readability, the one that is better now is going to stay
> better unless someone is working on the other one.
>
> On the other hand, which of two implementation has the better
> performance can change any time we move to a new JVM version, and new
> versions of associated libraries.
>
> One of the consequences of moving to JDK 1.5 is that I expect more and
> more performance critical parallel code to be written in terms of
> java.util packages. That means that code that is rejected for
> integration because it is slower than another version may become better
> than the integrated version without being under development.
>
> I'm looking for a shelf I can put such things on where they will not get
> lost. I would like to retain the ability to do performance run-offs
> without having to maintain different versions of all code that depends
> on the choice.
>
> Ideally, it will be part of the River svn structure so that another
> evidence-driver performance person can pick it up even if I'm no longer
> active on the project, and also so that people with access to different
> environments can repeat experiments.
>
> Patricia
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
Gregg Wonderly wrote:
...
> Can you help me understand why multiple builds are not working? It just
> seems to me that you'd build the existing code "once" to test, and then
> iterate through your development practices to work on your "Experiment",
> testing with that output as you go.
...
Performance work is a bit different from functional development.
If two proposed implementations differ in functional correctness or
source code readability, the one that is better now is going to stay
better unless someone is working on the other one.
On the other hand, which of two implementation has the better
performance can change any time we move to a new JVM version, and new
versions of associated libraries.
One of the consequences of moving to JDK 1.5 is that I expect more and
more performance critical parallel code to be written in terms of
java.util packages. That means that code that is rejected for
integration because it is slower than another version may become better
than the integrated version without being under development.
I'm looking for a shelf I can put such things on where they will not get
lost. I would like to retain the ability to do performance run-offs
without having to maintain different versions of all code that depends
on the choice.
Ideally, it will be part of the River svn structure so that another
evidence-driver performance person can pick it up even if I'm no longer
active on the project, and also so that people with access to different
environments can repeat experiments.
Patricia
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
On 2/28/2011 9:19 AM, Patricia Shanahan wrote:
> Dan Creswell wrote:
>> On 28 February 2011 14:50, Patricia Shanahan <pa...@acm.org> wrote:
>>
>>> Dennis Reedy wrote:
>>>
>>>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>>>
>>>>> How would you propose handling a case like outrigger.FastList?
>>>>>
>>>>> It is package access only, so changing its interface to the rest of
>>>>> outrigger did not affect any public API. Several classes needed to be
>>>>> changed to handle the interface change.
>>>>>
>>>> If I understand your question correctly, I think it should be fairly
>>>> straightforward. Following module conventions, we would have a structure
>>>> that would look (something) like:
>>>>
>>>> outrigger/src/main/java/org/apache/river/outrigger
>>>> outrigger/src/test/java/org/apache/river/outrigger
>>>>
>>>> The test (or benchmark) code would be in the same package, just in a
>>>> different directory. You would be able to accommodate your package access
>>>> only requirement.
>>>>
>>>>
>>>>
>>> I don't see how that answers the problem of a possible intra-package
>>> interface change that needs to be benchmarked *before* the changes to the
>>> rest of the package that would be needed to integrate the class under test
>>> with the rest of what would be its package if it wins the benchmark.
>>>
>>> If I had initially named my new FastList implementation
>>> "com.sun.jini.outrigger.FastList" I could not have compiled outrigger in its
>>> presence. It is not a drop-in replacement for the old FastList.
>>>
>>> If it had turned out to be slower than the existing FastList I would still
>>> have wanted to preserve it, and the relevant benchmark, because of the
>>> possibility that future java.util.concurrent changes would make it better.
>>> On the other hand, I would not have done the changes to the rest of
>>> outrigger.
>>>
>>>
>>>
>> So I think we're coming down to the new FastList implementation having to be
>> called something else for benchmarking purposes to avoid conflict with old
>> FastList. Or the new implementation needs to be an inner class of the
>> benchmark and that could live in the same package as original FastList. Of
>> course, still packaging and source organisation concerns to conquer.
>>
>
> Giving the new FastList a different name was my original idea for dealing with
> this. Now that the discussion has become more active, it may be worth repeating
> how I started:
>
> =============================================================
>
> We will need several categories of benchmark code:
>
> 1. System level benchmarks. These benchmarks measure some public features, such
> as the outrigger JavaSpace implementation. For these, I think a similar
> structure to QA may be best. However, I need to understand how the QA harness
> links together clients and servers, and whether it has any special performance
> implications. We may need, for example, to add network delays to properly score
> implementations that involve different amounts of communication.
>
> 2. Internal benchmarks. These are more like unit tests, and need to mirror the
> main src package structure so that they can access non-public code.
>
> 3. Experimental code. In some situations it is useful to do run-offs between two
> or more implementations of the same class. We cannot have two classes with the
> same fully qualified name at the same time, so this type of test will need
> special copies of the classes with modified class names or package names. In
> addition to actually doing the tests and picking the implementation to go in the
> trunk, it is useful to keep discarded candidates around. One of them may turn
> out to be a better basis in a future performance campaign.
I still don't understand how a "branch" or "copy" can't be built parallel to
your work so that you get the "output of the builds" to test with under separate
tests.
Can you help me understand why multiple builds are not working? It just seems
to me that you'd build the existing code "once" to test, and then iterate
through your development practices to work on your "Experiment", testing with
that output as you go.
Gregg Wonderly
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
Dan Creswell wrote:
> On 28 February 2011 14:50, Patricia Shanahan <pa...@acm.org> wrote:
>
>> Dennis Reedy wrote:
>>
>>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>>
>>>> How would you propose handling a case like outrigger.FastList?
>>>>
>>>> It is package access only, so changing its interface to the rest of
>>>> outrigger did not affect any public API. Several classes needed to be
>>>> changed to handle the interface change.
>>>>
>>> If I understand your question correctly, I think it should be fairly
>>> straightforward. Following module conventions, we would have a structure
>>> that would look (something) like:
>>>
>>> outrigger/src/main/java/org/apache/river/outrigger
>>> outrigger/src/test/java/org/apache/river/outrigger
>>>
>>> The test (or benchmark) code would be in the same package, just in a
>>> different directory. You would be able to accommodate your package access
>>> only requirement.
>>>
>>>
>>>
>> I don't see how that answers the problem of a possible intra-package
>> interface change that needs to be benchmarked *before* the changes to the
>> rest of the package that would be needed to integrate the class under test
>> with the rest of what would be its package if it wins the benchmark.
>>
>> If I had initially named my new FastList implementation
>> "com.sun.jini.outrigger.FastList" I could not have compiled outrigger in its
>> presence. It is not a drop-in replacement for the old FastList.
>>
>> If it had turned out to be slower than the existing FastList I would still
>> have wanted to preserve it, and the relevant benchmark, because of the
>> possibility that future java.util.concurrent changes would make it better.
>> On the other hand, I would not have done the changes to the rest of
>> outrigger.
>>
>>
>>
> So I think we're coming down to the new FastList implementation having to be
> called something else for benchmarking purposes to avoid conflict with old
> FastList. Or the new implementation needs to be an inner class of the
> benchmark and that could live in the same package as original FastList. Of
> course, still packaging and source organisation concerns to conquer.
>
Giving the new FastList a different name was my original idea for
dealing with this. Now that the discussion has become more active, it
may be worth repeating how I started:
=============================================================
We will need several categories of benchmark code:
1. System level benchmarks. These benchmarks measure some public
features, such as the outrigger JavaSpace implementation. For these, I
think a similar structure to QA may be best. However, I need to
understand how the QA harness links together clients and servers, and
whether it has any special performance implications. We may need, for
example, to add network delays to properly score implementations that
involve different amounts of communication.
2. Internal benchmarks. These are more like unit tests, and need to
mirror the main src package structure so that they can access non-public
code.
3. Experimental code. In some situations it is useful to do run-offs
between two or more implementations of the same class. We cannot have
two classes with the same fully qualified name at the same time, so this
type of test will need special copies of the classes with modified class
names or package names. In addition to actually doing the tests and
picking the implementation to go in the trunk, it is useful to keep
discarded candidates around. One of them may turn out to be a better
basis in a future performance campaign.
=============================================================
The FastList case is an example of the "Experiment code" category.
Patricia
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
On 2/28/2011 11:47 AM, Dan Creswell wrote:
> I feel you're on a completely different thought path - we're not (IMHO)
> talking about two versions of the same thing from one build.
That was one of the choices I mentioned, and I felt it probably wasn't the case.
If you decide to create a few test classes and a trial reimplementation of
something that already exists, people do sometimes just wire things together in
the same build. I'm not so fond of doing that because I usually forget to do
something important waste my time chasing down something I didn't need to.
> - we're talking
> about comparing two different implementations alongside each other of some
> small sub-element.
So do we want to have little directories of "experiments" hanging out under the
production branch/tree, or do we want to put them off to the side somewhere or
what? I think the stuff needs to be fairly easy for people to pull and test if
we want community participation, and that's why I'm going on about branching
given the current state of the repository.
If we modularize, then there still needs to be a way to take something that
bridges the module boundaries and be able to build it and run the appropriate
benchmarks.
For example, something that tests the speed of a new transaction implementation
needs to build leasing and transaction stuff.
I'm just having a hard time with imagining a small thing when in the end, we do
have a monolithic codebase without a great deal of prune-able bits at this point.
After some level of modularization, there is still the need for multi-module
based benchmarks, and so, for me, that sill indicates a need to version modules
with something similar to a "branch".
I just find it a lot easier to create reproducible builds and trackable change
sets when I branch so that everything is clearly delimited and I don't have to
remember what to rename or exchange in-place etc.
> SCM-level tools and the kinds of hoops you're talking about feel like an
> awful big and costly hammer for such work.
I guess I am used to perforce. Branches are free, they only reference files you
haven't modified. So, the depot doesn't get out of hand, and you can always use
the obliterate command to take out the stuff that is no longer relevant.
I'm not suggesting that branches end up being "easy" or "fun", because in the
end, it is another "thing" to track. But, I'm just trying to suggest something
that I find to be easy to use when I need a workspace that encompasses more than
a few files in a single module.
Gregg
> On 28 February 2011 16:07, Gregg Wonderly<gr...@wonderly.org> wrote:
>
>> On 2/28/2011 9:33 AM, Dan Creswell wrote:
>>
>>> Think the nub of the issue is two-fold:
>>>
>>> (1) Dealing with namespace clashes (see Patricia's FastList conflict
>>> discussion).
>>>
>>
>> Okay, but, when I am doing something to replace code/classes with the same
>> name, I most often do this in a branch that I will later reintegrate into
>> the main branch. Sometimes, I will do it in place in an active change-list
>> that I may not submit for some time. There have been times that I've just
>> used the SCM to preserve the changes, in place, by submitting them and then
>> synching to the old version and then submitting that older version over the
>> top of my investigation. Then, I go back later and revisit that idea
>> without losing it, and provide something that others could check out to look
>> at.
>>
>> I think there are lots of SCM based mechanisms that can be used to "hide"
>> or "manage" these name space based conflicts. Which of these things are
>> people most often using as their reason for being frustrated by testing
>> capabilities?
>>
>> 1) We build this one thing and want to test two version from that single
>> build.
>> 2) Don't have space to have two copies.
>> 3) Can't test locally, so have to submit something to get it into the
>> offline test facilities.
>> 4) Something else I've missed.
>>
>>
>> (2) Partitioning of tests and fitting them efficiently into development or
>>> build/release cycles.
>>>
>>
>> This points back to 3) above I think. Does that mean that we are just not
>> "testing" the right branch? Shouldn't contributors largely be testing in
>> development branches and then the project integrating and accepting
>> "approved" changes into the production branch that are then tested one more
>> time with a broader integration suite?
>>
>> In the discussions on the use of branches I didn't really note whether this
>> was something people liked or had experience with. Is there something about
>> this that seems not so attractive? Do many disparate changes can cause
>> integration to be a little more taxing, but that's just a fact of life in
>> some cases where you can't work together, or don't know about another party
>> doing anything in parallel with your work. I do like perforce's centralized
>> store for this reason, because it does make it possible to see where your
>> coworkers are tweaking things so you can expect conflicts or ask them about
>> what things you need to be aware of.
>>
>> Gregg
>>
>> On 28 February 2011 15:29, Gregg Wonderly<gregg@wonderly.org
>>> <ma...@wonderly.org>> wrote:
>>>
>>> So, maybe I am not understanding the real issue. When I run testing on
>>> some
>>> new development, I do it in the branch or changelist that I am working
>>> on,
>>> and record the results. If I feel like I need to adjust the test
>>> strategy,
>>> I do that as a separate change on a separate branch/changelist that I
>>> can
>>> use to run against the existing code.
>>>
>>> I can checkout/copy (rsync is my friend) stuff to an appropriate place
>>> to do
>>> longer term testing.
>>>
>>> Is the real issue that communicating the "test stuff" (source etc.)
>>> really
>>> requires a "submission" so that it can go over to the test servers
>>> because
>>> the type of change that Patricia wants to test can't be tested in her
>>> local
>>> environment? I'd guess it is because of the parallel discussion about
>>> modularity.
>>>
>>> It seems like we have a "different" type of development model that the
>>> source tree was designed to support vs what the test environment we
>>> have
>>> supports?
>>>
>>> Gregg Wonderly
>>>
>>>
>>> On 2/28/2011 9:08 AM, Dan Creswell wrote:
>>>
>>> On 28 February 2011 14:50, Patricia Shanahan<pats@acm.org
>>> <ma...@acm.org>> wrote:
>>>
>>>
>>> Dennis Reedy wrote:
>>>
>>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>>
>>> How would you propose handling a case like
>>> outrigger.FastList?
>>>
>>> It is package access only, so changing its interface to
>>> the
>>> rest of
>>> outrigger did not affect any public API. Several
>>> classes
>>> needed to be
>>> changed to handle the interface change.
>>>
>>>
>>> If I understand your question correctly, I think it should
>>> be fairly
>>> straightforward. Following module conventions, we would
>>> have a
>>> structure
>>> that would look (something) like:
>>>
>>> outrigger/src/main/java/org/apache/river/outrigger
>>> outrigger/src/test/java/org/apache/river/outrigger
>>>
>>> The test (or benchmark) code would be in the same package,
>>> just in a
>>> different directory. You would be able to accommodate your
>>> package access
>>> only requirement.
>>>
>>>
>>>
>>> I don't see how that answers the problem of a possible
>>> intra-package
>>> interface change that needs to be benchmarked *before* the
>>> changes
>>> to the
>>> rest of the package that would be needed to integrate the class
>>> under test
>>> with the rest of what would be its package if it wins the
>>> benchmark.
>>>
>>> If I had initially named my new FastList implementation
>>> "com.sun.jini.outrigger.FastList" I could not have compiled
>>> outrigger in its
>>> presence. It is not a drop-in replacement for the old FastList.
>>>
>>> If it had turned out to be slower than the existing FastList I
>>> would
>>> still
>>> have wanted to preserve it, and the relevant benchmark, because
>>> of the
>>> possibility that future java.util.concurrent changes would make
>>> it
>>> better.
>>> On the other hand, I would not have done the changes to the
>>> rest of
>>> outrigger.
>>>
>>>
>>>
>>> So I think we're coming down to the new FastList implementation
>>> having to be
>>> called something else for benchmarking purposes to avoid conflict
>>> with old
>>> FastList. Or the new implementation needs to be an inner class of
>>> the
>>> benchmark and that could live in the same package as original
>>> FastList. Of
>>> course, still packaging and source organisation concerns to
>>> conquer.
>>>
>>>
>>>
>>>
>>
>
Re: Benchmark organization
Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 28-02-11 18:47, Dan Creswell wrote:
> I feel you're on a completely different thought path - we're not (IMHO)
> talking about two versions of the same thing from one build - we're talking
> about comparing two different implementations alongside each other of some
> small sub-element.
>
> SCM-level tools and the kinds of hoops you're talking about feel like an
> awful big and costly hammer for such work.
Ok, i'm trying to reverse engineer some direction:
- do we (you) want the benchmark tool in svn?
- do we (you) want a separate directory for the benchmark stuff.
(src vs. benchm-src with the same package spaces in them)
Gr. Sim
--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
I feel you're on a completely different thought path - we're not (IMHO)
talking about two versions of the same thing from one build - we're talking
about comparing two different implementations alongside each other of some
small sub-element.
SCM-level tools and the kinds of hoops you're talking about feel like an
awful big and costly hammer for such work.
On 28 February 2011 16:07, Gregg Wonderly <gr...@wonderly.org> wrote:
> On 2/28/2011 9:33 AM, Dan Creswell wrote:
>
>> Think the nub of the issue is two-fold:
>>
>> (1) Dealing with namespace clashes (see Patricia's FastList conflict
>> discussion).
>>
>
> Okay, but, when I am doing something to replace code/classes with the same
> name, I most often do this in a branch that I will later reintegrate into
> the main branch. Sometimes, I will do it in place in an active change-list
> that I may not submit for some time. There have been times that I've just
> used the SCM to preserve the changes, in place, by submitting them and then
> synching to the old version and then submitting that older version over the
> top of my investigation. Then, I go back later and revisit that idea
> without losing it, and provide something that others could check out to look
> at.
>
> I think there are lots of SCM based mechanisms that can be used to "hide"
> or "manage" these name space based conflicts. Which of these things are
> people most often using as their reason for being frustrated by testing
> capabilities?
>
> 1) We build this one thing and want to test two version from that single
> build.
> 2) Don't have space to have two copies.
> 3) Can't test locally, so have to submit something to get it into the
> offline test facilities.
> 4) Something else I've missed.
>
>
> (2) Partitioning of tests and fitting them efficiently into development or
>> build/release cycles.
>>
>
> This points back to 3) above I think. Does that mean that we are just not
> "testing" the right branch? Shouldn't contributors largely be testing in
> development branches and then the project integrating and accepting
> "approved" changes into the production branch that are then tested one more
> time with a broader integration suite?
>
> In the discussions on the use of branches I didn't really note whether this
> was something people liked or had experience with. Is there something about
> this that seems not so attractive? Do many disparate changes can cause
> integration to be a little more taxing, but that's just a fact of life in
> some cases where you can't work together, or don't know about another party
> doing anything in parallel with your work. I do like perforce's centralized
> store for this reason, because it does make it possible to see where your
> coworkers are tweaking things so you can expect conflicts or ask them about
> what things you need to be aware of.
>
> Gregg
>
> On 28 February 2011 15:29, Gregg Wonderly <gregg@wonderly.org
>> <ma...@wonderly.org>> wrote:
>>
>> So, maybe I am not understanding the real issue. When I run testing on
>> some
>> new development, I do it in the branch or changelist that I am working
>> on,
>> and record the results. If I feel like I need to adjust the test
>> strategy,
>> I do that as a separate change on a separate branch/changelist that I
>> can
>> use to run against the existing code.
>>
>> I can checkout/copy (rsync is my friend) stuff to an appropriate place
>> to do
>> longer term testing.
>>
>> Is the real issue that communicating the "test stuff" (source etc.)
>> really
>> requires a "submission" so that it can go over to the test servers
>> because
>> the type of change that Patricia wants to test can't be tested in her
>> local
>> environment? I'd guess it is because of the parallel discussion about
>> modularity.
>>
>> It seems like we have a "different" type of development model that the
>> source tree was designed to support vs what the test environment we
>> have
>> supports?
>>
>> Gregg Wonderly
>>
>>
>> On 2/28/2011 9:08 AM, Dan Creswell wrote:
>>
>> On 28 February 2011 14:50, Patricia Shanahan<pats@acm.org
>> <ma...@acm.org>> wrote:
>>
>>
>> Dennis Reedy wrote:
>>
>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>
>> How would you propose handling a case like
>> outrigger.FastList?
>>
>> It is package access only, so changing its interface to
>> the
>> rest of
>> outrigger did not affect any public API. Several
>> classes
>> needed to be
>> changed to handle the interface change.
>>
>>
>> If I understand your question correctly, I think it should
>> be fairly
>> straightforward. Following module conventions, we would
>> have a
>> structure
>> that would look (something) like:
>>
>> outrigger/src/main/java/org/apache/river/outrigger
>> outrigger/src/test/java/org/apache/river/outrigger
>>
>> The test (or benchmark) code would be in the same package,
>> just in a
>> different directory. You would be able to accommodate your
>> package access
>> only requirement.
>>
>>
>>
>> I don't see how that answers the problem of a possible
>> intra-package
>> interface change that needs to be benchmarked *before* the
>> changes
>> to the
>> rest of the package that would be needed to integrate the class
>> under test
>> with the rest of what would be its package if it wins the
>> benchmark.
>>
>> If I had initially named my new FastList implementation
>> "com.sun.jini.outrigger.FastList" I could not have compiled
>> outrigger in its
>> presence. It is not a drop-in replacement for the old FastList.
>>
>> If it had turned out to be slower than the existing FastList I
>> would
>> still
>> have wanted to preserve it, and the relevant benchmark, because
>> of the
>> possibility that future java.util.concurrent changes would make
>> it
>> better.
>> On the other hand, I would not have done the changes to the
>> rest of
>> outrigger.
>>
>>
>>
>> So I think we're coming down to the new FastList implementation
>> having to be
>> called something else for benchmarking purposes to avoid conflict
>> with old
>> FastList. Or the new implementation needs to be an inner class of
>> the
>> benchmark and that could live in the same package as original
>> FastList. Of
>> course, still packaging and source organisation concerns to
>> conquer.
>>
>>
>>
>>
>
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
On 2/28/2011 9:33 AM, Dan Creswell wrote:
> Think the nub of the issue is two-fold:
>
> (1) Dealing with namespace clashes (see Patricia's FastList conflict discussion).
Okay, but, when I am doing something to replace code/classes with the same name,
I most often do this in a branch that I will later reintegrate into the main
branch. Sometimes, I will do it in place in an active change-list that I may
not submit for some time. There have been times that I've just used the SCM to
preserve the changes, in place, by submitting them and then synching to the old
version and then submitting that older version over the top of my investigation.
Then, I go back later and revisit that idea without losing it, and provide
something that others could check out to look at.
I think there are lots of SCM based mechanisms that can be used to "hide" or
"manage" these name space based conflicts. Which of these things are people
most often using as their reason for being frustrated by testing capabilities?
1) We build this one thing and want to test two version from that single build.
2) Don't have space to have two copies.
3) Can't test locally, so have to submit something to get it into the offline
test facilities.
4) Something else I've missed.
> (2) Partitioning of tests and fitting them efficiently into development or
> build/release cycles.
This points back to 3) above I think. Does that mean that we are just not
"testing" the right branch? Shouldn't contributors largely be testing in
development branches and then the project integrating and accepting "approved"
changes into the production branch that are then tested one more time with a
broader integration suite?
In the discussions on the use of branches I didn't really note whether this was
something people liked or had experience with. Is there something about this
that seems not so attractive? Do many disparate changes can cause integration
to be a little more taxing, but that's just a fact of life in some cases where
you can't work together, or don't know about another party doing anything in
parallel with your work. I do like perforce's centralized store for this
reason, because it does make it possible to see where your coworkers are
tweaking things so you can expect conflicts or ask them about what things you
need to be aware of.
Gregg
> On 28 February 2011 15:29, Gregg Wonderly <gregg@wonderly.org
> <ma...@wonderly.org>> wrote:
>
> So, maybe I am not understanding the real issue. When I run testing on some
> new development, I do it in the branch or changelist that I am working on,
> and record the results. If I feel like I need to adjust the test strategy,
> I do that as a separate change on a separate branch/changelist that I can
> use to run against the existing code.
>
> I can checkout/copy (rsync is my friend) stuff to an appropriate place to do
> longer term testing.
>
> Is the real issue that communicating the "test stuff" (source etc.) really
> requires a "submission" so that it can go over to the test servers because
> the type of change that Patricia wants to test can't be tested in her local
> environment? I'd guess it is because of the parallel discussion about
> modularity.
>
> It seems like we have a "different" type of development model that the
> source tree was designed to support vs what the test environment we have
> supports?
>
> Gregg Wonderly
>
>
> On 2/28/2011 9:08 AM, Dan Creswell wrote:
>
> On 28 February 2011 14:50, Patricia Shanahan<pats@acm.org
> <ma...@acm.org>> wrote:
>
> Dennis Reedy wrote:
>
> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>
> How would you propose handling a case like outrigger.FastList?
>
> It is package access only, so changing its interface to the
> rest of
> outrigger did not affect any public API. Several classes
> needed to be
> changed to handle the interface change.
>
>
> If I understand your question correctly, I think it should be fairly
> straightforward. Following module conventions, we would have a
> structure
> that would look (something) like:
>
> outrigger/src/main/java/org/apache/river/outrigger
> outrigger/src/test/java/org/apache/river/outrigger
>
> The test (or benchmark) code would be in the same package, just in a
> different directory. You would be able to accommodate your
> package access
> only requirement.
>
>
>
> I don't see how that answers the problem of a possible intra-package
> interface change that needs to be benchmarked *before* the changes
> to the
> rest of the package that would be needed to integrate the class
> under test
> with the rest of what would be its package if it wins the benchmark.
>
> If I had initially named my new FastList implementation
> "com.sun.jini.outrigger.FastList" I could not have compiled
> outrigger in its
> presence. It is not a drop-in replacement for the old FastList.
>
> If it had turned out to be slower than the existing FastList I would
> still
> have wanted to preserve it, and the relevant benchmark, because of the
> possibility that future java.util.concurrent changes would make it
> better.
> On the other hand, I would not have done the changes to the rest of
> outrigger.
>
>
>
> So I think we're coming down to the new FastList implementation having to be
> called something else for benchmarking purposes to avoid conflict with old
> FastList. Or the new implementation needs to be an inner class of the
> benchmark and that could live in the same package as original FastList. Of
> course, still packaging and source organisation concerns to conquer.
>
>
>
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
Think the nub of the issue is two-fold:
(1) Dealing with namespace clashes (see Patricia's FastList conflict
discussion).
(2) Partitioning of tests and fitting them efficiently into development or
build/release cycles.
On 28 February 2011 15:29, Gregg Wonderly <gr...@wonderly.org> wrote:
> So, maybe I am not understanding the real issue. When I run testing on
> some new development, I do it in the branch or changelist that I am working
> on, and record the results. If I feel like I need to adjust the test
> strategy, I do that as a separate change on a separate branch/changelist
> that I can use to run against the existing code.
>
> I can checkout/copy (rsync is my friend) stuff to an appropriate place to
> do longer term testing.
>
> Is the real issue that communicating the "test stuff" (source etc.) really
> requires a "submission" so that it can go over to the test servers because
> the type of change that Patricia wants to test can't be tested in her local
> environment? I'd guess it is because of the parallel discussion about
> modularity.
>
> It seems like we have a "different" type of development model that the
> source tree was designed to support vs what the test environment we have
> supports?
>
> Gregg Wonderly
>
>
> On 2/28/2011 9:08 AM, Dan Creswell wrote:
>
>> On 28 February 2011 14:50, Patricia Shanahan<pa...@acm.org> wrote:
>>
>> Dennis Reedy wrote:
>>>
>>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>>>
>>>> How would you propose handling a case like outrigger.FastList?
>>>>>
>>>>> It is package access only, so changing its interface to the rest of
>>>>> outrigger did not affect any public API. Several classes needed to be
>>>>> changed to handle the interface change.
>>>>>
>>>>>
>>>> If I understand your question correctly, I think it should be fairly
>>>> straightforward. Following module conventions, we would have a structure
>>>> that would look (something) like:
>>>>
>>>> outrigger/src/main/java/org/apache/river/outrigger
>>>> outrigger/src/test/java/org/apache/river/outrigger
>>>>
>>>> The test (or benchmark) code would be in the same package, just in a
>>>> different directory. You would be able to accommodate your package
>>>> access
>>>> only requirement.
>>>>
>>>>
>>>>
>>>> I don't see how that answers the problem of a possible intra-package
>>> interface change that needs to be benchmarked *before* the changes to the
>>> rest of the package that would be needed to integrate the class under
>>> test
>>> with the rest of what would be its package if it wins the benchmark.
>>>
>>> If I had initially named my new FastList implementation
>>> "com.sun.jini.outrigger.FastList" I could not have compiled outrigger in
>>> its
>>> presence. It is not a drop-in replacement for the old FastList.
>>>
>>> If it had turned out to be slower than the existing FastList I would
>>> still
>>> have wanted to preserve it, and the relevant benchmark, because of the
>>> possibility that future java.util.concurrent changes would make it
>>> better.
>>> On the other hand, I would not have done the changes to the rest of
>>> outrigger.
>>>
>>>
>>>
>>> So I think we're coming down to the new FastList implementation having
>> to be
>> called something else for benchmarking purposes to avoid conflict with old
>> FastList. Or the new implementation needs to be an inner class of the
>> benchmark and that could live in the same package as original FastList. Of
>> course, still packaging and source organisation concerns to conquer.
>>
>>
>
Re: Benchmark organization
Posted by Gregg Wonderly <gr...@wonderly.org>.
So, maybe I am not understanding the real issue. When I run testing on some new
development, I do it in the branch or changelist that I am working on, and
record the results. If I feel like I need to adjust the test strategy, I do
that as a separate change on a separate branch/changelist that I can use to run
against the existing code.
I can checkout/copy (rsync is my friend) stuff to an appropriate place to do
longer term testing.
Is the real issue that communicating the "test stuff" (source etc.) really
requires a "submission" so that it can go over to the test servers because the
type of change that Patricia wants to test can't be tested in her local
environment? I'd guess it is because of the parallel discussion about modularity.
It seems like we have a "different" type of development model that the source
tree was designed to support vs what the test environment we have supports?
Gregg Wonderly
On 2/28/2011 9:08 AM, Dan Creswell wrote:
> On 28 February 2011 14:50, Patricia Shanahan<pa...@acm.org> wrote:
>
>> Dennis Reedy wrote:
>>
>>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>>
>>>> How would you propose handling a case like outrigger.FastList?
>>>>
>>>> It is package access only, so changing its interface to the rest of
>>>> outrigger did not affect any public API. Several classes needed to be
>>>> changed to handle the interface change.
>>>>
>>>
>>> If I understand your question correctly, I think it should be fairly
>>> straightforward. Following module conventions, we would have a structure
>>> that would look (something) like:
>>>
>>> outrigger/src/main/java/org/apache/river/outrigger
>>> outrigger/src/test/java/org/apache/river/outrigger
>>>
>>> The test (or benchmark) code would be in the same package, just in a
>>> different directory. You would be able to accommodate your package access
>>> only requirement.
>>>
>>>
>>>
>> I don't see how that answers the problem of a possible intra-package
>> interface change that needs to be benchmarked *before* the changes to the
>> rest of the package that would be needed to integrate the class under test
>> with the rest of what would be its package if it wins the benchmark.
>>
>> If I had initially named my new FastList implementation
>> "com.sun.jini.outrigger.FastList" I could not have compiled outrigger in its
>> presence. It is not a drop-in replacement for the old FastList.
>>
>> If it had turned out to be slower than the existing FastList I would still
>> have wanted to preserve it, and the relevant benchmark, because of the
>> possibility that future java.util.concurrent changes would make it better.
>> On the other hand, I would not have done the changes to the rest of
>> outrigger.
>>
>>
>>
> So I think we're coming down to the new FastList implementation having to be
> called something else for benchmarking purposes to avoid conflict with old
> FastList. Or the new implementation needs to be an inner class of the
> benchmark and that could live in the same package as original FastList. Of
> course, still packaging and source organisation concerns to conquer.
>
Re: Benchmark organization
Posted by Dan Creswell <da...@gmail.com>.
On 28 February 2011 14:50, Patricia Shanahan <pa...@acm.org> wrote:
> Dennis Reedy wrote:
>
>> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>>
>>> How would you propose handling a case like outrigger.FastList?
>>>
>>> It is package access only, so changing its interface to the rest of
>>> outrigger did not affect any public API. Several classes needed to be
>>> changed to handle the interface change.
>>>
>>
>> If I understand your question correctly, I think it should be fairly
>> straightforward. Following module conventions, we would have a structure
>> that would look (something) like:
>>
>> outrigger/src/main/java/org/apache/river/outrigger
>> outrigger/src/test/java/org/apache/river/outrigger
>>
>> The test (or benchmark) code would be in the same package, just in a
>> different directory. You would be able to accommodate your package access
>> only requirement.
>>
>>
>>
> I don't see how that answers the problem of a possible intra-package
> interface change that needs to be benchmarked *before* the changes to the
> rest of the package that would be needed to integrate the class under test
> with the rest of what would be its package if it wins the benchmark.
>
> If I had initially named my new FastList implementation
> "com.sun.jini.outrigger.FastList" I could not have compiled outrigger in its
> presence. It is not a drop-in replacement for the old FastList.
>
> If it had turned out to be slower than the existing FastList I would still
> have wanted to preserve it, and the relevant benchmark, because of the
> possibility that future java.util.concurrent changes would make it better.
> On the other hand, I would not have done the changes to the rest of
> outrigger.
>
>
>
So I think we're coming down to the new FastList implementation having to be
called something else for benchmarking purposes to avoid conflict with old
FastList. Or the new implementation needs to be an inner class of the
benchmark and that could live in the same package as original FastList. Of
course, still packaging and source organisation concerns to conquer.
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
Dennis Reedy wrote:
> On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>> How would you propose handling a case like outrigger.FastList?
>>
>> It is package access only, so changing its interface to the rest of outrigger did not affect any public API. Several classes needed to be changed to handle the interface change.
>
> If I understand your question correctly, I think it should be fairly straightforward. Following module conventions, we would have a structure that would look (something) like:
>
> outrigger/src/main/java/org/apache/river/outrigger
> outrigger/src/test/java/org/apache/river/outrigger
>
> The test (or benchmark) code would be in the same package, just in a different directory. You would be able to accommodate your package access only requirement.
>
>
I don't see how that answers the problem of a possible intra-package
interface change that needs to be benchmarked *before* the changes to
the rest of the package that would be needed to integrate the class
under test with the rest of what would be its package if it wins the
benchmark.
If I had initially named my new FastList implementation
"com.sun.jini.outrigger.FastList" I could not have compiled outrigger in
its presence. It is not a drop-in replacement for the old FastList.
If it had turned out to be slower than the existing FastList I would
still have wanted to preserve it, and the relevant benchmark, because of
the possibility that future java.util.concurrent changes would make it
better. On the other hand, I would not have done the changes to the rest
of outrigger.
Patricia
Re: Benchmark organization
Posted by Dennis Reedy <de...@gmail.com>.
On Feb 28, 2011, at 1247AM, Patricia Shanahan wrote:
>
> How would you propose handling a case like outrigger.FastList?
>
> It is package access only, so changing its interface to the rest of outrigger did not affect any public API. Several classes needed to be changed to handle the interface change.
If I understand your question correctly, I think it should be fairly straightforward. Following module conventions, we would have a structure that would look (something) like:
outrigger/src/main/java/org/apache/river/outrigger
outrigger/src/test/java/org/apache/river/outrigger
The test (or benchmark) code would be in the same package, just in a different directory. You would be able to accommodate your package access only requirement.
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
On 2/23/2011 6:26 PM, Peter Firmstone wrote:
> Patricia Shanahan wrote:
>> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>>> Patricia Shanahan wrote:
>>>> I want to get going on some performance tuning, but believe it is best
>>>> guided and controlled by well-organized benchmarks. To that end, I
>>>> propose adding a place for benchmarks to the River structure.
...
> Each module would be considered a separate build, the tests would
> include unit and integration tests. Other modules yours depends on are
> like libraries, you wouldn't be concerned with their implementation. The
> existing qa harness would be a separate library module (similar to how
> junit or jtreg is a separate component). Jini Platform tests would be
> separated from implementation tests. (We also need to consider how to
> best utilise the discovery and join test kit.)
>
> If the changes are localised to your module, meaning the public API
> doesn't change, which is like an independent build, you could just
> duplicate the original module, modify it, then run performance tests
> against both the new and original modules, your new module name would
> have a different version number to reflect the experimental changes.
>
> If the changes to involve changing public API in the module, in a non
> backward compatible manner, and this API is not part of net.jini.*
> (which must remain backward compatible), then other modules that are
> dependent can be migrated to the new module over time, proxy's that
> utilise the new module will need to use preferred class loading to
> ensure the correct classes are loaded. The module version number would
> be incremented to show it is not backward compatible.
How would you propose handling a case like outrigger.FastList?
It is package access only, so changing its interface to the rest of
outrigger did not affect any public API. Several classes needed to be
changed to handle the interface change.
Patricia
Re: Benchmark organization
Posted by Peter Firmstone <ji...@zeus.net.au>.
Patricia Shanahan wrote:
> On 2/22/2011 12:16 AM, Peter Firmstone wrote:
>> Patricia Shanahan wrote:
>>> I want to get going on some performance tuning, but believe it is best
>>> guided and controlled by well-organized benchmarks. To that end, I
>>> propose adding a place for benchmarks to the River structure.
>>>
>>> We will need several categories of benchmark code:
>>>
>>> 1. System level benchmarks. These benchmarks measure some public
>>> features, such as the outrigger JavaSpace implementation. For these, I
>>> think a similar structure to QA may be best. However, I need to
>>> understand how the QA harness links together clients and servers, and
>>> whether it has any special performance implications. We may need, for
>>> example, to add network delays to properly score implementations that
>>> involve different amounts of communication.
>>>
>>> 2. Internal benchmarks. These are more like unit tests, and need to
>>> mirror the main src package structure so that they can access
>>> non-public code.
>>>
>>> 3. Experimental code. In some situations it is useful to do run-offs
>>> between two or more implementations of the same class. We cannot have
>>> two classes with the same fully qualified name at the same time, so
>>> this type of test will need special copies of the classes with
>>> modified class names or package names. In addition to actually doing
>>> the tests and picking the implementation to go in the trunk, it is
>>> useful to keep discarded candidates around. One of them may turn out
>>> to be a better basis in a future performance campaign.
>>>
>>> Thoughts? Alternatives? Comments?
>>>
>>> Patricia
>>>
>> +1 to 1 and 2, not sure how to handle 3 - Peter.
>>
>> I wonder if we could have a location for long term experimental code in
>> skunk?
>>
>> If the experiment into a modular build is successful, (my apologies for
>> my recent lack of time), we could simply create an experimental module
>> and compare it against the original.
>>
>
> We won't always be able to integrate an experiment with its proper
> package until after the experiment has been done.
>
> For example, my recent FastList changes involved a change in how a
> FastList user scans the list, from one based on list.head() and
> node.next() to making FastList Iterable. I did not do the changes to
> the rest of outrigger to compile with the new interface until after I
> had assured myself that at least one Iterable implementation was as
> fast as the old implementation.
>
> I'm also dubious about doing performance comparisons with different
> environments for the code being compared. My ideal is a program that
> can cycle among implementations in a single run. Next best is a
> program that measures a run-time selected implementation, but with
> everything except the code under test unchanged. Everything involved
> must be built with the same compiler version and parameters, so I
> strongly prefer a single build.
>
> I'm not sure how all these issues would be handled in the modular
> build environment.
Something like this I think (Dennis, what are your thoughts?):
Each module would be considered a separate build, the tests would
include unit and integration tests. Other modules yours depends on are
like libraries, you wouldn't be concerned with their implementation.
The existing qa harness would be a separate library module (similar to
how junit or jtreg is a separate component). Jini Platform tests would
be separated from implementation tests. (We also need to consider how
to best utilise the discovery and join test kit.)
If the changes are localised to your module, meaning the public API
doesn't change, which is like an independent build, you could just
duplicate the original module, modify it, then run performance tests
against both the new and original modules, your new module name would
have a different version number to reflect the experimental changes.
If the changes to involve changing public API in the module, in a non
backward compatible manner, and this API is not part of net.jini.*
(which must remain backward compatible), then other modules that are
dependent can be migrated to the new module over time, proxy's that
utilise the new module will need to use preferred class loading to
ensure the correct classes are loaded. The module version number
would be incremented to show it is not backward compatible.
Building each module becomes a simpler process.
I'll reply again later, when I've got some more time.
Regards,
Peter.
>
> Patricia
>
Re: Benchmark organization
Posted by Patricia Shanahan <pa...@acm.org>.
On 2/22/2011 12:16 AM, Peter Firmstone wrote:
> Patricia Shanahan wrote:
>> I want to get going on some performance tuning, but believe it is best
>> guided and controlled by well-organized benchmarks. To that end, I
>> propose adding a place for benchmarks to the River structure.
>>
>> We will need several categories of benchmark code:
>>
>> 1. System level benchmarks. These benchmarks measure some public
>> features, such as the outrigger JavaSpace implementation. For these, I
>> think a similar structure to QA may be best. However, I need to
>> understand how the QA harness links together clients and servers, and
>> whether it has any special performance implications. We may need, for
>> example, to add network delays to properly score implementations that
>> involve different amounts of communication.
>>
>> 2. Internal benchmarks. These are more like unit tests, and need to
>> mirror the main src package structure so that they can access
>> non-public code.
>>
>> 3. Experimental code. In some situations it is useful to do run-offs
>> between two or more implementations of the same class. We cannot have
>> two classes with the same fully qualified name at the same time, so
>> this type of test will need special copies of the classes with
>> modified class names or package names. In addition to actually doing
>> the tests and picking the implementation to go in the trunk, it is
>> useful to keep discarded candidates around. One of them may turn out
>> to be a better basis in a future performance campaign.
>>
>> Thoughts? Alternatives? Comments?
>>
>> Patricia
>>
> +1 to 1 and 2, not sure how to handle 3 - Peter.
>
> I wonder if we could have a location for long term experimental code in
> skunk?
>
> If the experiment into a modular build is successful, (my apologies for
> my recent lack of time), we could simply create an experimental module
> and compare it against the original.
>
We won't always be able to integrate an experiment with its proper
package until after the experiment has been done.
For example, my recent FastList changes involved a change in how a
FastList user scans the list, from one based on list.head() and
node.next() to making FastList Iterable. I did not do the changes to the
rest of outrigger to compile with the new interface until after I had
assured myself that at least one Iterable implementation was as fast as
the old implementation.
I'm also dubious about doing performance comparisons with different
environments for the code being compared. My ideal is a program that can
cycle among implementations in a single run. Next best is a program that
measures a run-time selected implementation, but with everything except
the code under test unchanged. Everything involved must be built with
the same compiler version and parameters, so I strongly prefer a single
build.
I'm not sure how all these issues would be handled in the modular build
environment.
Patricia
Re: Benchmark organization
Posted by Peter Firmstone <ji...@zeus.net.au>.
Patricia Shanahan wrote:
> I want to get going on some performance tuning, but believe it is best
> guided and controlled by well-organized benchmarks. To that end, I
> propose adding a place for benchmarks to the River structure.
>
> We will need several categories of benchmark code:
>
> 1. System level benchmarks. These benchmarks measure some public
> features, such as the outrigger JavaSpace implementation. For these, I
> think a similar structure to QA may be best. However, I need to
> understand how the QA harness links together clients and servers, and
> whether it has any special performance implications. We may need, for
> example, to add network delays to properly score implementations that
> involve different amounts of communication.
>
> 2. Internal benchmarks. These are more like unit tests, and need to
> mirror the main src package structure so that they can access
> non-public code.
>
> 3. Experimental code. In some situations it is useful to do run-offs
> between two or more implementations of the same class. We cannot have
> two classes with the same fully qualified name at the same time, so
> this type of test will need special copies of the classes with
> modified class names or package names. In addition to actually doing
> the tests and picking the implementation to go in the trunk, it is
> useful to keep discarded candidates around. One of them may turn out
> to be a better basis in a future performance campaign.
>
> Thoughts? Alternatives? Comments?
>
> Patricia
>
+1 to 1 and 2, not sure how to handle 3 - Peter.
I wonder if we could have a location for long term experimental code in
skunk?
If the experiment into a modular build is successful, (my apologies for
my recent lack of time), we could simply create an experimental module
and compare it against the original.