I would appreciate if anyone could point me in the direction, or inform me of some benchmarks, which is comparing how Scala's XML library does compared to the typical solution in Java.
I'm thinking on measurements of parsing and selecting XML elements.
Thanks in advance.
Regards Stefan
These benchmarks from the "Anti-XML" team are a good place to start, and other parts of the site highlight some of the problems with the current scala.xml
approach.
Scales Xml has performance roughly 20-30% slower than Xerces/JAXP deferred (the default setting but overall worse JAXP option for large xml) details and charts.
Interestingly Scales is 20-30% faster than JAXP for full parsing while having the low memory usage of JAXP deferred. In both cases you get a fully immutable document. Scales is also typically 30-40% faster than Scala parsing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With