[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Here's how to benchmark your XSLT program's execut

Subject: Re: Here's how to benchmark your XSLT program's execution time
From: "George Bina george@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Nov 2014 05:57:21 -0000
Re:  Here's how to benchmark your XSLT program's execut
Hi all,

oXygen provides a profiling UI around the information we gather by registering as a trace listener to the XSLT engine, showing hot spots
http://oxygenxml.com/doc/ug-editor/#topics/hotspots-view.html
and the invocation tree
http://oxygenxml.com/doc/ug-editor/#topics/invocation-tree-view.html


A short video on this (<5min) is available in our videos section:
http://oxygenxml.com/demo/XSLT_Profiling.html

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 06/11/14 17:16, Michael Kay mike@xxxxxxxxxxxx wrote:

Order of evaluation is undefined in XSLT, and there is no guarantee
that $start is evaluated before the apply-templates call is evaluated.

Yikes!


So how do I write the XSLT program so that it is guaranteed that $start will be evaluated before the apply-templates call is evaluated?

There is no guaranteed-portable way of doing this. Doing an xsl:message that references $start before the apply-templates call would increase your chances; but there's still no guarantee that $start won't be evaluated much earlier, e.g. at compile time.

A safer way to get timing information with Saxon is to use a TraceListener. This is what the Saxon profiler (command line option -TP) does.

Michael Kay
Saxonica

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.