Project

Profile

Help

Bug #4340

closed

Performance degraded after moving from Saxon 8.9 to 9.8.0.15 (use case Enterprise constraint)

Added by Stefan Fritz over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2019-10-16
Due date:
% Done:

100%

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

Description

Customer upgraded to the latest version of our product which uses Saxon 9.8.0.15 EE. They came from an older version which used Saxon 8.9.0.14. They process thousands of documents per day with hundreds of XSLs. For two use cases (see other Saxon issue reported for the second use case) they see dramatic performance decrease which impacts their business.

Below you will find test results from our product(Sonic), from Saxon commandline and also from a Java test utility that simulates how our product uses Saxon. The ZIP contains sonicTest_EntConstraint.cmd and saxonTest_EntConstraint.cmd which allow you to reproduce the tests that I did. Further it contains the source code of the SonicXSLCmdLine.

You may notice that some of the results got even worse with 9.9. We have to stick to 9.8 for now as we still have Java 7 support. Therefore we would appreciate a patch release for 9.8 once the cause has been identified.

I sent you a download link for the ZIP with the reproducible to the support email address. The ZIP contains sensible customer data and therefore password protected. (please do not attach here!)

"Enterprise Constraint" use case summary:

With Saxon 8.9 as the baseline the processing time is 4x inside Sonic with Saxon 9.8.0.15. Saxon commandline processing time is 3x. SaxonXSLCmdLine is showing similar results to Sonic product.

RESULTS:

Sonic product Saxon 8.9 ca. 30s Saxon 9.8 ca. 120s Saxon 9.8 n/a (test stopped after 1 hour with optimization disabled)

SaxonXSLCmdLine RESULTS:  XSL: EntConstraint\enterpriseConstraint_xslt\Validation_Engine.xsl  JVM arguments: -Xss4m -Dxsl.useTracing=false  Saxon 9.8.0.15:    108120 ms  Saxon 9.9.1.2:    126700 ms

SaxonXSLCmdLine RESULTS:  XSL: EntConstraint\enterpriseConstraint_xslt\Validation_Engine.xsl  JVM arguments: -Xss4m -Dxsl.useTracing=false -Dsaxon.optimizationLevel=-c  Saxon 9.8.0.15:    234940 ms  Saxon 9.9.1.2:    230420 ms

Saxon command line:  XSL: EntConstraint\enterpriseConstraint_xslt\Validation_Engine.xsl  Saxon 8.9.0.4:        28360 ms  Saxon 9.1.0.9:     3782070 ms  Saxon 9.8.0.15:      94810 ms  Saxon 9.9.1.2:      128580 ms

Please register to edit this issue

Also available in: Atom PDF