camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Speeding up our unit tests in camel source code
Date Sun, 16 Jul 2017 12:14:10 GMT
Hi

And now its below 10 minutes on my laptop.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:47 min



On Sat, Jul 15, 2017 at 4:55 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> On Sun, Jul 9, 2017 at 7:00 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>> On Sun, Jul 9, 2017 at 1:06 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>> Hi
>>>
>>> Btw before I got started on this, the testing time for camel-core on
>>> my laptop was around 27 minutes.
>>> Now its down to around 18 minutes.
>>>
>>
>> And now its down to 13.5 minutes. So that is 100% faster than before ;)
>>
>
> And I cut 2 minutes down, so its 11.5 minutes on my laptop now.
>
>
>>
>>> On Sun, Jul 9, 2017 at 11:01 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>>> Hi
>>>>
>>>> I have been working on speeding up our unit tests in camel-core. With
>>>> the help of awaitility and reducing thread sleeping and other means to
>>>> speedup the tests. For example the unit tests that consume from a file
>>>> endpoint could be speeded up by setting the delay to be quicker
>>>> instead of the default 1 sec initial delay etc
>>>> https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-11446
>>>>
>>>>
>>>> I found with the help of the internet and with my limited awk/sed
>>>> skills hacked together this script to find the slow test classes
>>>>
>>>> grep -h "<testsuite" `find . -iname "TEST-*.xml"` | sed "s/\"//g" |
>>>> awk '{print $5"\t\t"$4}' | sort
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Claus Ibsen
>>>> -----------------
>>>> http://davsclaus.com @davsclaus
>>>> Camel in Action 2: https://www.manning.com/ibsen2
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> http://davsclaus.com @davsclaus
>>> Camel in Action 2: https://www.manning.com/ibsen2
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> http://davsclaus.com @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message