Friday, 21 January 2005

Constant time test suite

One strange thing that I have come across lately is that our test suite at work seems to be running constant time. I have more than doubled the number of tests in our suite since I last wrote about it (I think) and it takes about the same amount of time. Humm... I've got a bottle neck somewhere. But it's a weird thing none the less. I just thought that it was funny: double the amount of work, and it still does it in the same amount of time -> it can do infinite amount of work in the same amount of time. Hummm, well maybe not.

3 comments:

  1. Too bad your application isn't that efficient. Imagine an application that could do an infinite amount of work, in a finite amount of time. Is it taking the exact same time? and how long does it take to run the test suite. It probably has something to do with running slow until everything gets loaded into memory, and then blazing through eveything else.

    ReplyDelete
  2. Humm... I wonder if that's how quantum computers will be perceived... I'll have to think about that soon.
    It never takes the exact same time... it usually varies around 400 seconds (up to 460) on my computer. Mind you, "one" of our tests tears down, rebuilds, and populates the db to have a clean run. Most a lot more simple than that though.

    ReplyDelete