[TIP] tests speed

Benji York benji at benjiyork.com
Wed Feb 13 07:07:27 PST 2013

On Wed, Feb 13, 2013 at 1:40 PM, andrea crotti
<andrea.crotti.0 at gmail.com> wrote:
> I'm trying to make sure that all my tests run as fast as possible, and
> they actually do:
> Ran 44 tests in 0.011s
> But the problem is that the actual time they take to run is much different:
> OK
> real    0m12.105s
> user    0m11.873s
> sys     0m0.170s
> where are these 12 seconds being lost then? (using nose)

strace -tt can be very illuminating in these situations.  As mentioned
by Marius, I suspect startup of one flavor or another is the dominating
time sink.
Benji York

More information about the testing-in-python mailing list