xml processing speed test

K

K.S.Sreeram

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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhw9crgn0plK5qqURAhk2AJ9oyjaikKUWuuS/4qnCeqPUbzo7XgCfaRPq
bL3HEKdiL+5IrnyjDI2hMtU=
=fN+O
-----END PGP SIGNATURE-----
 

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,104
Latest member
LesliVqm09
Top