cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Koberg" <...@koberg.com>
Subject Re: XSLT benchmarks: dbonerow
Date Thu, 21 Feb 2002 03:37:14 GMT
You know... I wonder why you guys don't spend time on optimizing the XSL (I
know Steven Noels is). This is most probably the bottleneck you are
experiencing?? You guys are taking the path away from general adoption...


----- Original Message -----
From: "Jacek Ambroziak" <jacek_ambroziak@yahoo.com>
To: <xalan-dev@xml.apache.org>; <cocoon-dev@xml.apache.org>
Cc: <stefano@apache.org>
Sent: Wednesday, February 20, 2002 7:24 PM
Subject: XSLT benchmarks: dbonerow


> Setting the stage:
>
> Today's XSLTC translets perform abysmally on the
> 'dbonerow' benchmark.
> The XML document is a set of 10^4 records and the
> stylesheet contains
> one template designed to match (and process) one of
> the records;
> XSLT essentially performs a search by matching.
>
> On my machine 10 iterations of 'dbonerow' take
> Saxon/XT/Xalan approx. 20 sec
> compared to 7 times longer for a translet. The time
> loss is so huge that
> XSLTC looses all gains from other tests and comes
> last.
>
> Towards a better tomorrow:
>
> I have rewritten XSL as follows:
>
> <xsl:template match="row[id = '0432']">
> stuff
> </xsl:template>
>
> to
>
> <xsl:template match="row">
>   <xsl:if test="id = '0432'">
>     stuff
>   </xsl:if>
> </xsl:template>
>
> Now Saxon/XT/Xalan still need around 20 seconds
> (although they too prefer
> the second variant). A translet, however, takes only
> 0.5 second
> (or even 68msec w/o printing output).  Used to be 7
> times slower
> -- now is 40 times faster. This is shocking!
>
> with this rewrite the magic numbers in my environment
> are:
>
> XSLTC   780
> XT      482
> Saxon   304
> XalanJ  207
>
> Obviously, the compiler is doing something VERY WRONG
> for this test
> (and presumably for 'patterns', 'decoy', etc.)
>
> So there is hope.
>
> Fixing the problem will not be easy; not only I've
> forgotten many
> implementation details, but the code has changed since
> I last worked on it
> (not always to my liking :-( )
>
> --Jacek
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


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


Mime
View raw message