본문 바로가기
DevOps/성능 테스트

Locust 설치

by Rainbound-IT 2023. 1. 9.
반응형

python 3.7 version 이상 설치 되어 있어야 합니다.

 

Ubuntu

sudo apt install python3-locust

 

확인은 

locust -V

 

Windows

pip3 install locust

 

 

 

 

설치

https://docs.locust.io/en/stable/installation.html

 

Installation — Locust 2.14.2 documentation

Pre-release builds If you need the latest and greatest version of Locust and cannot wait for the next release, you can install a dev build like this: $ pip3 install -U --pre locust Pre-release builds are published every time a branch/PR is merged into mast

docs.locust.io

 

한번 해보기

https://docs.locust.io/en/stable/quickstart.html

 

Your first test — Locust 2.14.2 documentation

The following screenshots show what it might look like when running this test using 40 concurrent users, with a ramp up rate of 0.5 users/s, against a server with somewhat poor performance. Note Interpreting performance test results is quite complex (and m

docs.locust.io

 

 

 

 

locustfile 작성

https://docs.locust.io/en/stable/writing-a-locustfile.html

 

Writing a locustfile — Locust 2.14.2 documentation

HttpUser is the most commonly used User. It adds a client attribute which is used to make HTTP requests. client attribute / HttpSession client is an instance of HttpSession. HttpSession is a subclass/wrapper for requests.Session, so its features are well d

docs.locust.io

 

반응형

'DevOps > 성능 테스트' 카테고리의 다른 글

newrelic nodjs 활성화  (0) 2023.01.18
jmeter 설치  (0) 2023.01.09
siege 설치  (0) 2022.12.27

댓글