~/talk

"Stress Less: Easy Database Load Testing Using Python and Locust"

Talkat PyOhio 2024 · 2024-07-27..07-28· [testing, databases]
slides:none on file

Uses Locust plus psycopg3 to send SQL directly to PostgreSQL instead of HTTP endpoints, instrumenting calls with Locust’s request event so response times and failures are recorded. Demo runs up to ~100 concurrent users with a 75/25 weighted tasks mix of updates vs selects, spawns users at a set rate, and hits Postgres until max_connections becomes a bottleneck. Uses gevent concurrency, produces live charts and a downloadable HTML report and CSV, and the approach works end-to-end in the demo.

AI-written summary · about

  1. 0:00Introduction
  2. 0:15Miguels background
  3. 1:12Agenda
  4. 2:39What is Locust
  5. 3:46How is Locust used
  6. 4:21Locust code
  7. 5:54Running a test
  8. 6:58Low testing
  9. 7:27Postgress client
  10. 8:09User class
  11. 8:40Task set
  12. 9:47Demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.