Get Knowledge from Video instead of Content:

Tuesday, 29 November 2016

Think Time Calculator

PerfMatrix Site Link: https://www.perfmatrix.com/tps-calculator/

You can easily calculate Think Time by providing available inputs. Kindly use 0 (zero) in the respective fields in case of pacing think time:

Calculate Think Time:

No. of Users = 

End 2 End Response Time (in seconds)* = 
No. of Transactions in 1 iteration# = 
Transactions per second (TPS)$ = 
Pacing (in seconds)^= 

 Total Think Time (in seconds) = 

 Average Think Time between each transaction (in seconds) = 

where,

* Time to complete 1 iteration

# e.g. HomePage, Login, Search, Logout etc.


$ If you already have this number then well and good. In case you do not have TPS then calculate like this.

Total Iteration in an hour = 
No. of Transactions in 1 Iteration (in seconds)= 
 Transactions per second (TPS) = 

^ Delay between two iterations

Note: If you have 5 transactions, then think time function/element will be used 4 times like below: 
Start of Iteration
Transaction 1
Think Time ()
Transaction 2 
Think Time ()
Transaction 3
Think Time ()
Transaction 4
Think Time ()
Transaction 5

5 comments :

  1. What is the formula you used for total think time?

    ReplyDelete
    Replies
    1. Hi Nadeem,

      Please refer my below blog:
      http://perfmatrix.blogspot.com/2017/03/think-time.html

      Delete
  2. 1)will client provide these values ->Total Iteration in an hour & No. of Transactions in 1 Iteration (in seconds) if not then what are the sources to get these values.
    2)And what values will be usually provided by client?
    3) will End 2 End Response Time (in seconds) means the expected response time or the response time we get after running for 1 user?

    ReplyDelete
    Replies
    1. 1a. Total Iteration in an hour - Yes. For example you have an e-commerce application where 2000 orders are placed every hour with an average of 200 users. In this case 10 would be the iteration count in 1 hour.

      1b. No. of Transactions in 1 Iteration - No need to take this from client. This count you will get from your test script.

      2. Ideally, Number of user load, expected response time and target TPS

      3. It is an expected response time to complete 1 iteration.

      Delete