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
41
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
220
Boas práticas em REST APIs
drgarcia1986
1
1.4k
Conteinerizando aplicações Python
drgarcia1986
0
450
Other Decks in Programming
See All in Programming
Stay Hacker 〜九州で生まれ、Perlに出会い、コミュニティで育つ〜
pyama86
2
1.5k
AI POSにおけるLLM Observability基盤の導入 ― サイバーエージェントDXインターン成果報告
hekuchan
0
590
AI 時代だからこそ抑えたい「価値のある」PHP ユニットテストを書く技術 #phpconfuk / phpcon-fukuoka-2025
shogogg
1
500
Claude Code on the Web を超える!? Codex Cloud の実践テク5選
sunagaku
0
550
ゼロダウンタイムでミドルウェアの バージョンアップを実現した手法と課題
wind111
0
160
レイトレZ世代に捧ぐ、今からレイトレを始めるための小径
ichi_raven
0
350
Functional Calisthenics in Kotlin: Kotlinで「関数型エクササイズ」を実践しよう
lagenorhynque
0
130
Private APIの呼び出し方
kishikawakatsumi
3
880
自動テストを活かすためのテスト分析・テスト設計の進め方/JaSST25 Shikoku
goyoki
3
680
MCPサーバー「モディフィウス」で変更容易性の向上をスケールする / modifius
minodriven
8
1.5k
All(?) About Point Sets
hole
0
150
「10分以内に機能を消せる状態」 の実現のためにやっていること
togishima
1
440
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
4.9k
Optimizing for Happiness
mojombo
379
70k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Faster Mobile Websites
deanohume
310
31k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Site-Speed That Sticks
csswizardry
13
960
Building a Scalable Design System with Sketch
lauravandoore
463
33k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Statistics for Hackers
jakevdp
799
220k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
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!