Professional Documents
Culture Documents
Load Testing Is Not Bombarding The System With Users
Load Testing Is Not Bombarding The System With Users
Article by T Ashok
Published in Tea Time with Testers
AUG 2014
We want you to load test our application. We want you to test with a load of 50k concurrent users.
Can you do this? asked the gentlemen from a company developing an innovative HR application
during the sales call.
And my first reaction was 'Whoah, hold your horses, load is not just about mere number of
concurrent users'. And then I started my explanation as to what the objective of load testing is and
how they should look at it. After half an hour, they understood. They understood that this was not a
simple web site where you bombard it with bunch of hits from users, but a web application that does
various operations. And evaluating the load handling capability of the application requires subjecting
it to a mix of various operations with some of them being concurrent.
Allow me to share this with you.
Let us start with a simple definition of Load'. Load is the quantum of work to be performed. And
load testing is about assessing if the given quantum of work can be done well in the stipulated
calendar time with the given resources. Now what is work? It is various operations that is done by the
system. And different end users perform different types of operations.
Now understand that a single user application can be also subjected to load and concurrency is not a
pre-requisite for load testing. After all load testing is about assessing if a system can process the requisite
number of operations in a given time with the given resources. And each operation may have different
demand of resources and may take different times to complete. And simulating this mix and creating
such a operational (or workload) profile representing different times of day/week/month/year is key to
is key to meaningful real life evaluation of load handling. Designing load test scenarios in HBT
(Hypothesis Based Testing) is based on this technique Operation profiling.
So when somebody tells you perform load testing by merely bombarding the system with users,
remember The road analogy and Operational profiling.
When you are stuck in a traffic jam, it may be good fun to estimate the load then by applying
operational profiling! On a lighter note, I do not care about the road nor traffic jam as I cycle. I
squeeze through the stationary vehicles and smile at the fretting humans inside the powered vehicles.
Wicked eh!
Cheers.