wood burning stoves*
The moose likes XML and Related Technologies and the fly likes parser performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "parser performance" Watch "parser performance" New topic
Author

parser performance

rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
On what basis is the performance of parsers judged?
What are the factors taken into account while choosing a parser for an application?


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Parser performance is judged mostly on speed and memory consumption. How long does it take for the parser to parse a large document( > !MB ) and what is its memory footprint.
While choosing a parser you will have to consider issues such as -

  • The average size of the XML document(s) on hand.
  • The complexity of the documents.
  • The available memory resources on the machine.
  • The acceptable latency.
  • Once the document is parserd, do you need random access to the nodes? Is sequential access too limiting for your application?
  • Conformance to evolving XML standards and support for new specs and technologies. For instance, whether the parser has Schema support, Support for various DOM Levels etc

  • Cheers!
    ------------------
    Ajith Kallambella M.
    Sun Certified Programmer for the Java�2 Platform.
    IBM Certified Developer - XML and Related Technologies, V1.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
great words Ajith !!
Can you even give some information on the performance for the parsers available in the market. A comparison chart would be highly appreciated.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Checkout this link - http://65.1.136.127/developerlife/parsertest2/performance.html
It has some benchmarking statistics for various popular parsers. A word of caution though, this data is quite old and there are newer versions of these parsers available today. Not to mention there are more number of parsers available today that are not in the list. So take the data with a pinch of salt
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parser performance
 
Similar Threads
parsers for javascript
which parser to use under these conditions
Difference between SAX parser and DOM Parser
Parser
HTML parser