Project

Profile

Help

Bug #2091

closed

Bytecode generation: performance on .NET

Added by Jeff Monnette over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Category:
Performance
Sprint/Milestone:
-
Start date:
2014-06-16
Due date:
% Done:

0%

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

Description

We are using the Saxon .NET EE API (version 9.4.0.6) for XSLT processing and are experiencing very different performance characteristics when running in licensed mode vs unlicensed mode. In licensed mode, compile time, transformation time, and memory consumption are significantly worse.

I've created a test harness that repeats the following 100 times:

  1. Compile an XSLT

  2. Apply the XSLT to 24 different XML files

Unlicensed mode

Max XSLT Compile 1.18 seconds

Avg XSLT Compile 151 milliseconds

Max Transform (XML file #1) 380 milliseconds

Avg Transform (XML file #1) 84 milliseconds

Memory Usage (at iteration 25) 36.71 MB

Total Elapsed Time 00:03:39

Licensed mode

Max XSLT Compile 179 seconds

Avg XSLT Compile 87.848 seconds

Max Transform (XML file #1) 2069 milliseconds

Avg Transform (XML file #1) 670 milliseconds

Memory Usage (at iteration 25) 588.29 MB

Total Elapsed Time 02:08:55

Observations

  • Licensed mode is orders of magnitude slower and higher memory usage

  • In Licensed mode, compilation got progressively slower with each iteration

  • In Licensed mode, the test harness failed after iteration 85 with an out of memory exception

Please let me know if there is more information that I can provide to help resolve the issue.


Files

image.png (11.4 KB) image.png Jeff Monnette, 2014-06-17 04:01
image.png (11.2 KB) image.png Jeff Monnette, 2014-06-17 04:01
image.png (11.6 KB) image.png Jeff Monnette, 2014-06-17 04:01
SaxonTestHarnessSimple.zip (15.9 MB) SaxonTestHarnessSimple.zip Jeff Monnette, 2014-06-17 04:01

Please register to edit this issue

Also available in: Atom PDF