xml processing speed test

K.S.Sreeram sreeram at tachyontech.net
Wed Jun 7 13:39:40 EDT 2006


All the recent discussions on xml parsing performance got me curious,
and i put together a small speed test for xml processing.

The test program was designed to have as minimal state requirements as
possible so that efficient 'stream' processing can be done using sax
style events.

Here's the quick summary of timings:

Input file size 80mb:
C/Expat:              4.25 secs
Python/cElementTree:  15.52 secs
Python/pyexpat:       16.10 secs

Input file size 800mb:
C/Expat:              105 secs
Python+cElementTree:  184 secs
Python+pyexpat:       191 secs

Test System: 1.3GHz Celeron-M, 768mb RAM

More details and related source code is available at:
http://sreeram.cc/?p=6


Regards
Sreeram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060607/ba7dd3e5/attachment.sig>


More information about the Python-list mailing list