Simulating real browser behaviour in performance testing with Locust.io

Shawn Wong
4 min readFeb 5, 2023

Locust is an easy to use, scriptable and scalable performance testing tool. We define the behaviour of the users in regular Python code, instead of being stuck in a UI or restrictive domain specific language. This makes Locust expandable and very developer friendly.

A Locust test is essentially just a Python program making requests to the system you want to test. This makes it very flexible and particularly good at implementing complex user flows.

The very first test

--

--

Shawn Wong

Ruby on Rails developer, AWS cloud practitioner, GeoBlacklight, Omeka practitioner.