Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Meetup DevOps Carioca - Load Testing with Locust
Search
Stefan Teixeira
May 20, 2016
Programming
79
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Meetup DevOps Carioca - Load Testing with Locust
Stefan Teixeira
May 20, 2016
More Decks by Stefan Teixeira
See All by Stefan Teixeira
Scrum Gathering Portugal 2016 - Containerizing Tests with Docker
stefanteixeira
0
92
Agile Brazil 2016 - 5 fundamentos essenciais de padrões xUnit
stefanteixeira
0
120
Latinoware 2016 - Continuous Delivery com ferramentas open source
stefanteixeira
0
78
Ágiles 2016 - Using open source tools to support Continuous Delivery
stefanteixeira
0
65
6º Encontro do Grupo de Testes Carioca - Testes em um contexto de Continuous Delivery
stefanteixeira
0
52
TDC 2016 SP - Desmistificando cobertura de código como métrica de qualidade
stefanteixeira
0
140
TDC 2016 SP - Continuous Delivery para aplicações Java com ferramentas open-source
stefanteixeira
0
96
TDC 2016 SP - Cobertura de código de procedures T-SQL com SQLCC
stefanteixeira
0
82
TDC 2016 SP - 5 libs de teste JavaScript que você deveria conhecer
stefanteixeira
0
74
Other Decks in Programming
See All in Programming
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
270
不幸な GC
chencmd
0
890
バグを直したら useEffect が消えた
colorful12
3
840
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
6
2.5k
What We Talk About When We Talk About XP
m_seki
2
390
一参加者から『中の人』へ 〜全通PHPerがブースに立って学んだ、カンファレンスを100倍楽しむコツ〜
wp_daisuke
0
120
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
160
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
190
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
570
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
220
Webエンジニアなのにブラウザの仕組みがわからないので、Pythonで自作してみた
tatsuki12
4
1.7k
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
4.8M
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
WCS-LA-2024
lcolladotor
0
820
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Paper Plane
katiecoart
PRO
2
53k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
Mind Mapping
helmedeiros
1
350
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
650
Agile that works and the tools we love
rasmusluckow
331
22k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Become a Pro
speakerdeck
PRO
31
6.2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Transcript
Load Testing with Locust Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com
• QA Automation Engineer @ Toptal • Test Automation, Agile
and DevOps enthusiast • Technical blogs: stefanteixeira.com.br (pt-br) / stefanteixeira.com (en) Links: • E-mail:
[email protected]
• Twitter: twitter.com/stefan_teixeira • LinkedIn: linkedin.com/in/stefanteixeira • GitHub: github.com/stefanteixeira • SlideShare: slideshare.net/stefanteixeira About me
Load Tests
Load Tests
Which (open-source) should I use?
Which (open-source) should I use?
Which (open-source) should I use?
Which (open-source) should I use?
Locust
Locust • Python ❤ http://locust.io
Locust • Python • VERY simple http://locust.io
Locust • Python • VERY simple • Extensible http://locust.io
Documentation http://docs.locust.io/en/latest/index.html
Exemplos
Simple execution
Execution with weights
on_start
How to run?
Web mode
CLI mode locust --no-web -c 1 -r 1 -n 4
--only-summary --print-stats
Demo
Sample project https://github.com/stefanteixeira/todoapp-flask https://github.com/stefanteixeira/todoapp-flask/blob/master/ todoapp/tests/locustfile.py
References • Difference between performance/load/stress testing: http:// agiletesting.blogspot.com.br/2005/02/performance-vs-load-vs- stress-testing.html •
Installation tips: http://software.danielwatrous.com/load-testing- with-locust-io/ • Other sample project: https://github.com/noppanit/performance- test-example-by-locust • http://stackoverflow.com/questions/19816275/no-acceptable-c- compiler-found-in-path-when-installing-python (if you experience this error during installation) • Locust + Jenkins: http://www.testrisk.com/2015/09/performance- testing-on-ci-locust-is.html
Thanks! Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com