XSLT with Xalan vs. STX with Joost
Asked Answered
A

3

6

Where can I find performance metrics (memory/time) for a non-trivial example of using XSLT (with Xalan) compared to using STX (with Joost)

Atlante answered 21/1, 2009 at 11:53 Comment(1)
Performance can vary drastically depending on what you are doing with XSL/STX. I think in the end you will have to write a prototype using both languages and benchmark how they perform on the specific application you are using them for.Extortionary
F
3

Probably there is no universal set of benchmarks. For XSLT there is (was?) XSLTMark, but this is for comparing the XSLT engines.

There is one page with the comparison of the same transformation written in different transformation languages.

Probably the best option is to model your problem, generate test data and measure the things you are interested in.

Frontolysis answered 5/2, 2009 at 23:45 Comment(0)
R
1

I agree in that real answers are best obtained by writing your own benchmark.

For what it's worth, my recollection is that many developers had high hopes for STX to be much faster than XSLT processors; but found the actual performance of implementations to fall short on expectations. Part of the reason may be that XSLT processor implementations are ridiculously well optimized by now, and thus can handle simple transformations very efficiently, all things considered. As such, STX implementations would also need to spend time honing implementation to same degree, to produce significant speed improvements for common transformations.

Remindful answered 12/5, 2009 at 6:19 Comment(0)
E
0

You really should use your own benchmark to cover the things you use.

But here's one data point, ( http://www.kindle-maps.com/blog/some-performance-information-on-joost-stx.html ), a 1.3GB XML file (from OpenStreetMap data), 1,800,000ish nodes were processed with a simple STX template in 3 minutes on a low end laptop.

Entomostracan answered 30/5, 2011 at 9:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.