[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: Sun, 26 Jul 2020 20:18:36 -0000
Re:  Tool that measures the performance of an XSLT prog
Short answer: no.

Even instrumenting the Java code internally is virtually impossible: the more
you try to probe timings at fine granularity, the more you distort things like
hot-spot optimization and CPU caching that have a profound effect on
performance. Heisenberg comes to mind...

Remember also that execution of these constructs isn't going to be sequential.
If the processor actually needs to do a run-time check that the results of
random:sequence are all xs:doubles, then it's probably going to check each
item as it's produced, rather than starting the checking when all the items in
the sequence are available. There's also lazy evaluation to consider: there's
a good chance that the processor will be evaluating the variable $hiddennodes
as a "side-effect" of one of the two expressions that references it.

Michael Kay
Saxonica

> On 26 Jul 2020, at 20:36, Dr. Roger L Costello costello@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Folks,
>
> Here is a statement in my XSLT program:
>
> <xsl:variable name="who-list" select="random:sequence($hiddennodes *
$outputnodes, 0.0, math:pow($hiddennodes, -0.5))" as="xs:double*" />
>
> I would like to know the time required to execute each of these portions of
that statement:
>
> (1) math:pow($hiddennodes, -0.5)
>
> (2) $hiddennodes * $outputnodes
>
> (3) random:sequence($hiddennodes * $outputnodes, 0.0, math:pow($hiddennodes,
-0.5))
>
> (4) Time required to assign the variable the value
>
> (5) Time required to ensure the value of the variable is a sequence of zero
or more xs:double values
>
> Is there a tool that provides such fine-grain performance measurements?
>
> /Roger

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.