Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Think time and Pacing Time in Performace testing

Pacing is used to achieve X number of iterations in X minutes, But I'm able to achieve x number of iterations in X minutes or x hours or x seconds by specifying only think time without using pacing time.

I want to know the actual difference between think time and pacing time? pacing time is necessary to mention between iterations? what this pacing time does?

like image 857
keerthyramachandran Avatar asked Jan 29 '15 04:01

keerthyramachandran


People also ask

What is think time in performance testing?

Think times are used to simulate human behavior that causes people to wait between interactions with a website. Think times occur between requests in a web performance test and between test iterations in a load test scenario. Using think times in a load test can be useful in creating more accurate load simulations.

What is meant by pacing in performance testing?

What is Pacing? Pacing is used during load tests to make sure we are running the test with desired transaction per second. It's the time difference between each complete iteration of business flow. It helps us to control the count of requests sent to the server per second.

How is think time and pacing calculated?

Here RT+TT is Script Execution Time SET which you can calculate by running script once and adding up all the RT of transactions and all think times. Assume SET to be 60 seconds. Now Putting all values in Little's Law: 50 = 16.66 (60 - Pacing) Pacing = 60 - 50/16.66 Pacing = 57 secs (approx).

How does Jmeter calculate pacing and think time?

Add a Throughput Shaping Timer (Thread Group->Add->Timers->) . We have to achieve 100 requests by 5 users ,1 users will execute 20 requests. RPS (Request per second)= total requests/ duration in minute = 100/5*60 = 0.333 i.e 0.35 request per second per user . for 2 users RPS = 0.70 rps.


1 Answers

Think time is a delay added after iteration is complete and before the next one is started. The iteration request rate depends on the sum of the response time and the think time. Because the response time can vary depending on a load level, iteration request rate will vary as well.

For constant request rate, you need to use pacing. Unlike think time, pacing adds a dynamically determined delay to keep iteration request rate constant while the response time can change.

For example, to achieve 3 iteration in 2 minutes, pacing time should be 2 x 60 / 3 = 40 seconds. Here's an example how to use pacing in our tool http://support.stresstimulus.com/display/doc46/Delay+after+the+Test+Case

like image 170
Vadim Kleyzit Avatar answered Sep 30 '22 17:09

Vadim Kleyzit