Subject: Re: [xsl] Tool that measures the performance of an XSLT program at a fine granularity? From: "Mukul Gandhi gandhi.mukul@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 27 Jul 2020 10:15:42 -0000 |
Hi Roger, On Mon, Jul 27, 2020 at 1:06 AM 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? > 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. -- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Tool that measures the pe, Michael Müller-Hille | Thread | Re: [xsl] Tool that measures the pe, Michael Kay mike@xxx |
Re: [xsl] case conversion with repl, Michael Kay mike@xxx | Date | Re: [xsl] Tool that measures the pe, Michael Kay mike@xxx |
Month |