Bug #2091
closedBytecode generation: performance on .NET
0%
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:
-
Compile an XSLT
-
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
Please register to edit this issue