You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2009/08/23 02:59:14 UTC
[jira] Created: (LUCENE-1844) Speed up junit tests
Speed up junit tests
--------------------
Key: LUCENE-1844
URL: https://issues.apache.org/jira/browse/LUCENE-1844
Project: Lucene - Java
Issue Type: Improvement
Reporter: Mark Miller
As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Mark Miller <ma...@gmail.com>.
On Nov 25, 2009, at 9:32 PM, Erick Erickson <er...@gmail.com>
wrote:
> I suppose this implies that the
> hard-core committers agree that as long as failed tests
> are caught/corrected within a day things are fine.
Personally, I don't agree with that. Others are checking out,
updating, and using the tests to help verify and figure out their
changes. Breaks in the build are detrimental to this processes. If it
happens on the rare occassion fine, but you should run the the tests
before committing - it's being polite to others working with the
build. Don't break the build is a rule I'm strongly behind - and it
requires running the tests outside of Hudson.
-mark
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Erick Erickson <er...@gmail.com>.
I posted a rather long diatribe outlining why I think speed-ups
are a false goal for Lucene. Briefly, I'm convinced that as long
as the tests are run when Hudson builds Lucene, 99% of the
value of unit tests is realized. I suppose this implies that the
hard-core committers agree that as long as failed tests
are caught/corrected within a day things are fine.
Although coming from a background where unit
tests are not always required, my viewpoint may be
suspect <G>.
Erick@NotToBeConfusedWithHatcher.com....
On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA)
<ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782716#action_12782716]
>
> Michael McCandless commented on LUCENE-1844:
> --------------------------------------------
>
> Will we also speed up back-compat tests?
>
> > Speed up junit tests
> > --------------------
> >
> > Key: LUCENE-1844
> > URL: https://issues.apache.org/jira/browse/LUCENE-1844
> > Project: Lucene - Java
> > Issue Type: Improvement
> > Reporter: Mark Miller
> > Attachments: FastCnstScoreQTest.patch,
> hi_junit_test_runtimes.png, LUCENE-1844.patch
> >
> >
> > As Lucene grows, so does the number of JUnit tests. This is obviously a
> good thing, but it comes with longer and longer test times. Now that we also
> run back compat tests in a standard test run, this problem is essentially
> doubled.
> > There are some ways this may get better, including running parallel
> tests. You will need the hardware to fully take advantage, but it should be
> a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the
> beginnings of something we might be able to count on soon. 4.6 was buggy,
> and 4.7 still doesn't come with nice ant integration. Parallel tests will
> come though.
> > Beyond parallel testing, I think we also need to concentrate on keeping
> our tests lean. We don't want to sacrifice coverage or quality, but I'm sure
> there is plenty of fat to skim.
> > I've started making a list of some of the longer tests - I think with
> some work we can make our tests much faster - and then with parallelization,
> I think we could see some really great gains.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
RE: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Uwe Schindler <uw...@thetaphi.de>.
It's out and already on most of the mirrors...
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Michael McCandless [mailto:lucene@mikemccandless.com]
> Sent: Wednesday, November 25, 2009 8:31 PM
> To: java-dev@lucene.apache.org
> Subject: Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
>
> On Wed, Nov 25, 2009 at 1:01 PM, Erick Erickson <er...@gmail.com>
> wrote:
> > They're ready to go, but at Uwe's suggestion, I've been waiting for 3.0
> to
> > get settled before prompting someone to apply this patch. I was going to
> > generate a new patch for this and for 2037 (junit4 tests) just to make
> sure
> > they were easy to apply. But if you're willing, the patches are already
> > attached to the JIRA issues. Do note that the decision in
> > MinBooleanShouldMatch to stop checking the query after 100 rather than
> > checking all 1,000 is included in the patch....
>
> Uwe do you still think we should wait? 3.0.0 looks like it's "out"?
>
> > Do you want to apply the patches or should I regenerate? It's no big
> deal to
> > regenerate them and I'll have a better feel for reconciling any
> conflicts. I
> > don't know whether there even *are* any conflicts, but just in case....
>
> Let's hold up until we hear from Uwe...
>
> > For my info, though, if I have a more recent patch that *replaces* an
> > earlier patch, especially one that hasn't yet been applied, is it
> preferred
> > to delete the earlier patch when providing a new one?
>
> Actually in general I prefer people not delete the old patches...
> This way if there's a question/confusion we can always go back &
> compare old to new.
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Michael McCandless <lu...@mikemccandless.com>.
On Wed, Nov 25, 2009 at 1:01 PM, Erick Erickson <er...@gmail.com> wrote:
> They're ready to go, but at Uwe's suggestion, I've been waiting for 3.0 to
> get settled before prompting someone to apply this patch. I was going to
> generate a new patch for this and for 2037 (junit4 tests) just to make sure
> they were easy to apply. But if you're willing, the patches are already
> attached to the JIRA issues. Do note that the decision in
> MinBooleanShouldMatch to stop checking the query after 100 rather than
> checking all 1,000 is included in the patch....
Uwe do you still think we should wait? 3.0.0 looks like it's "out"?
> Do you want to apply the patches or should I regenerate? It's no big deal to
> regenerate them and I'll have a better feel for reconciling any conflicts. I
> don't know whether there even *are* any conflicts, but just in case....
Let's hold up until we hear from Uwe...
> For my info, though, if I have a more recent patch that *replaces* an
> earlier patch, especially one that hasn't yet been applied, is it preferred
> to delete the earlier patch when providing a new one?
Actually in general I prefer people not delete the old patches...
This way if there's a question/confusion we can always go back &
compare old to new.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Uwe Schindler <uw...@thetaphi.de>.
> junit 4 parallelization is still in its infancy. I think the docs for it
> are just in the changes file that it was first released with. That
> version had severe bugs that made it almost unusable - I think thats
> mostly fixed in a newer release. There is also a much better impl of one
> of the key classes (I think they call it computer) written by someone
> else that will eventually go into the code base I think (written by the
> guy(s) that I think found/fixed the initial buggy-ness) - essentially, I
> think its still unbaked.
There is another problem. Parallelization would only work with tests, that
do not change gloabl defaults. E.g. LocalizedTestCase changes the default
locale. If another test would run in Paralale, it would break.
Son only isolated tests can run in parallel. This LocalizedTestCase cannot
solved in another way. The same would have been in 2.9 with the
TokenStream.useOnlyNewAPI switch, but this is now longer the case for 3.1.
Uwe
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Erick Erickson <er...@gmail.com>.
Hmmm, the patches that I supplied for Junit4 *require* 4.7 anyway, which
I included in the patch... Is this a problem? Or just a document problem?
Erick
On Wed, Nov 25, 2009 at 1:14 PM, Mark Miller <ma...@gmail.com> wrote:
> junit 4 parallelization is still in its infancy. I think the docs for it
> are just in the changes file that it was first released with. That
> version had severe bugs that made it almost unusable - I think thats
> mostly fixed in a newer release. There is also a much better impl of one
> of the key classes (I think they call it computer) written by someone
> else that will eventually go into the code base I think (written by the
> guy(s) that I think found/fixed the initial buggy-ness) - essentially, I
> think its still unbaked.
>
> Here are some docs from the release notes of 4.6:
>
> http://sourceforge.net/project/shownotes.php?release_id=675664&group_id=15278
>
> Thats also an issue - it arrived only in 4.6 - so this would need to be
> optional unless we bumped up our req from 4 - and it really requires at
> least 4.7 for the fixes (if everything is even fixed).
>
> You also have to setup which tests run in parallel by hand essentially.
> No ant task to help with this last I looked. So it will probably end up
> being an alternate way to run the tests initially (at best).
>
> - Mark
>
> Erick Erickson wrote:
> > They're ready to go, but at Uwe's suggestion, I've been waiting for
> > 3.0 to get settled before prompting someone to apply this patch. I was
> > going to generate a new patch for this and for 2037 (junit4 tests)
> > just to make sure they were easy to apply. But if you're willing, the
> > patches are already attached to the JIRA issues. Do note that the
> > decision in MinBooleanShouldMatch to stop checking the query after 100
> > rather than checking all 1,000 is included in the patch....
> >
> > Do you want to apply the patches or should I regenerate? It's no big
> > deal to regenerate them and I'll have a better feel for reconciling
> > any conflicts. I don't know whether there even *are* any conflicts,
> > but just in case....
> >
> > For my info, though, if I have a more recent patch that *replaces* an
> > earlier patch, especially one that hasn't yet been applied, is it
> > preferred to delete the earlier patch when providing a new one?
> >
> > I'm not pleased with the Junit4 documentation, most of what I've been
> > able to glean has come from brave souls blogging. Does anyone have a
> > gold mine or is it as hit-or-miss as I think? There are hints of
> > parallelization capabilities in Junit4, but I'm having a hard time
> > finding anything in much depth..... The Junit website is pathetic, I
> > can't even find 4.7 javadocs, it keeps giving me 4.5, as evidenced by
> > no @Rule docs or @Intercept. And no version information in the
> > javadocs..... Or I'm completely missing the boat.... I was thinking
> > about getting the entire project over the weekend and generating my
> > own if I have the time
> >
> > Erick
> >
> > On Wed, Nov 25, 2009 at 11:49 AM, Michael McCandless (JIRA)
> > <jira@apache.org <ma...@apache.org>> wrote:
> >
> >
> > [
> >
> https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497
> > <
> https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497
> >
> > ]
> >
> > Michael McCandless commented on LUCENE-1844:
> > --------------------------------------------
> >
> > Is this ready to go in? I'd really love to see unit tests run
> > faster :)
> >
> > > Speed up junit tests
> > > --------------------
> > >
> > > Key: LUCENE-1844
> > > URL:
> > https://issues.apache.org/jira/browse/LUCENE-1844
> > > Project: Lucene - Java
> > > Issue Type: Improvement
> > > Reporter: Mark Miller
> > > Attachments: FastCnstScoreQTest.patch,
> > hi_junit_test_runtimes.png, LUCENE-1844.patch
> > >
> > >
> > > As Lucene grows, so does the number of JUnit tests. This is
> > obviously a good thing, but it comes with longer and longer test
> > times. Now that we also run back compat tests in a standard test
> > run, this problem is essentially doubled.
> > > There are some ways this may get better, including running
> > parallel tests. You will need the hardware to fully take
> > advantage, but it should be a nice gain. There is already an issue
> > for this, and Junit 4.6, 4.7 have the beginnings of something we
> > might be able to count on soon. 4.6 was buggy, and 4.7 still
> > doesn't come with nice ant integration. Parallel tests will come
> > though.
> > > Beyond parallel testing, I think we also need to concentrate on
> > keeping our tests lean. We don't want to sacrifice coverage or
> > quality, but I'm sure there is plenty of fat to skim.
> > > I've started making a list of some of the longer tests - I think
> > with some work we can make our tests much faster - and then with
> > parallelization, I think we could see some really great gains.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > <ma...@lucene.apache.org>
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> > <ma...@lucene.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Mark Miller <ma...@gmail.com>.
junit 4 parallelization is still in its infancy. I think the docs for it
are just in the changes file that it was first released with. That
version had severe bugs that made it almost unusable - I think thats
mostly fixed in a newer release. There is also a much better impl of one
of the key classes (I think they call it computer) written by someone
else that will eventually go into the code base I think (written by the
guy(s) that I think found/fixed the initial buggy-ness) - essentially, I
think its still unbaked.
Here are some docs from the release notes of 4.6:
http://sourceforge.net/project/shownotes.php?release_id=675664&group_id=15278
Thats also an issue - it arrived only in 4.6 - so this would need to be
optional unless we bumped up our req from 4 - and it really requires at
least 4.7 for the fixes (if everything is even fixed).
You also have to setup which tests run in parallel by hand essentially.
No ant task to help with this last I looked. So it will probably end up
being an alternate way to run the tests initially (at best).
- Mark
Erick Erickson wrote:
> They're ready to go, but at Uwe's suggestion, I've been waiting for
> 3.0 to get settled before prompting someone to apply this patch. I was
> going to generate a new patch for this and for 2037 (junit4 tests)
> just to make sure they were easy to apply. But if you're willing, the
> patches are already attached to the JIRA issues. Do note that the
> decision in MinBooleanShouldMatch to stop checking the query after 100
> rather than checking all 1,000 is included in the patch....
>
> Do you want to apply the patches or should I regenerate? It's no big
> deal to regenerate them and I'll have a better feel for reconciling
> any conflicts. I don't know whether there even *are* any conflicts,
> but just in case....
>
> For my info, though, if I have a more recent patch that *replaces* an
> earlier patch, especially one that hasn't yet been applied, is it
> preferred to delete the earlier patch when providing a new one?
>
> I'm not pleased with the Junit4 documentation, most of what I've been
> able to glean has come from brave souls blogging. Does anyone have a
> gold mine or is it as hit-or-miss as I think? There are hints of
> parallelization capabilities in Junit4, but I'm having a hard time
> finding anything in much depth..... The Junit website is pathetic, I
> can't even find 4.7 javadocs, it keeps giving me 4.5, as evidenced by
> no @Rule docs or @Intercept. And no version information in the
> javadocs..... Or I'm completely missing the boat.... I was thinking
> about getting the entire project over the weekend and generating my
> own if I have the time
>
> Erick
>
> On Wed, Nov 25, 2009 at 11:49 AM, Michael McCandless (JIRA)
> <jira@apache.org <ma...@apache.org>> wrote:
>
>
> [
> https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497
> <https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497>
> ]
>
> Michael McCandless commented on LUCENE-1844:
> --------------------------------------------
>
> Is this ready to go in? I'd really love to see unit tests run
> faster :)
>
> > Speed up junit tests
> > --------------------
> >
> > Key: LUCENE-1844
> > URL:
> https://issues.apache.org/jira/browse/LUCENE-1844
> > Project: Lucene - Java
> > Issue Type: Improvement
> > Reporter: Mark Miller
> > Attachments: FastCnstScoreQTest.patch,
> hi_junit_test_runtimes.png, LUCENE-1844.patch
> >
> >
> > As Lucene grows, so does the number of JUnit tests. This is
> obviously a good thing, but it comes with longer and longer test
> times. Now that we also run back compat tests in a standard test
> run, this problem is essentially doubled.
> > There are some ways this may get better, including running
> parallel tests. You will need the hardware to fully take
> advantage, but it should be a nice gain. There is already an issue
> for this, and Junit 4.6, 4.7 have the beginnings of something we
> might be able to count on soon. 4.6 was buggy, and 4.7 still
> doesn't come with nice ant integration. Parallel tests will come
> though.
> > Beyond parallel testing, I think we also need to concentrate on
> keeping our tests lean. We don't want to sacrifice coverage or
> quality, but I'm sure there is plenty of fat to skim.
> > I've started making a list of some of the longer tests - I think
> with some work we can make our tests much faster - and then with
> parallelization, I think we could see some really great gains.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> <ma...@lucene.apache.org>
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> <ma...@lucene.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: [jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by Erick Erickson <er...@gmail.com>.
They're ready to go, but at Uwe's suggestion, I've been waiting for 3.0 to
get settled before prompting someone to apply this patch. I was going to
generate a new patch for this and for 2037 (junit4 tests) just to make sure
they were easy to apply. But if you're willing, the patches are already
attached to the JIRA issues. Do note that the decision in
MinBooleanShouldMatch to stop checking the query after 100 rather than
checking all 1,000 is included in the patch....
Do you want to apply the patches or should I regenerate? It's no big deal to
regenerate them and I'll have a better feel for reconciling any conflicts. I
don't know whether there even *are* any conflicts, but just in case....
For my info, though, if I have a more recent patch that *replaces* an
earlier patch, especially one that hasn't yet been applied, is it preferred
to delete the earlier patch when providing a new one?
I'm not pleased with the Junit4 documentation, most of what I've been able
to glean has come from brave souls blogging. Does anyone have a gold mine or
is it as hit-or-miss as I think? There are hints of parallelization
capabilities in Junit4, but I'm having a hard time finding anything in much
depth..... The Junit website is pathetic, I can't even find 4.7 javadocs, it
keeps giving me 4.5, as evidenced by no @Rule docs or @Intercept. And no
version information in the javadocs..... Or I'm completely missing the
boat.... I was thinking about getting the entire project over the weekend
and generating my own if I have the time
Erick
On Wed, Nov 25, 2009 at 11:49 AM, Michael McCandless (JIRA) <jira@apache.org
> wrote:
>
> [
> https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497]
>
> Michael McCandless commented on LUCENE-1844:
> --------------------------------------------
>
> Is this ready to go in? I'd really love to see unit tests run faster :)
>
> > Speed up junit tests
> > --------------------
> >
> > Key: LUCENE-1844
> > URL: https://issues.apache.org/jira/browse/LUCENE-1844
> > Project: Lucene - Java
> > Issue Type: Improvement
> > Reporter: Mark Miller
> > Attachments: FastCnstScoreQTest.patch,
> hi_junit_test_runtimes.png, LUCENE-1844.patch
> >
> >
> > As Lucene grows, so does the number of JUnit tests. This is obviously a
> good thing, but it comes with longer and longer test times. Now that we also
> run back compat tests in a standard test run, this problem is essentially
> doubled.
> > There are some ways this may get better, including running parallel
> tests. You will need the hardware to fully take advantage, but it should be
> a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the
> beginnings of something we might be able to count on soon. 4.6 was buggy,
> and 4.7 still doesn't come with nice ant integration. Parallel tests will
> come though.
> > Beyond parallel testing, I think we also need to concentrate on keeping
> our tests lean. We don't want to sacrifice coverage or quality, but I'm sure
> there is plenty of fat to skim.
> > I've started making a list of some of the longer tests - I think with
> some work we can make our tests much faster - and then with parallelization,
> I think we could see some really great gains.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787003#action_12787003 ]
Michael McCandless commented on LUCENE-1844:
--------------------------------------------
Mark, if I were to also commit this to flex's back compat branch, will that cause conflicts when you next merge? How good is your svn merge process at not freaking out when it sees that some changes had already been merged in...?
(I'm eager to also speed up running "ant test-tag" on flex...).
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller updated LUCENE-1844:
--------------------------------
Attachment: hi_junit_test_runtimes.png
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782497#action_12782497 ]
Michael McCandless commented on LUCENE-1844:
--------------------------------------------
Is this ready to go in? I'd really love to see unit tests run faster :)
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated LUCENE-1844:
-----------------------------------
Attachment: LUCENE-1844.patch
moved/skipped calls to CheckUtils.check
In TestCustomScoreQuery, there was no purpose served that I could see by testing the same query over and over and over.
In TestBooleanMinShouldMatch, arbitrarily stopped calling check after 100 queries on the theory that we'd reached diminishing returns.
Drops test time by 3-4 minutes total...
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-1844:
---------------------------------------
Attachment: LUCENE-1844.patch
New patch, trims a few more tests. I'm done for now... if nobody objects I'll commit in a day or two.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836350#action_12836350 ]
Michael McCandless commented on LUCENE-1844:
--------------------------------------------
TestNorms fix looks great Robert!
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844_norms.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Reopened: (LUCENE-1844) Speed up junit tests
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir reopened LUCENE-1844:
---------------------------------
reopening as i have some ideas to speed up some tests.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746605#action_12746605 ]
Mark Miller commented on LUCENE-1844:
-------------------------------------
Should also be able to speed up TestBooleanMinShouldMatch somehow. Its nearly a minute as well.
In a loop of 1000 random queries, this is called each time:
QueryUtils.check(q1,s);
QueryUtils.check(q2,s);
Take it out and the test is like 2-5 seconds. Must be some way to optimize this down without losing coverage.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated LUCENE-1844:
-----------------------------------
Attachment: (was: LUCENE-1844.patch)
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1844.
----------------------------------------
Resolution: Fixed
This is fixed right?
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844_norms.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-1844:
---------------------------------------
Attachment: LUCENE-1844.patch
OK I started from Erick's last patch, and trimmed back some more tests -- patch attached.
Also I temporarily instrumented the tests to print msec per case -- with the attached patch, here are the test times that are > 1 sec:
{code}
Test times:
17.489 sec TestIndexWriter [test-tag]
17.315 sec TestIndexWriter
9.952 sec TestQualityRun
9.163 sec TestIndexWriterReader [test-tag]
9.008 sec TestIndexWriterReader
8.508 sec TestTimeLimitingCollector
8.410 sec TestTimeLimitingCollector [test-tag]
6.982 sec TestIndexReader
6.930 sec TestIndexReader [test-tag]
6.756 sec TestAtomicUpdate
6.740 sec TestAtomicUpdate [test-tag]
6.596 sec TestAtomicUpdate:testAtomicUpdates [test-tag]
6.303 sec TestTransactions
6.290 sec TestTransactions [test-tag]
6.287 sec TestIndexWriterExceptions
6.277 sec TestIndexWriterExceptions [test-tag]
6.140 sec TestTransactions:testTransactions [test-tag]
5.759 sec TestNRTReaderWithThreads
5.694 sec TestNRTReaderWithThreads [test-tag]
5.630 sec TestBooleanMinShouldMatch
5.622 sec TestBooleanMinShouldMatch [test-tag]
5.599 sec TestIndexReaderReopen [test-tag]
5.552 sec TestNRTReaderWithThreads:testIndexing [test-tag]
5.399 sec TestIndexReaderReopen
5.254 sec TestNumericRangeQuery64
5.099 sec TestSnapshotDeletionPolicy
5.081 sec TestIndexReaderClone
5.056 sec TestIndexReaderClone [test-tag]
4.962 sec TestSnapshotDeletionPolicy [test-tag]
4.852 sec TestBasics
4.836 sec TestBasics [test-tag]
4.813 sec TestNumericRangeQuery64 [test-tag]
4.525 sec TestPerfTasksLogic
4.494 sec TestStressIndexing
4.468 sec TestBoolean2
4.465 sec TestStressIndexing [test-tag]
4.358 sec TestSnapshotDeletionPolicy:testSnapshotDeletionPolicy [test-tag]
4.323 sec TestStressIndexing:testStressIndexAndSearching [test-tag]
4.297 sec TestBoolean2 [test-tag]
4.233 sec TestCustomScoreQuery
4.172 sec TestBooleanMinShouldMatch:testRandomQueries [test-tag]
4.115 sec TestCustomScoreQuery [test-tag]
3.981 sec TestNumericRangeQuery32
3.847 sec TestNumericRangeQuery32 [test-tag]
3.810 sec TestTimeLimitingCollector:testModifyResolution [test-tag]
3.708 sec TestDeletionPolicy
3.701 sec TestDeletionPolicy [test-tag]
3.613 sec TestIndexWriterReader:testDuringAddIndexes [test-tag]
3.605 sec TestSimpleExplanations [test-tag]
3.556 sec TestIndexWriter:testAddIndexOnDiskFull [test-tag]
3.491 sec TestLockFactory
3.478 sec TestLockFactory [test-tag]
3.381 sec TestSimpleExplanations
3.297 sec TestIndexWriterReader:testDuringAddDelete [test-tag]
3.181 sec TestComplexExplanations [test-tag]
3.125 sec TestIndexWriterExceptions:testRandomExceptions [test-tag]
3.028 sec TestIndexReader:testLockObtainFailed [test-tag]
3.020 sec TestDeletionPolicy:testExpirationTimeDeletionPolicy [test-tag]
3.008 sec TestIndexWriterExceptions:testRandomExceptionsThreads [test-tag]
2.938 sec TestIndexableBinaryStringTools [test-tag]
2.922 sec TestComplexExplanations
2.815 sec TestIndexableBinaryStringTools
2.686 sec TestQueryParserWrapper
2.626 sec TestQPHelper
2.547 sec TestMultiTermConstantScore [test-tag]
2.543 sec TestMultiTermConstantScore
2.527 sec TestMultiValuedNumericRangeQuery [test-tag]
2.510 sec TestIndicesEquals
2.489 sec TestHugeRamFile [test-tag]
2.444 sec TestHugeRamFile
2.435 sec MemoryIndexTest
2.383 sec TestTermRangeFilter [test-tag]
2.379 sec TestMultiValuedNumericRangeQuery:testMultiValuedNRQ [test-tag]
2.372 sec TestBoolean2:testRandomQueries [test-tag]
2.355 sec TestSpanExplanations [test-tag]
2.332 sec TestHugeRamFile:testHugeFile [test-tag]
2.328 sec TestBackwardsCompatibility [test-tag]
2.291 sec TestBackwardsCompatibility
2.277 sec JEStoreTest
2.245 sec TestSpanExplanations
2.239 sec TestMultiValuedNumericRangeQuery
2.207 sec TestSort [test-tag]
2.125 sec TestThreadedOptimize [test-tag]
2.122 sec TestIndexReaderReopen:testThreadSafety [test-tag]
2.107 sec TestSort
2.101 sec TestQueryParser
2.082 sec TestQueryParser [test-tag]
2.057 sec TestTermRangeFilter
2.055 sec TestThreadedOptimize
2.024 sec TestIndexReader:testLastModified [test-tag]
1.981 sec TestThreadedOptimize:testThreadedOptimize [test-tag]
1.937 sec TestStressIndexing2
1.932 sec TestStressIndexing2 [test-tag]
1.831 sec TestLazyBug [test-tag]
1.817 sec TestLazyBug
1.811 sec TestPhraseQuery
1.801 sec TestPhraseQuery [test-tag]
1.762 sec TestBufferedIndexInput
1.754 sec TestBufferedIndexInput [test-tag]
1.744 sec TestConcurrentMergeScheduler
1.729 sec TestCrash
1.716 sec TestCrash [test-tag]
1.702 sec TestFieldsReader [test-tag]
1.700 sec TestIndexReaderCloneNorms
1.698 sec TestFieldsReader
1.684 sec TestIndexReaderCloneNorms [test-tag]
1.678 sec TestStringIntern
1.644 sec TestIndexableBinaryStringTools:testEncodedSortability [test-tag]
1.615 sec TestConcurrentMergeScheduler [test-tag]
1.606 sec TestStringIntern [test-tag]
1.567 sec TestCustomScoreQuery:testCustomScoreByte [test-tag]
1.560 sec TestTermAttributeImpl
1.525 sec TestFieldMaskingSpanQuery
1.496 sec TestFieldMaskingSpanQuery [test-tag]
1.486 sec TestPayloadTermQuery
1.484 sec TestToken [test-tag]
1.484 sec TestToken
1.465 sec TestPayloadTermQuery [test-tag]
1.460 sec TestStringIntern:testStringIntern [test-tag]
1.456 sec TestTermAttributeImpl [test-tag]
1.424 sec TestBufferedIndexInput:testReadBytes [test-tag]
1.414 sec TestTimeLimitingCollector:testTimeoutGreedy [test-tag]
1.366 sec TestIndexWriterReader:testAddIndexesAndDoDeletesThreads [test-tag]
1.364 sec TestSpans [test-tag]
1.361 sec TestPayloadSpans [test-tag]
1.328 sec TestSort:testStringSort [test-tag]
1.327 sec TestSpans
1.323 sec TestDisjunctionMaxQuery [test-tag]
1.300 sec TestNorms [test-tag]
1.297 sec TestToken:testGrow [test-tag]
1.288 sec TestTimeLimitingCollector:testTimeoutMultiThreaded [test-tag]
1.281 sec TestTermAttributeImpl:testGrow [test-tag]
1.280 sec TestNorms
1.269 sec TestTimeLimitingCollector:testTimeoutNotGreedy [test-tag]
1.269 sec TestDisjunctionMaxQuery
1.265 sec TestPayloadSpans
1.244 sec TestPrefixInBooleanQuery [test-tag]
1.177 sec TestLockFactory:testStressLocks [test-tag]
1.154 sec TestNorms:testNorms [test-tag]
1.150 sec TestFieldsReader:testLazyPerformance [test-tag]
1.144 sec TestFieldCacheRangeFilter
1.141 sec TestPrefixInBooleanQuery
1.124 sec TestIndexableBinaryStringTools:testRandomBinaryRoundTrip [test-tag]
1.111 sec TestFieldCacheRangeFilter [test-tag]
1.105 sec TestIndexWriterMergePolicy [test-tag]
1.098 sec TestIndexReaderClone:testParallelReader [test-tag]
1.089 sec TestIndexWriter:testNoWaitClose [test-tag]
1.070 sec TestIndexWriterMergePolicy
1.064 sec TestIndexReaderClone:testCloneWriteToClone [test-tag]
1.060 sec TestCustomScoreQuery:testCustomScoreFloat [test-tag]
1.057 sec TestIndexWriter:testThreadInterruptDeadlock [test-tag]
1.049 sec TestIndexReaderClone:testMixedReaders [test-tag]
1.047 sec TestThreadSafe
1.039 sec TestIndexReaderCloneNorms:testNormsRefCounting [test-tag]
1.023 sec TestThreadSafe [test-tag]
1.012 sec TestIndexReader:testLock [test-tag]
1.012 sec TestFieldCacheSanityChecker [test-tag]
1.011 sec TestIndexReaderClone:testSegmentReaderDelDocsReferenceCounting [test-tag]
1.010 sec TestLockFactory:testDefaultRAMDirectory [test-tag]
1.009 sec TestLockFactory:testStressLocksNativeFSLockFactory [test-tag]
1.005 sec TestFieldCacheSanityChecker
1.003 sec TestStressIndexing2:testMultiConfig [test-tag]
{code}
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1844.
----------------------------------------
Resolution: Fixed
Fix Version/s: 3.1
Thanks Erick & Mark! Next step is to find some generic way to parallelize the tests...
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Issue Comment Edited: (LUCENE-1844) Speed up junit tests
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746605#action_12746605 ]
Mark Miller edited comment on LUCENE-1844 at 8/23/09 7:23 AM:
--------------------------------------------------------------
Should also be able to speed up TestBooleanMinShouldMatch somehow. Its nearly a minute as well (30s in attached list, but nearly a min on other hardware I have).
In a loop of 1000 random queries, this is called each time:
QueryUtils.check(q1,s);
QueryUtils.check(q2,s);
Take it out and the test is like 2-5 seconds. Must be some way to optimize this down without losing coverage.
was (Author: markrmiller@gmail.com):
Should also be able to speed up TestBooleanMinShouldMatch somehow. Its nearly a minute as well.
In a loop of 1000 random queries, this is called each time:
QueryUtils.check(q1,s);
QueryUtils.check(q2,s);
Take it out and the test is like 2-5 seconds. Must be some way to optimize this down without losing coverage.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782716#action_12782716 ]
Michael McCandless commented on LUCENE-1844:
--------------------------------------------
Will we also speed up back-compat tests?
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Assigned: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless reassigned LUCENE-1844:
------------------------------------------
Assignee: Michael McCandless
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-1844:
--------------------------------
Attachment: LUCENE-1844_norms.patch
i sorted all tests on reverse time, and looked at a few of the slowest tests, especially ones > 10 seconds.
* TestQualityRun is > 10 seconds, fixed to be < 1 second in LUCENE-2268 (will commit later)
* TestNorms is > 10 seconds, yet if it uses RAMDirectory instead of FSDirectory, its < 1 second.
attached is a patch, is there any reason TestNorms needs FSDirectory for good testing?!
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844_norms.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated LUCENE-1844:
-----------------------------------
Attachment: LUCENE-1844.patch
This supersedes the first patch I submitted. Apply after LUCENE-2037.
Render judgment on whether TestBooleanMinShouldMatch it's really OK to cut off checking the queries after 100.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated LUCENE-1844:
-----------------------------------
Attachment: LUCENE-1844.patch
Saves 3-4 minutes overall. Arbitrarily limited the TestBooleanMinShouldMatch to stop checking queries after 100.
I don't see much point in checking the *same* queries again and again in TestCustomScoreQuery, so I just moved the check outside the loop.
Apply this patch *after* LUCENE-2037 since TestCustomScoreQuery happens to be common to both patches.
Sorry about the noise with the license grant...
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787004#action_12787004 ]
Mark Miller commented on LUCENE-1844:
-------------------------------------
It should work fine.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1844.
----------------------------------------
Resolution: Fixed
OK fixed on back-compat tests, for trunk & flex, too.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782915#action_12782915 ]
Erick Erickson commented on LUCENE-1844:
----------------------------------------
OK, fire when ready Gridley. Pretty soon I'll understand when to comment and how to keep from multiple comments....
This patch does NOT use the Java5 features like generics etc. I've done that work and it'll be included in the TestCustomScoreQuery changes for JUnit4.....
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated LUCENE-1844:
-----------------------------------
Attachment: LUCENE-1844-Junit3.patch
Speeds up TestBooleanMinShouldMatch and TestCustomScoreQuery without using JUnit4
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1844) Speed up junit tests
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller updated LUCENE-1844:
--------------------------------
Attachment: FastCnstScoreQTest.patch
TestCustomScoreQuery appears to be the longest test - its about a minute or worse.
The test can be set to log output, where it may display explain info - on many, many loops this explain info is calculated, only to be *not* logged because logging is off by default.
1. Excessive explain calculations turned off if logging is off.
In a logging call, QueryUtils.check(query, searcher) is called (overall ends up in a tight loop) - but it keeps getting called with the same query objects and the same searcher.
2. QueryUtils.check(query, searcher) moved out of loop and only tested once for each query.
Test from approx 60 seconds to approx 5 seconds.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Reopened: (LUCENE-1844) Speed up junit tests
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless reopened LUCENE-1844:
----------------------------------------
Ugh -- I forgot to also commit the speedups on the back compat branch.
> Speed up junit tests
> --------------------
>
> Key: LUCENE-1844
> URL: https://issues.apache.org/jira/browse/LUCENE-1844
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch, LUCENE-1844.patch, LUCENE-1844.patch
>
>
> As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
> There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
> Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
> I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org