Project

Profile

Help

Bug #6090

closed

Performance regression SaxonCS 12

Added by Joel Kalvesmaki over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2023-06-23
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

The attached input and XSLT stylesheets show evidence for significant performance regression in SaxonCS, especially 12.

Method Environment Saxon prod Saxon Version Time (ms)
Oxygen java PE 9.9 50000
CLI java HE 10.6 46564
CLI .net EE 10.9 158244
CLI .net EE 11.5 264665
CLI .net EE 12.2 596690

I have determined that something significant is happening in the process from $pass-1b to $pass-2a. When outputting only $pass-2a, and commenting out the templates in mode pass-2a-bills with priorities 99 and 100 (lines 108, 122 in the pass2 file), results are faster, but the penalties under C# 12.2 are more pronounced:

Method Environment Saxon prod Saxon Version Time (ms)
Oxygen java PE 9.9 14900
CLI java HE 10.6 17206
CLI .net EE 10.9 51643
CLI .net EE 11.5 96078
CLI .net EE 12.2 206967

I did what I could to ensure that the tests were identical in all ways except the processor and environment, as noted above.

The regression is noticeable only in files megabytes in size. Smaller files are processed quite rapidly in SaxonCS.

Not sure if this situation is comparable to #5914 but I cite it for the sake of quick cross-reference.


Files

performance.zip (631 KB) performance.zip Joel Kalvesmaki, 2023-06-23 02:12
6201.PCF.xml (43.6 KB) 6201.PCF.xml Joel Kalvesmaki, 2023-07-05 22:07
6211.PCF.xml (74.2 KB) 6211.PCF.xml Joel Kalvesmaki, 2023-07-05 22:07
6651.PCF.xml (24.9 KB) 6651.PCF.xml Joel Kalvesmaki, 2023-07-05 22:07
6652.PCF.xml (48.9 KB) 6652.PCF.xml Joel Kalvesmaki, 2023-07-05 22:07
slax.rng (30.5 KB) slax.rng Joel Kalvesmaki, 2023-07-06 00:05
input-reduced.xml (467 KB) input-reduced.xml Matt Patterson, 2023-07-06 12:21

Please register to edit this issue

Also available in: Atom PDF