You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Radhakrishnan J <ra...@tavant.com> on 2004/05/11 00:09:41 UTC

Need inputs on a Performance test

Hi,

I have written a simple program to compare the performance of XmlBeans and
Castor. Pls find the code attached. The document used for testing was
created using the easypo schema that ships with XmlBeans release 1.0.2.
Castor seems to be doing better than XmlBeans. Thought should get some
inputs on this.

For XmlBeans-

Available bytes to read 67785
Time taken to unmarshal XML document 691
Time taken to retrieve PurchaseOrder 10
Time taken to retrieve customer element. 0
Time taken to retrieve an arbitrary line item 0
Time taken to retrieve all line items 10
Time taken to retrieve shipper. 0

For Castor -

Available bytes to read 67785
Time taken to unmarshal XML document 381
Time taken to retrieve customer element 0
Time taken to retrieve an arbitrary line item 0
Time taken to retrieve all line items 0
Time taken to retrieve shipper. 0

Of course, in the case of Castor, retrievals are straightforward because the
bean instance is available in-memory. But why is there a big difference in
terms in Xml parsing time ?

Thanks,
Radhakrishnan

 <<CompareTransformers.java>> 

Radhakrishnan J
714.634.3494 x 5744 ( work )
714.748.7700 # 509 ( hotel )