Xerces versus Crimson Benchmark performed for SAX, DOM and SAXDOMIX
<< Using Namespaces and Validation
XML Parsing Benchmark
Choosing the JDK >>
Crimson offers better SAX performance while Xerces builds the large DOM trees faster and consumes less memory for them.
When using both SAX and DOM APIs you could use Crimson if the DOM trees are small and you should consider using Xerces when the building of the DOM trees is a heavy task.
In our benchmark, Crimson was faster than Xerces during the mixed SAX-DOM parsing. This could mean that Crimson has no problems building the small DOM sub-trees. However, Crimson is not a good choice when the DOM sub-trees are large.
Testing the Parsers with JDK 1.3, 50000 records, no validation and no namespace support
Surprisingly, Xerces builds DOM trees two times faster than Crimson. It also needs less memory, despite its rich set of features.
Testing the Parsers with JDK 1.3, 50000 records, validation and namespace support
Crimson is very fast at DTD-based validation.
<< Using Namespaces and Validation
XML Parsing Benchmark
Choosing the JDK >>
|