Project

Profile

Help

Support #1915

closed

Test case for Saxon XSLT Performance comparison

Added by Philip Fearon about 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
2013-10-01
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

This test case for XSLT shows a significant difference in performance for different Saxon versions

so I thought it might be of interest. On Saxon 9.5.1.2 the test runs 90 time faster than for Saxon 9.3.1.1.

I just ran the XSLT from the command line (in Windows 8) as follows:

java -cp "J:\SaxonPE9-4-0-9J\saxon9pe.jar" net.sf.saxon.Transform -t -xsl:xquery2xml.xsl -s:input-file1.xml -o:output/result.xml

Performance results are summarised below:

Version:                Time (ms)
SaxonPE9-3-0-11J        1899939
SaxonPE9-4-0-9J         2857
SaxonPE9-5-1-2J         2106

This is a non-typical test case in that the XSLT stylesheet functions as a lexer for XQuery code.

The input is initially processed as a sequence of unicode codepoints, but a lengthy regular

expression is used later to tokenize text that is not within XQuery comments or string-literals.

There's also a lot of tail-recursion going on.


Files

saxon-test.zip (40.5 KB) saxon-test.zip Philip Fearon, 2013-10-01 13:00
Actions #1

Updated by Michael Kay about 11 years ago

Thanks for supplying it. We're more used to getting such things when the change is the other way! We could do with a much more comprehensive set of regression tests for performance than we currently use.

Actions #2

Updated by Debbie Lockett over 10 years ago

  • Status changed from New to Resolved
  • Assignee set to Debbie Lockett

Test case added to the XT-Speedo benchmark test catalog. https://github.com/Saxonica/XT-Speedo

Please register to edit this issue

Also available in: Atom PDF