https://locust.io/
pip install locust
or
pip install locustio==0.14.6
locustfile.py 코드
[code]
from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
wait_time = between(5, 15) # 사용자의 요청 간격을 5~15초로 설정합니다.
@task
def my_task(self): # 테스트할 작업을 정의합니다.
self.client.get("/") # GET 요청을 실행합니다.
@task
def another_task(self): # 또 다른 작업을 정의합니다.
self.client.get("/another")
[/code]
실행
$> locust -f locustfile.py

게시글 목록
| 번호 | 제목 |
|---|---|
| 831 | |
| 830 | |
| 829 | |
| 827 | |
| 824 | |
| 823 | |
| 821 | |
| 819 | |
| 818 | |
| 814 | |
| 809 | |
| 808 | |
| 807 | |
| 806 | |
| 803 | |
| 801 | |
| 799 | |
| 798 | |
| 797 | |
| 796 | |
| 794 | |
| 786 | |
| 783 | |
| 782 | |
| 767 | |
| 742 | |
| 655 | |
| 614 | |
| 591 | |
| 590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기