You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by florent andré <fl...@4sengines.com> on 2010/12/26 18:05:36 UTC

$build.sh test is very long

Hi there,

Here comes a feedback during my build test experience. :)

If some of you have ideas for reduce the time to test it could be great
and helpful because with little time to test is less boring to run it
and easy to do it frequently.

IMO it's not a blocker for 2.0.4 release but something to take care /
improve for the 2.1.x branch.

Duration of some test is huge... see under.

So, total time is 14 minutes 18 seconds on my computer (a pretty good one).

I suppress here testCases < 1 second by this way :

$ ./build.sh test | grep took | grep -v 0. > build-test.log.Duration

And after a manual reorganisation, in build-test.log.Duration we have :

========== > 80 sec

Testcase: testFileRole took 94.553 sec
Testcase: testSave took 95.379 sec
Testcase: testAccessController took 86.983 sec
Testcase: testAccreditableManager took 86.183 sec

========== [50 70] sec

Testcase: testFileGroup took 51.136 sec
Testcase: testIdentity took 61.575 sec

========== [10 30] sec

Testcase: testUsecase took 27.693 sec
Testcase: testLinks took 11.297 sec
Testcase: testInbox took 11.724 sec

============ [5 10] seconds

Testcase: testNotification took 6.69 sec
Testcase: testXLinkCollection took 5.568 sec
Testcase: testResourceWrapper took 8.876 sec
Testcase: testResourceLinkRewriting took 5.635 sec
Testcase: testWorkflow took 8.665 sec
Testcase: testObservation took 8.12 sec
Testcase: testLoadPolicy took 6.142 sec
Testcase: testInstance took 6.545 sec
Testcase: testUsecase took 6.536 sec
Testcase: testProxyTransformer took 5.784 sec
Testcase: testRelativeUrls took 6.166 sec
Testcase: testUsecase took 6.581 sec
Testcase: testDefaultDocument took 7.158 sec
Testcase: testDefaultDocument took 6.979 sec
Testcase: testDocumentFactory took 6.734 sec
Testcase: testDocumentManager took 8.492 sec
Testcase: testPublication took 6.825 sec
Testcase: testCopyDocument took 6.959 sec
Testcase: testCheckIn took 6.911 sec

============ < 5 sec
Testcase: testImport took 3.634 sec
Testcase: testDefaultSiteTreeString took 4.288 sec
Testcase: testGetAbsoluteId took 3.54 sec
Testcase: testIndexUpdater took 3.654 sec
Testcase: testImport took 3.981 sec
Testcase: testMetaData took 4.493 sec
Testcase: testLinkRewriter took 1.195 sec

Have a good day.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: $build.sh test is very long

Posted by Rainer Schöpf <ra...@gmx.net>.
Hi Florent,

 > On 01/11/2011 12:04 AM, Rainer Schöpf wrote:
 > > Hi Florent,
 > > 
 > >  > If some of you have ideas for reduce the time to test it could be great
 > >  > and helpful because with little time to test is less boring to run it
 > >  > and easy to do it frequently.
 > >  > 
 > >  > IMO it's not a blocker for 2.0.4 release but something to take care /
 > >  > improve for the 2.1.x branch.
 > >  > 
 > >  > Duration of some test is huge... see under.
 > >  > 
 > >  > So, total time is 14 minutes 18 seconds on my computer (a pretty good one).
 > > 
 > > Hmm, on my home computer it takes less than 3 minutes. Running 
 > > 
 > >  time ./build.sh test
 > > 
 > > gives
 > > 
 > > real	2m47.885s
 > > user	3m24.081s
 > > sys	0m12.681s
 > 
 > Yep, strange...
 > 
 > I retest it with near from nothing open (a firefox with 4/5 tabs, and
 > Thunderbird), and I have :
 > BUILD SUCCESSFUL
 > Total time: 7 minutes 7 seconds
 > 
 > real	7m7.410s
 > user	2m55.370s
 > sys	0m8.450s
 > 
 > 
 > I have an Intel Core I5 with 4G of ram,
 > Ubuntu 64 bits 10.04.1 LTS,
 > java 1.6.0_22

So you need about 3 minutes of CPU, that looks ok. I guess what you see is the 
speed of your disk. Laptop disks are slower than big ones (and I use two disks 
as a mirror).

 Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: $build.sh test is very long

Posted by Florent André <fl...@apache.org>.

On 01/11/2011 12:04 AM, Rainer Schöpf wrote:
> Hi Florent,
> 
>  > If some of you have ideas for reduce the time to test it could be great
>  > and helpful because with little time to test is less boring to run it
>  > and easy to do it frequently.
>  > 
>  > IMO it's not a blocker for 2.0.4 release but something to take care /
>  > improve for the 2.1.x branch.
>  > 
>  > Duration of some test is huge... see under.
>  > 
>  > So, total time is 14 minutes 18 seconds on my computer (a pretty good one).
> 
> Hmm, on my home computer it takes less than 3 minutes. Running 
> 
>  time ./build.sh test
> 
> gives
> 
> real	2m47.885s
> user	3m24.081s
> sys	0m12.681s

Yep, strange...

I retest it with near from nothing open (a firefox with 4/5 tabs, and
Thunderbird), and I have :
BUILD SUCCESSFUL
Total time: 7 minutes 7 seconds

real	7m7.410s
user	2m55.370s
sys	0m8.450s


I have an Intel Core I5 with 4G of ram,
Ubuntu 64 bits 10.04.1 LTS,
java 1.6.0_22


Others can try and say ? (maybe I have a problem on my laptop, or with
my config)


++


> 
>  Rainer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: $build.sh test is very long

Posted by Rainer Schöpf <ra...@gmx.net>.
Hi Florent,

 > If some of you have ideas for reduce the time to test it could be great
 > and helpful because with little time to test is less boring to run it
 > and easy to do it frequently.
 > 
 > IMO it's not a blocker for 2.0.4 release but something to take care /
 > improve for the 2.1.x branch.
 > 
 > Duration of some test is huge... see under.
 > 
 > So, total time is 14 minutes 18 seconds on my computer (a pretty good one).

Hmm, on my home computer it takes less than 3 minutes. Running 

 time ./build.sh test

gives

real	2m47.885s
user	3m24.081s
sys	0m12.681s

 Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org