~/talk

From Stress to Success: Load Testing Python Apps & Visualizing Performance

Talkat PyCon India 2025 · 2025-09-12..09-15· [web-performance, testing]
name:Allen Y
linkedin:allen-yesudasan
slides:none on file

Hands-on walkthrough of building a load-testing pipeline that actually stores and visualizes results: Locust + Prometheus + Grafana with a Locust exporter and Docker Compose, testing a sample FastAPI demo app. Shows commands, /metrics scraping, PromQL queries and a Grafana dashboard; verifies with 100 users (observed min response ~217 ms) and then scales toward 100 → 100000 users to demonstrate response-time growth and bottlenecks. Notes Locust uses asyncio single-threaded workers, suggests dev→staging benchmarking and adding tests to CI.

AI-written summary · about

  1. 0:00Introduction to load testing
  2. 1:53Types of load testing
  3. 4:49Importance of load testing
  4. 6:57Python for load testing
  5. 8:42Load testing stack overview
  6. 9:28Prometheus for metrics
  7. 11:20Why Locust over others
  8. 12:01Setting up Locust
  9. 13:50Locust dashboard metrics
  10. 15:16Key metrics to monitor
  11. 15:37Prometheus metrics storage
  12. 17:27Locust exporter setup
  13. 18:09Grafana visualization
  14. 18:53Live demo setup
  15. 20:14Running the Locust test
  16. 22:03Prometheus metrics query
  17. 23:15Grafana dashboard creation
  18. 24:28Analyzing response times
  19. 25:57Real-world insights
  20. 26:40Conclusion and takeaways
  21. 27:25Q&A session
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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.