> Andrew Welch <> writes:
>
>> Running the following transform against that file using Kernow's
>> performance testing facility:
>>
>> [...]
>>
>> Gives this result:
>>
>> Ran 5 times
>> Run 1: 445 ms
>> Run 2: 178 ms
>> Run 3: 216 ms
>> Run 4: 335 ms
>> Run 5: 163 ms
>> Ignoring first 2 times
>> Total Time (last 3 runs): 714 ms
>> Average Time (last 3 runs): 238 ms
>
> This is consistent with what I got for XQuery. The test runs 100
> queries which translates to about 250 ms per query (and 0.9 ms
> for data binding). Provided that you hard-coded max age and
> gender into the transformation and don't parse the result, it is
> pretty close. I am not sure if in your test the XML document is
> re-parser for each run, though.
Yes both the stylesheet and source xml are re-parsed every time...
which is not ideal for comparing subtle stylesheet tweaks but in most
cases it's fine.
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/