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+cElement Tree: 184 secs
Python+pyexpat: 191 secs
Test System: 1.3GHz Celeron-M, 768mb RAM
More details and related source code is available at:
Regards
Sreeram
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEhw9crgn 0plK5qqURAhk2AJ 9oyjaikKUWuuS/4qnCeqPUbzo7XgC faRPq
bL3HEKdiL+5Irny jDI2hMtU=
=fN+O
-----END PGP SIGNATURE-----
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+cElement Tree: 184 secs
Python+pyexpat: 191 secs
Test System: 1.3GHz Celeron-M, 768mb RAM
More details and related source code is available at:
Regards
Sreeram
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEhw9crgn 0plK5qqURAhk2AJ 9oyjaikKUWuuS/4qnCeqPUbzo7XgC faRPq
bL3HEKdiL+5Irny jDI2hMtU=
=fN+O
-----END PGP SIGNATURE-----