Get Knowledge from Video instead of Content:

Thursday 1 December 2016

Performance Testing Quiz - XVIII: Solutions

Yesterday's quiz was based on the basic formula:

No. of Users = (TPS/No. of Transactions)*(RT+TT+Pacing)
where 
RT: Response Time
TT: Think Time
For a quick calculation, you can bookmark these calculators:
1. TPS Calculator
2. Pacing Calculator
3. User Load Calculator
4. Think Time Calculator 
5. LG Calculator 


Solutions:
1. Based on the above-given formula:
=> 100 = (2.5/5) X (15 + 15 + Pacing)
=> 100 = 0.5 X (30 + Pacing)
=> Pacing+ 30 = 100/0.5
=> Pacing = 200 - 30
=> Pacing = 170

2. Based on the above-given formula:
=> 500 = (5.13/18) X (180 + TT + 10)
=> 500 = 0.285 X (190 + TT)
=> TT + 190 = 500/0.285
=> TT = 1754.4 - 190
=> TT = 1564.4
=> Think time per transaction = 1564.4/(No. of Transactions-1)
=> Think time per transaction = 1564.4/17
=> Think time per transaction = 92.0




3. Based on the above-given formula:
=> 80 = (TPS/5) X (50 + 10 + 20)
=> 80 = (TPS/5) X 80
=> (TPS/5) = 80/80
=> TPS = 1 X 5
=> TPS = 5

4. Based on the above- given formula and figures:
=> TPH = TPS X 3600
=> TPH = 5 X 3600
=> TPH = 18000




5. Based on the above-given formula and figures:
=> IPS = TPS / No. of Transactions
=> IPS = 5 / 5
=> IPS = 1

6. Based on the above-given formula:
=> Users = (2.6/20) X (100 + 20 + 10)
=> Users = 0.13 X 130
=> Users = 16.9 (approx 17)




7. Based on the above-given formula:
=> Users = (1.2/1) X (0.5 + 0 + 2)
=> Users = 1.2 X 2.5
=> Users = 3

8. Based on the above-given formula:
=> Users = (1.2/2) X ((0.5 + 0.5 )+ 0 + 2)
=> Users = 0.6 X (1 + 0 + 2)
=> Users = 0.6 X 3
=> Users = 1.8 (approx 2)




9. Answer: Yes

10. In case of 1 transaction, you can not provide think time. Hence answer is zero.


No comments :

Post a Comment