[issue17573] add ElementTree XML processing benchmark to benchmark suite

Stefan Behnel report at bugs.python.org
Fri Mar 29 19:08:45 CET 2013


Stefan Behnel added the comment:

I considered lxml.etree support more of a convenience feature, just for comparison. Given that it's a binary package that doesn't run reliably on other Python implementations apart of CPython, I don't think it's really interesting to make it part of the benchmark suite. I'd rather add an explicit option to enable it than include it there.

I'm ok with the conditional import for ET, although I don't see a reason to exclude it. Why not be able to compare the performance of both implementations as well? There's a slowpickle benchmark, for example.

So, what about only testing cET by default and adding an explicit option "--etree-module=package.module" to change the imported module, e.g. "--etree-module=lxml.etree" to benchmark lxml or "--etree-module=cElementTree" to benchmark a separately installed 3rd party cET package?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17573>
_______________________________________


More information about the Python-bugs-list mailing list