~/talk

Load testing with Python and Locust

Talkat PyCon Sweden 2023 · 2023-11-09..11-10· [testing, python]
links:none on file
slides:none on file

Locust is a pure‑Python, MIT‑licensed load tester that stores scenarios as code, runs master/worker clusters and scales by spawning one worker per CPU core; expect 1.3M downloads/month and practical throughput of about >1,000 req/s per core with regular HTTP and ~4-5k req/s with the fast HTTP client. It adds features like Postgres + Grafana dashboards via Locust plugins, distributed runs with locust‑swarm over SSH, conversion from browser recordings with hard‑to‑locust, and protocol extensions for WebSockets/MQTT; constant pacing, catch_response, weighted tasks and on_start hooks are supported.

AI-written summary · about

  1. 0:00Intro
  2. 1:30About Lars
  3. 2:45Why use Locust
  4. 5:32Demo
  5. 8:25Running a test
  6. 12:13Ad break
  7. 15:00Locust Swarm
  8. 16:21Advanced Load Testing
  9. 23:42Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.