Get Knowledge from Video instead of Content:

Friday 25 November 2016

No. of Users Calculator (Thread Calculator)



You can calculate no. of VUsers (Threads) by providing available inputs. Kindly use 0 (zero) in the respective fields in case of no pacing or think time.  

Calculate No. of VUsers (Threads):

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)~ =

 No.of VUsers (Threads) =

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 no. of Iterations in an hour = 
No. of Transactions in 1 Iteration (in seconds)#= 
 Transactions per second (TPS) = 
^ Dealy between two iterations
Total think time is the sum of all the think time used in the script

Related Topic:

19 comments :

  1. Gagan..It was really awesome..but can elaborate the logic it might be useful..if possible please consider my request.--Thanks!

    ReplyDelete
    Replies
    1. Logic is based on basic formula:

      No. of Users = Response Time * TPS

      Delete
    2. this is for without pacing right.please correct me if wring

      Delete
    3. Hi Manju,

      Response time includes Pacing, Think time and End to end response time. If I mention all these 3 terms in the formula then it would be like this:

      No. of Users = (End to End Response Time + Pacing + Think Time) * TPS

      Delete
  2. what is end to end response time?

    ReplyDelete
  3. End to end response time is a sum of response time of all transactions.

    Example:
    Login: 2 sec
    Search: 5 sec
    Order Submission: 4 sec
    Logout: 1 sec

    So, end to end response time will be 12 sec.

    If end to end response time is varying then you have to use dynamic pacing, so that required throughput can be achieved.

    ReplyDelete
  4. Hi Gagan, how to calculate dynamic pacing based on changing response time?

    ReplyDelete
    Replies
    1. Hi Sri,

      Refer the below blog and choose 3 options which is explained in the blog.

      http://perfmatrix.blogspot.in/2017/03/hp-loadrunner-runtime-settings-pacing.html

      Delete
  5. Hi Gagan,what is mean of no. Of transactions?

    ReplyDelete
    Replies
    1. Transactions like HomePage, Login, Logout etc.

      Delete
  6. Hi Gagan ,I use the formula which is mention by you
    No of user = Response time * TPS
    Response time =15 s
    TPS = 0.860 s
    According to your calculator it show 2.15 user and my calculation show 13 user .
    Please correct me

    ReplyDelete
    Replies
    1. Hi,

      Even I am getting 12.9 (~13). Kindly use proper value for No. of transaction, pacing and think time. I used below values:

      End 2 End Response Time (in seconds)* = 15

      No. of Transactions in 1 iteration# = 1

      Transactions per second (TPS)$ = 0.86

      Pacing (in seconds)^ = 0

      Total Think Time (in seconds) = 0

      No. of Users = 12.9

      Delete
  7. I have doubt like how can we calculate vusers without knowing the application and infrastructure of application. In one of your explanation say you have users 13 on what base you have calculate it please let us know .

    ReplyDelete
    Replies
    1. Hi Rayini,

      May I know in which post you have read 13 Vusers? so that I can explain you better.

      Delete
  8. This is simply awesome !
    you have created all these calculators?

    ReplyDelete
  9. Hi Gagan,

    My end to end response time is 0.04 seconds which includes 2 API calls (let's consider this as 2 transactions). No think time and pacing

    TPS rate is 0.42 which is known

    When I used your calculator, it says the number of users required is 0.0084

    But when I apply your logic which I think is based on Little's Law i.e.,
    No. of Users = Response Time * TPS
    No of users = (0.04+0+0) * 042 = 0.016

    Can you please tell me what I am missing here? Correct me if I am wrong

    ReplyDelete
  10. Please use below calculator:

    https://www.perfmatrix.com/virtual-user-calculator/

    ReplyDelete