Load testing using Locust.io





Web application and services needs efficient scaling for serving large number of requests. In this talk we will see how developers can check the behavior of their services under load and stress using Locust.io, which is an open source python based load testing tool, it helps developers to find out what load(No of concurrent users) their system can handle.This tool measures request/second (or minimum, maximum, average), total request, failed request, etc. All relevant data is shown in the form of reports in dashboard.


Intro: (5 mins)

  • Importance of Performance Testing ?
  • Introduction to Locust.io?

Using Locust (10 mins)

  • Locust Class
  • TaskSet Class
  • Making HTTP Requests and Writing Locustfile

Executing Locust and Reports ( 5 mins)

  • Simulating User Behavior
  • Executing on a distributed environment
  • Understanding Reports and Stats
  • Plotting Graphs and Visualization


a) Basic Knowledge on Python or any other programming language

b) Understanding of Rest API's and working knowledge with Requests Library, which is basically used by locust for making HTTP Requests.

Content URLs:


Speaker Info:

I'm Vinay Babu working as a Team Lead in Trimble India Information technology, Have around 10yrs of experience and have worked in multiple roles as a Developer,Tester,Business Analyst. I'm a Technology enthusiast and keeps myself busy most of the day in-out with coding, learning & training. Started my career working with Java and slowly i have transition to Python and currently exploring the Scientific Computing libraries for Data Analysis in python. My work requires me to develop Selenium Framework and Automate the enterprise application which my company is developing. I'm a heavy PY user and spend most of my off office hours exploring the python libraries. When I'm not @ work I will be a Husband & Son and loves spending time with my 2.5 yrs old daughter.

Speaker Links:







Section: Testing
Type: Talks
Target Audience: Beginner
Last Updated:

The typo in the title would need to be fixed. That aside, would you be using a mock application to demonstrate the test paths (along with how the actual code can be written better to aid testing)? Or, is this a general overview?

It is intended at an "Advanced" level, but the proposal does not seem to address any of the topics which an advanced user of such a flow will be faced with.

sankarshan mukhopadhyay (~sankarshan)



Yes i would take a demo application and run thru the end to end testing of API using requests and unittest module.

The Description of the talk is updated accordingly


You have good internet connection as a pre-requisite.

Internet issues are common at conferences. You should plan to have things working locally, instead.

Puneeth Chaganti (~punchagan)

It should be manageable without internet as well.

Just in reply to one of the query thru mail, I will plan to keep this talk as simple as possible to make beginners understand what is REST API and why it is important to test an API in any application first and then making them understand the concepts of testing REST API with the help of GET/POST/PUT/DELETE methods and will detail out the demo scenarios for testing an API and then will go ahead with the use of python libraries(Requests and Unittest) for testing the REST API's.

Also by built-in features of Requests I mean to say how with the help of requests one can GET/POST the data from/to a service and how to validate the API response and how you define the headers/params needed to access the API's.

Try to keep the talk as simple as possible for the Python Novice to understand

Updated the Pre-requisite accordingly.


Updated Description and Outline for the talk


Added URL for Draft power point.

There are lot of improvements in terms of fonts,color,snapshots and examples needs to be done. This is work in progress document.


Login to add a new comment.