On Tue, 2007-05-15 at 12:29 +0800, Russell Keith-Magee wrote: > On 5/15/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > > Has anyone noticed a fairly recent order of magnitude slowdown in how > > long it takes to run the django test suite? I used to get times of > > about 14 seconds around March (at PyCon) but it's taking ~150 seconds > > now. It's quite possibly something that's changed in my setup, but I > > figured I'd see if anyone else has noticed the same thing. It doesn't > > seem like there have been *that* many tests added to django in the > > last couple of months. > > Yes Virginia, there has been a test slowdown :-) > > It happened around mid January, as a result of the tests that use > fixtures. Every time a fixture test is executed, it flushes the > contents of the database. Flushing is a slow operation. Unfortunately, > it's also a necessary operation for those tests.
Another data point: there's been almost a 100% slowdown -- from ~24s with SQLite client to 45-50s now on my reasonably grunty desktop machine -- with a bunch of the test client changes recently. I started seeing gradual increases in the runtime around the time you changed login, so in the last few weeks and it's gone up a bit more lately. I don't know what the actual cause is here, just using those "moments" as a way to place the changes on a timeline. I'm absolutely not pointing fingers or criticising here, because the functionality is very useful. I can usually write regression tests or proof-of-concept tests for almost anything I need pretty easily these days (I've been living inside the test suite a lot lately). PostgreSQL and MySQL backend tests haven't blown out nearly as much, which isn't too surprising since disk access and server overhead is much greater there, but they've increased slightly. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
