[Numpy-discussion] Performance testing in unit tests

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Aug 27 18:03:34 EDT 2009


Hi list,

This is slightly off topic, so please pardon me.

I want to do performance testing. To be precise, I have a simple case: I
want to check that 2 operations perform with a similar speed (so I am
abstracted from the machines performance).

What would be the recommended way of timing the operation in a unit test?
I use nose, if this is of any use. I am more than happy to be pointed to
an example.

Cheers,

Gaël



More information about the NumPy-Discussion mailing list