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
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
120
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
240
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
160
速いWebフレームワークを作る
yusukebe
5
1.7k
Design Foundational Data Engineering Observability
sucitw
3
190
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
2.2k
OSS開発者という働き方
andpad
5
1.7k
意外と簡単!?フロントエンドでパスキー認証を実現する WebAuthn
teamlab
PRO
2
740
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
Navigation 2 を 3 に移行する(予定)ためにやったこと
yokomii
0
140
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
2
480
個人軟體時代
ethanhuang13
0
320
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Done Done
chrislema
185
16k
How STYLIGHT went responsive
nonsquared
100
5.8k
How to Ace a Technical Interview
jacobian
279
23k
Code Reviewing Like a Champion
maltzj
525
40k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.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!