Load Test Configuration – using a stepped ramp

One of the most common load testing mistakes made by beginners is their configuration of the user ramp rate. This is best illustrated with an example configuration that we see frequently. This chart (from the load test report produced by our load testing software) shows the min/max/average page durations (pink, red, tan) along with the number of virtual users (blue) running the test:

Example chart that shows a load test profile that ramps too fast

What information does this chart give us about the system being tested?

  1. At 30 users, the average page duration is around 20 seconds and the maximum page duration is around 110 seconds

By contrast, look at this chart from another load test report:

Example charts showing a load configuration using a stepped ramp

This chart tells us:

  1. At 100 users, page durations are minimal
  2. At 200 users, page durations have not degraded much from 100 users
  3. At 300-400 users, page durations have degraded significantly with average page durations in the 50-100 second range. However, the minimum page durations indicate that some pages are still responding very quickly.
  4. After 500 users, page durations have started to degrade non-linearly and even the minimum page durations have degraded seriously.

To summarize – the first test tells us only that performance is not good at 30 users. If 30 users was the goal, this test has not provided any information to indicate how far away we are from reaching that goal. If the goal in the second test was to support 500 users, it is easy to see that the system can currently support at least 40% of the goal – and there is probably a lot of optimization work remaining.

Note that the test configuration shown in the first example can be useful. This kind of test is usually referred to as a soak test. The purpose of a soak test is to run for a long time at the anticipated load to see if the performance degrades over time. This is frequently used to check for memory leaks or limits on other resources. However, soak tests are generally not used until the system is meeting the performance requirements.

When using a stepped ramp, it is important to hold at each user level for long enough to allow every page in all the scenarios to be exercised – usually at least several times. If all pages are not measured during the step, conclusions drawn from the results may be faulty.

Chris Merrill, Chief Engineer

About

When his dad brought home a Commodore PET computer, Chris was drawn into computers. 7 years later, after finishing his degree in Computer and Electrical Engineering at Purdue University, he found himself writing software for industrial control systems. His first foray into testing software resulted in an innovative control system for testing lubricants in automotive engines. The Internet grabbed his attention and he became one of the first Sun Certified Java Developers. His focus then locked on performance testing of websites. As Chief Engineer for Web Performance since 2001, Chris now spends his time turning real-world testing challenges into new features for the Load Tester product.

Add Your Comment

You must be logged in to post a comment.

Resources

Copyright © 2013 Web Performance, Inc.

A Durham web design company