cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <baro...@nicolaken.com>
Subject Re: SpecCoon - Cocoon documentation generation performance (was Re: Cocoon for docs generation)
Date Mon, 11 Feb 2002 19:15:40 GMT
Gerhard Froehlich wrote:
>Nicola Ken wrote:
> >New tests on same configuration:
> >
> >Cocoon doc build - building jakarta-poi docs from sourceforge
> >On the same documentation set
> > (PIII 1Ghz, 512 Mb, W$2000SP1, Jdk Sun 1.3.1_01):
> >
> >16/01/2002 Anakia: 4 sec
> >16/01/2002 Cocoon: 50 sec
> >16/01/2002 Cocoon precompiled sitemap: 16 sec
> >
> >28/01/2002 Cocoon: 45 sec
> >28/01/2002 Cocoon  with cocoon.xconf tweaks: 38sec
> >28/01/2002 Cocoon precompiled sitemap: 18 sec
> >28/01/2002 Cocoon TreeProcessor: X (only index.html compiled)
> >
> >Cocoon 2.0.1: 36 sec
> >Cocoon 2.0.1precompiled sitemap: 14 sec
> >
> >01/02/2001 Cocoon: 33sec
> >01/02/2001 Cocoon with precompiled sitemap: 12 sec
> >01/02/2001 Cocoon with Xerces2: 32sec
> >01/02/2001 Cocoon precompiled sitemap with Xerces2: 12 sec
> >
> >(unneeded components loading not tweaked in these tests)
> >(loglevel is ERROR if not specified)
> >(loglevel doesn't change performance significantly if not specified)
> >11/02/2001 Cocoon: 35sec
> >11/02/2001 Cocoon+precompiled sitemap: 13 sec
> >11/02/2001 Cocoon+TreeProcessor loglevel INFO: 16 sec
> >11/02/2001 Cocoon+TreeProcessor: 12 sec
> >11/02/2001 Cocoon+Jispstore: 39sec
> >11/02/2001 Cocoon+Jispstore+precompiled sitemap: 13 sec
>                                                  ^^^^^^^^
> >11/02/2001 Cocoon+Jispstore+TreeProcessor: 14 sec
>                                            ^^^^^^^^
> >11/02/2001 Cocoon+Pizza: 41sec
> >11/02/2001 Cocoon+Pizza+precompiled sitemap: 13 sec
>                                              ^^^^^^^^

Does the store write something when Cocoon closes? Cocoon pauses for circa
1-2 seconds before stopping.
I've seen also that cleaning the generated docs dir but not the work dir
correctly gives + performance on subsequent runs. First run with
Jispstore+TreeProcessor is really 25 seconds, it's 16 after cleaning only
the generated docs, not the working directory.

>   PS: Did you noticed EOFException in the Jispstore?

Nope.

Now I upgraded my jdk to Jdk1.4rc3.
Damn, compilation of javac is *much* slower and the compiled sitemap doesn't
work on my system! :-O
Ok, so I put the jaxp stuff under JAVA_HOME/lib/endorsed, substituted
javac.jar with correct version and it works.
Sun.tools.javac.main classes are deprecated, with no sun alternative AFAIK.

Berin Loritsch said:
> I have a feeling that for pregeneration, caching is our enemy, due
> to the extra load on memory management and garbage collection.  I
> would like to see a test of a non-cached resource!

In these tests, "precompiled" means I ran the test at least once and deleted
only the docs dir, so that the sitemap needn't be compiled on next runs.
The caching is really needed because of the link crawling that makes pages
be called at least twice.
As for setup time, this 1.4 javac seems *slooow*.
An interesting thing is that with the persistent store we have 25 secs for
the first run, 15 the subsequent and 19 without. Makes sense :-)
Also, on all tests, putting pool-min="1" on the pipelines results in 1 sec.
less, all earned in cocoon setup.

(with jdk1,4rc3)
11/02/2001 Cocoon+precompiled sitemap: 15 sec
11/02/2001 Cocoon+precompiled sitemap+caching off: 21 sec
11/02/2001 Cocoon+use-persistent-cache=false: 19 sec
11/02/2001 Cocoon+TreeProcessor: 15 sec
11/02/2001 Cocoon+Jispstore+TreeProcessor: 16 sec

This makes me think of I thing I read ...

<doh url="http://java.sun.com/j2se/1.4/datasheet.1_4.html">
Record Breaking Performance
J2SE version 1.4 smashes performance records for enterprise scalability.
Using the SPECjbb2000 Java Business Benchmark on a three-tier server system,
version 1.4 shows an improvement of 58% over J2SE version 1.3.1. Dramatic
improvements have also been made for Java client applications. Internal
testing on JFC/Swing based applications on J2SE version 1.4 shows a 20%-80%
performance gain over version 1.3.1.
</doh>

It sure shines through ;-)

--
Nicola Ken Barozzi                 krysalis.org@nicolaken.com
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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


Mime
View raw message