Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT with Xalan vs. STX with Joost

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

like image 373
Vihung Avatar asked Jan 21 '09 11:01

Vihung


2 Answers

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.

like image 153
Anonymous Avatar answered Oct 10 '22 13:10

Anonymous


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.

like image 34
StaxMan Avatar answered Oct 10 '22 13:10

StaxMan