----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 3:00 PM
Subject: DO NOT REPLY [Bug 13560] - -XSLTC -DIAG is incorrect


> ------- Additional Comments From [EMAIL PROTECTED]  2002-10-23
19:00 -------
> We record the currentTimeMillis before the call
TransformerFactory.newTemplates
> () and after the call Transformer.transform(). The time reported by
the -diag
> option is the difference between the two. I did not make any change to the
way
> the execution time is measured.

 Perhaps it would make better sense to report both compilation time (before
TransformerFactory.newTemplates() until after Templates.newTransformer())
and execution time (before and after Transformer.transform()). XSLT
processing on the server side, where performance really matters, is
typically done by compiling once and running multiple times. Aggregating the
two numbers does not really help a user decide which processor is better for
a particular stylesheet.

 In fact, I suggest the addition of #iterations to -DIAG to eliminate the
huge constant factor incurred on the first iteration as a result of things
like class loading (and also to see the effects of the JIT compiler). The -n
option of XSLTC's Process does exactly this.

 My $0.02.

-- Santiago


Reply via email to