
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Ugh. Should have read the original question completely before answering. Didn't realize the original question was wrt the article I referred to. :-)
I have done some benchmarking both using my own StaxPerf code base (available under StaxPerf module within woodstox repository), and using performance test suite implemented by Nux project. The results I have seen are in line with reported results of the article. I also recall Michael doing some benchmarking, mentioned in his blog. Based on these, my usual approximation is that Woodstox tends to be 20-40% faster for parsing than fastest Java alternatives. Difference is usually bigger for smaller input (i.e. fixed per-document overhead is smaller), and less for
huge files where things like i/o dominate.
This assuming that alternatives are used in somewhat optimal way, i.e. reusing SAX reader instances and Stax factories. Not doing so gives inflated overheads.
One often-neglected question is the output (xml writing) performance. Although I haven't seen quite as much testing with writers, Woodstox' performance seems good on that too. Some packages have surprisingly slow output rates (not Xerces, but some other packages, like alternate Stax implementations).
I haven't had a chance to test out native (C) implementations, and it is in general more challenging to compare these to Java, much harder to do fair comparisons.
That is why I was happy to see the comparison from the article; even though article itself was little bit short on details of the actual test environment and setup.
-+ Tatu +-
...
Hi,
I am a
newbie to this group…. Before I start actively using this parser, I have a
query regarding its performance..
As per the
parsing benchmarks reported at ….
http://www.xml.com/pub/a/2007/05/09/xml-parser-benchmarks-part-1.html?page=1
The
performance of Woodstox StAX is always better than even the Java SAX
Implementation.
Any
particular reason for the results to be like
this?
Did anyone
of you do similar kind of performance benchmarking of C/Java based parser
w.r.t to Woodstox.
Thanks!!
Regards,
Harbhanu
Choose the right car based on your needs.
Check out
Yahoo! Autos new Car Finder tool.
Pinpoint customers who are looking for what you sell.