Modeling spike tests with HP Performance Center

This post will show how to create a Performance Spike Test using HP Performance Center. Spike testing can be characterised as an abnormal surge in traffic for a short period.  Reasons can include: An advertising campaign has just been launched, special offers being made available or an offer has just been opened and there is pent up demand.  Modelling this type of traffic is essential if a company wishes to avoid a PR disaster – and also stop a site being bought down.

  1. Create a new load test, and set the workload type to ’Basic schedule by group, number mode’
  2. Add the same script twice to the test. The first one is to represent the base (normal) load, the second one is for the Spike. In the example 100 virtual users is assigned to the base, and 300 virtual users to the Spike. This way a spike of total 400 virtual user load is defined. blood pressure and prosolution volume pills
  3. Select the first script instance, and set a ramp-up and a ramp-down in the Group schedule pane:
    • Start all virtual users gradually, 2 users every 10 seconds
    • Set the duration to 25 minutes
    • Stop all vusers 2 every 10 seconds
  4. Select the second script instance, and set a ramp-up and a ramp-down in the Group schedule pane:
    • Start the group 15 minutes after the load test begins
    • Start all virtual users gradually,1 user every second
    • Set the duration to 1 minutes
    • Stop all vusers: 1 in every second

It can be seen the grouped schedule can adjust how the different scripts are started. Using this method the shape of the load test can be precisely formed. For more complex scenarios you can also experiment with the synchronization of different script groups. Here the ,,start group when group xxx finishes” option in the group schedule pane can come very handy.

Leave a Reply

Your email address will not be published. Required fields are marked *