views:

428

answers:

2

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

+1  A: 

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.

Anonymous
+1  A: 

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.

StaxMan