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
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
180
なぜGoのジェネリクスはこの形なのか? Featherweight Goが明かす設計の核心
ryotaros
7
1.1k
CSC509 Lecture 04
javiergs
PRO
0
300
CSC305 Lecture 08
javiergs
PRO
0
210
AI Coding Meetup #3 - 導入セッション / ai-coding-meetup-3
izumin5210
0
3.3k
CSC509 Lecture 03
javiergs
PRO
0
340
Swift Concurrency - 状態監視の罠
objectiveaudio
2
520
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
0
280
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
170
Six and a half ridiculous things to do with Quarkus
hollycummins
0
180
オープンソースソフトウェアへの解像度🔬
utam0k
15
2.9k
Claude Agent SDK を使ってみよう
hyshu
0
780
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
20
1.2k
Statistics for Hackers
jakevdp
799
220k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
189
55k
Music & Morning Musume
bryan
46
6.8k
RailsConf 2023
tenderlove
30
1.2k
A Modern Web Designer's Workflow
chriscoyier
697
190k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
We Have a Design System, Now What?
morganepeng
53
7.8k
How GitHub (no longer) Works
holman
315
140k
Optimizing for Happiness
mojombo
379
70k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
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!