This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry
Date 2017-11-15.19:43:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510774996.46.0.213398074469.issue32039@psf.upfronthosting.co.za>
In-reply-to
Content
timeit is cool, but it's not appropriate for all performance testing.  For example, since it uses only a single Python process, anything that's cached is not a good candidate for timeit profiling.  The classic example is timing imports.  E.g. these are not the stats you're looking for:

$ python3 -mtimeit "import my.slow.module"

The timeit documentation should describe this caveat (are there others?) and possibly point to both cProfile and the 3rd party perf package as alternative ways to gather performance information.
History
Date User Action Args
2017-11-15 19:43:16barrysetrecipients: + barry
2017-11-15 19:43:16barrysetmessageid: <1510774996.46.0.213398074469.issue32039@psf.upfronthosting.co.za>
2017-11-15 19:43:16barrylinkissue32039 messages
2017-11-15 19:43:16barrycreate