Blog Logo
TAGS

Locust - A modern load testing framework

Locust is an open source load testing tool that helps to define user behaviour with Python code and swarm systems with millions of simultaneous users. It eliminates the need for clunky UIs or bloated XML and supports running load tests distributed over multiple machines, simulating millions of simultaneous users. Locust has been used to simulate millions of simultaneous users and is battle-tested, having been used to load test Battlelog, the web app for the Battlefield games. The tool is highly regarded by developers and has been praised by networking experts such as Armin Ronacher, author of Flask, Jinja2, and more. It is also used at EA/DICE by lead software engineer Joakim Bodin, who calls it pretty fantastic but wishes there were more documentation for non-HTTP stuff. Examples of Locust test script are demonstrated in the code provided, which includes simulating user browsing of the Locust documentation on https://docs.locust.io using the AwesomeUser class.