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
Testes de carga com Locust
Search
Diego Garcia
March 14, 2015
Programming
1
450
Testes de carga com Locust
Veja um pouco sobre essa poderosa ferramenta pythonica para escrever e executar testes de carga.
Diego Garcia
March 14, 2015
Tweet
Share
More Decks by Diego Garcia
See All by Diego Garcia
Um overview sobre GIT
drgarcia1986
0
40
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
100
Modelos de concorrência em Python.
drgarcia1986
0
180
Programe para uma interface, não para uma implementação
drgarcia1986
0
190
Bot do Telegram
drgarcia1986
1
210
Boas práticas em REST APIs
drgarcia1986
1
1.4k
Conteinerizando aplicações Python
drgarcia1986
0
440
Other Decks in Programming
See All in Programming
CSC305 Summer Lecture 12
javiergs
PRO
0
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
ソフトウェアテスト徹底指南書の紹介
goyoki
1
140
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
1k
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1.4k
Honoアップデート 2025年夏
yusukebe
1
910
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
230
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
210
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
190
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
210
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
100
Laravel Boost 超入門
fire_arlo
2
190
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1370
200k
What's in a price? How to price your products and services
michaelherold
246
12k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Documentation Writing (for coders)
carmenintech
73
5k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Typedesign – Prime Four
hannesfritz
42
2.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Transcript
Locust Locust Testes de carga Pythonicos
Muito Muito Prazer Prazer { "name":"Diego Garcia", "github":"/drgarcia1986", "twitter":"@drgacia1986", "email":
"
[email protected]
", "site":"codeforcloud.info" }
O que é o Locust? O que é o Locust?
• Framework OpenSource. • Escrito em Python. • Interpreta código Python. • É potente. • É escalável. • É Simples. • Testa qualquer sistema web.
Instalação Instalação pip install locustio
Escrita dos testes Escrita dos testes
Execução dos testes Execução dos testes locust -H http://localhost:8000 -H
: host
None
Algumas Algumas características características
Sessão de usuário Sessão de usuário
Escalando os testes Escalando os testes • Instância master locust
-H http://localhost:8000 --master • Instância slave locust --slave --master-host=192.169.0.3
None
E mais E mais • Execução por linha de comando.
• Encadeamento de tasks. • EventHooks. • Multiplos Clients. • Clients com multiplos TaskSets.
Mais informações Mais informações • http://locust.io/ • http://docs.locust.io/en/latest/ • https://github.com/locustio/locust
Muito Muito obrigado! obrigado!