It is very possible I am holding gradlew wrong, like this:
https://i2.wp.com/www.adatosystems.com/wp-content/uploads/2019/03/wrong_tool.jpg

Mike McCandless

http://blog.mikemccandless.com


On Wed, Oct 20, 2021 at 10:21 AM Michael McCandless <
[email protected]> wrote:

> Jerome, if you are not sub'd to the Lucene dev list, then you maybe missed
> some of the replies here.  I'm CC'ing you back on here.
>
> More responses below:
>
> On Wed, Oct 20, 2021 at 8:45 AM Dawid Weiss <[email protected]> wrote:
>
>>
>>
>>> I was just annoyed yesterday at how long running a single test case
>>> takes.
>>>
>>
>> Use the background daemon, Mike.
>>
>
> I do!  I am now using pure Gradle/Lucene clean checkout defaults, from
> quite a while back (last time you scolded me ;) )
>
> And the defaults enable the daemon I think?  Yeah, just confirmed.
>
> But it's still slower than ant on 8.x was/is, plus it makes me pay a
> warmup penalty the first time (at defaults anyways).  I just tested 8.x in
> cwd lucene/core and JDK8: "time ant test -Dtestcase=TestIndexWriter
> -Dtestmethod=testGetCommitData > ignored" three times:
>
> real    0m2.609s
>
> user    0m10.583s
>
> sys     0m0.590s
>
>
> real    0m2.585s
>
> user    0m10.329s
>
> sys     0m0.827s
>
>
> real    0m2.610s
>
> user    0m10.458s
>
> sys     0m0.606s
>
>
>
> so then I tested on main, with JDK15, also in cwd lucene/core: "time
> ../../gradlew test --tests
> "org.apache.lucene.index.TestIndexWriter.testGetCommitData"
> -Ptests.seed=D708CEE0862DB94C > ignored":
>
> ** (first time discarded due to "daemon" warmup its fire up)
>
> real    0m4.447s
>
> user    0m2.956s
>
> sys     0m0.217s
>
>
> real    0m4.399s
>
> user    0m3.028s
>
> sys     0m0.233s
>
>
> real    0m4.404s
>
> user    0m3.021s
>
> sys     0m0.181s
>
>
> Now I know there are many differences besides ant/gradle!  Maybe JDK15's
> startup time got worse.  The random seed does not carry over.  Lucene's
> sources are different, etc.  And maybe I should care about a second or two
> :)  But I do!
>
> Also, I'm running on a 128 core crazy beast of a box (Ryzen Threadripper
> 3990X), 256 GB RAM, fast SSD, 10g networking, etc. :)
>
> Also I want to thank you for migrating us to Gradle in the first place --
> I know that was a crazy amount of work!  I'm trying not to complain (too
> much).  But I really don't like waiting :)  And yes maybe I just should
> learn how to use fancy IDE debuggers instead of SOP + rerun many times ;)
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>

Reply via email to