Suppose you have to achieve “50 transactions per second in avg. response 0.5 sec for 100 users in 1 hour” as goal of load test, so how much pacing or think time we should give in our script. 1 hour= 3600 sec Expected Total Transactions = 50*3600=180000 trns/hour by 100 Users Each user will perform 180000/100=1800 transactions per hour 1 transaction is taking avg 0.5 sec so 1800 transaction will take = (1800*0.5)/60=15min Now think time will for this run will be =60-15= 45 min =2700 sec 1800 transactions in 2700 sec so one transaction will take = 1.5 sec Total time to complete one iteration = 0.5+1.5=2 sec (avg) Lets cross check our calculation: 1800 transaction * 2 sec= 1 hour (Achieved). Hope it will help you to calculate pacing time.
Shashank Jain think time tumhe according to business requirement dena padega, upar example mai "1 transaction is taking avg 0.5 sec" mai think time add kar dena to pacing nikal aayegi...
Shashank Jain From Ravi's example you will get the pacing which will be once between each iteration... whereas think time depends on how many think time you have put in your script... for example in your script you have 10 think time function... and if your script's avg. response without think time and pacing is ~0.2 sec then 0.5 - 0.2 = 0.3 sec's you can distribute as total think time. So in this case (0.3/10) 0.03 sec will the be think time you can set globally.