Artillery 라이브러리 설치
npm install -g artillery@latest
artillery-test.json 파일 생성
{
"config": {
"target": "http://localhost:3000",
"phases": [
{
"duration": 60, // 1초를 60번
"arrivalRate": 10 // 1초당 10번
}
]
},
"scenarios": [
{
"name": "로그인 ",
"flow": [
{
"get": {
"url": "/api/login",
}
}
]
}
]
}
UI로 보는 방법
report 폴더 생성
명령어 실행
artillery run artillery-test.json --output report