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
370
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
31
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
74
Modelos de concorrência em Python.
drgarcia1986
0
170
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.3k
Conteinerizando aplicações Python
drgarcia1986
0
300
Other Decks in Programming
See All in Programming
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
270
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
490
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.2k
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
860
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
使ってみよう Azure AI Document Intelligence
kosmosebi
2
300
Ruby Function Composition
bkuhlmann
1
330
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
見た目から始める生産性向上
ikumatadokoro
7
830
大規模UIKitベースアプリへのTCAの段階的導入/gradual-adoption-of-tca-in-a-large-scale-uikit-based-app
takehilo
1
130
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
Featured
See All Featured
Building Effective Engineering Teams - LeadDev
addyosmani
28
1.8k
For a Future-Friendly Web
brad_frost
172
9k
Testing 201, or: Great Expectations
jmmastey
28
6.3k
Statistics for Hackers
jakevdp
789
220k
Designing the Hi-DPI Web
ddemaree
276
33k
Facilitating Awesome Meetings
lara
42
5.6k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Scaling GitHub
holman
457
140k
GraphQLとの向き合い方2022年版
quramy
32
12k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Building Applications with DynamoDB
mza
88
5.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
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!