[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML-enabled databases, XQuery APIs


Re:  XML-enabled databases
> Michael Kay wrote:
> > I would be very surprised if XML parsing contributes anything noticeable to
> > the cost of a database load (in shredding mode).

These benchmarks were run on different testbeds so this isn't an
apples-to-apples comparison.

This parser performance test of Expat (C, SAX) reported a best time of 0.05 sec
to parse an 884K document with 32K nodes. For 2500 documents, that would be
approx. 125 seconds.
http://okmij.org/ftp/Scheme/SSAX-benchmark-1.html

This benchmark compared two SQL APIs. It was written in C and executed in a
client-server mode, so there was network latency. It used an SQL INSERT, not a
bulk load.
http://www.datadirect.com/techres/odbc/docs/wp_odbcvsoci.pdf

The average time to INSERT 2500 rows with ODBC was 23.53 seconds. The minimum
execution time for an SQL SELECT query to return 2500 rows was 0.05 sec.

This single-cpu Java benchmark parsed simpler documents than the Expat test and
the data was closer to the SQL API test. It took about 2 seconds to parse 10,000
records using SAX, or about .5 seconds to parse 2500 records.
http://www.devsphere.com/xml/benchmark/method.html

This Python benchmark took between 2.32 and 3.97 seconds for a 3.3 MB document.
http://www.oreillynet.com/pub/wlg/6291

My guess is if these benchmarks were all run on the same testbed under the same
conditions, we'd see the same pattern:

The parsing overhead for loading a database is negligible if we're processing
simple documents, but becomes more significant as document size grows.


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.