[TIP] Use unittests for profiling?
W. Matthew Wilson
matt at tplus1.com
Thu May 13 14:39:10 PDT 2010
On Thu, May 13, 2010 at 4:00 PM, jason kirtland <jek at discorporate.us> wrote:
> The SQLAlchemy test suite implements a profiling test decorator that
> asserts that a test case uses only a certain number of function calls
> to get the job done. As written, it does not provide a direct measure
> of performance, more of a warning flag that goes up if a refactoring
> unexpectedly adds or removes overhead to a measured critical path.
I'm looking at your @profiling.function_call_count right now. I bet I
can learn a lot from that. Thanks for the link!
Matt
--
W. Matthew Wilson
matt at tplus1.com
http://tplus1.com
More information about the testing-in-python
mailing list