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

Re: Tool that measures the performance of an XSLT prog

Subject: Re: Tool that measures the performance of an XSLT program at a fine granularity?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jul 2020 10:18:32 -0000
Re:  Tool that measures the performance of an XSLT prog
> I guess, saving value of current-dateTime() at two different places within
an XSLT stylesheet, and computing the difference later might give us the time
spent by the enclosed XSLT instructions.
> For your use case, I think to do this, extracting the component expressions
into their own variables might help to utilize the approach I've suggested.
>
>

No, current-dateTime() is explicitly defined to give constant results
throughout an evaluation. That's because there isn't any defined order of
execution, so "later" has no meaning.

There is a function saxon:timestamp() designed to get around this. But at this
level of granularity the results are going to be meaninless.

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.