[issue3865] explain that profilers should be used for profiling, not benchmarking

Fredrik Lundh report at bugs.python.org
Sun Sep 14 14:35:33 CEST 2008


Fredrik Lundh <effbot at users.sourceforge.net> added the comment:

(the reason this is extra bad for C modules is that the profilers
introduce overhead for Python code, but not for C-level functions.  For
example, using the standard profiler to benchmark parser performance for
xml.etree.ElementTree vs. xml.etree.cElementTree will make ET appear to
be about 10 times slower than it actually is.)

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


More information about the Python-bugs-list mailing list