Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/G1Joshi/Agent-Skills --skill locust명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | locust |
| description | Locust load testing in Python. Use for load testing. |
Locust is an easy-to-use, scriptable, and scalable performance testing tool. You define the behavior of your users in regular Python code.
from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
wait_time = between(1, 5)
@task
def index(self):
self.client.get("/")
@task(3)
def view_item(self):
item_id = randint(1, 10000)
self.client.get(f"/item?id={item_id}", name="/item")
Run locust -f locustfile.py.
Represents a user. Attributes like wait_time simulate "think time" between actions.
Decorator @task marks methods as user actions. You can weight them (@task(3) runs 3x more often than @task(1)).
Accessible at http://localhost:8089. Allows you to set the user count and spawn rate dynamically.
Do:
FastHttpUser: Locust's standard HttpUser uses requests (slow). FastHttpUser uses geventhttpclient which is much faster for load generation.name argument in client.get(url, name="my-endpoint"). Otherwise, every unique URL (with differing IDs) shows as a separate entry in reports.Don't:
time.sleep) in your tasks, or you pause the whole user runner.