Re: [sage-devel] Timing doctests

2012-01-18 Thread Robert Bradshaw
In general we would like to avoid writing doctests that are large only to take a measurable amount of time, but you could look into using cputime() with the first invocation and then making sure the second call is < 0.0x * (first call time). On Wed, Jan 18, 2012 at 8:05 AM, Michael Orlitzky wrote

[sage-devel] Timing doctests

2012-01-18 Thread Michael Orlitzky
Is there an existing way to doctest for performance regressions? I have in mind: http://trac.sagemath.org/sage_trac/ticket/12292 If I create a big enough matrix, I can make charpoly() take, say, N seconds. The second call should take around 0 seconds. I would like to test that 0http://groups.go