hi, I was trying to benchmark Xerces parser on HP UX 11i. After running some tests, we observed
* SAX and DOM parsers have some shared global data of size 83k, so average amortized size of SAX parser is like 25k and of DOM 26.5k. (running to see how many live instances of SAX/DOM parser can have in memory say of 100MB ie scalability) * SAX Parser offers better performance than DOM parsers in terms of both time and memory. For file with 100-700 elements of 50 bytes/element, SAX parsing is nearly 1.5 times faster and has half the memory requirements. * Using above results for max XML file of 15k with 300 elements and 50 bytes/element, can we say a SAX parser will need 190k and DOM 310k plus the shared overhead of 83k memory. So using this can we extrapolate that we can have roughly 50 SAX parsers and 30 DOM parsers alive in 10MB memory to handle average load of XML files of size 15k-35k. Any feedback/comments is highly appreciated. Thanks Ritesh --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
