16.4.11

You have to setup and tear down

Recently I witnessed the execution of performance test runs that did not include the elements necessary for successful and reliable result generation.

The test run should have included the following activities:

  1. Test setup
    1. Seed the database with fresh data
    2. Rebuild indexes
    3. Recreate statistics
  2. Test execution and
  3. Test tear down
    1. Delete data generated during the test
    2. Clear caches
    3. Recycle application pools
    4. Remove all database deadlocks

The initial performance run included steps 1-2; subsequent runs only included step 2. When the results from all runs where compared, it was observed that the performance of the system under test(SUT) gradually deteriorated.

The main point is that without proper tear down and setup after each performance run, the tests were measuring a different SUT each time.

For performance comparisons to be meaningful, one has got to compare similar SUTs.

If you can’t perform steps 1-3 because of complexities in your environment, then abandon your performance tests until these prerequisites are resolved.

No comments: