Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the ramp-up period in jmeter?

I ran a test plan with 5 users for a total of 20 seconds and what I am not able to understand is what ramp-up period is in actual. Does it means that each user will get 4 seconds or 20 seconds will be used in total for 5 users?

If case 1 is true(4 second for each user) then the first thread should be completed in 4 seconds but it took 6 seconds to complete it and still the result is passed and next user gets executed? This gets much confusing. I need to clear my doubt as I am not able to find any answers from all the inputs that are available here

like image 207
priya jain Avatar asked Oct 26 '18 05:10

priya jain


People also ask

What is ramp up time in performance testing?

What is ramp up? Ramp up is how long it takes from the start of your test (0 virtual users) to the maximum number of users you've selected. For the duration of the ramp up period, the number of users will increase at regular intervals until all intended users are running your script.

How set ramp up period in JMeter?

First, guess the average hit rate and then calculate the initial ramp-up period by dividing the number of threads by the guessed hit rate. For example, if the number of threads is 100, and the estimated hit rate is 10 hits per second, the estimated ideal ramp-up period is 100/10 = 10 seconds.

What is the meaning of ramp up time?

Ramp Up Time means the duration (measured in minutes) the flexibility asset (or pool of flexibility assets) take(s) to change output from normal operating output (demand or generation) to instructed output at the start of service delivery.


1 Answers

As per JMeter Thread Group Documentation:

Ramp-up Period

How long JMeter should take to get all the threads started. If there are 10 threads and a ramp-up time of 100 seconds, then each thread will begin 10 seconds after the previous thread started, for a total time of 100 seconds to get the test fully up to speed.

You have 5 users

  • if you set ramp-up period to 0 - all 5 users will start at once
  • if you set ramp-up period to 5 - JMeter will start with 1 user and will add an extra 1 user each second
  • if you set ramp-up period to 10 - JMeter will start with 1 user and will add an extra 1 user each 2 seconds
  • etc.

Once user is started it starts executing Samplers upside down (or according to Logic Controllers) when there are no more samplers to execute or loops to iterate - the thread is being shut down.

Check out JMeter Ramp-Up - The Ultimate Guide article for more information on configuring users arrival rate.


You might also be interested in Ultimate Thread Group which makes workload definition easier, moreover you will have a chart representing anticipated load. You can install Ultimate Thread Group using JMeter Plugins Manager

like image 171
Dmitri T Avatar answered Oct 20 '22 09:10

Dmitri T