Tuesday, February 8, 2011

Performance goal be in terms of concurrent users?

We often come across such kind of questions like how many users would require for performance testing.

We can use two approach:--


1. First Approach:


Assume that we have  5000 average visitors per day and working window is 12 hours

So calculate like this ....

Average visits per hour = (5000 average visitors/day) / 12 hours = 417

Average Concurrent Users = Visits per hour / (60 min/hour / average visit.

2. Second Approach 

This approach is going to tell us how many users we have on average. 

U = V / (60/D)

Where:
U is the number of load test virtual users (that's what we are trying to figure out)
V is the average number of visitors per hour
D is the average duration of a visitor
60 is the number of minutes in an hour

Also , we can use
                                   Users = Pages views per hours * Avg. duration of script execution
                                                                   60  * Total No. of pages in the script