[JS,TS,Node]
Artillery Node 환경 사용법 stress test
grape.store
2021. 12. 1. 22:37
반응형
config:
target: "http://localhost:8000/contents"
phases:
- duration: 60
arrivalRate: 1000
scenarios:
- name: "Connect and join Room"
engine: socketio
flow:
- emit:
channel: "msgToServer"
data:
"name" : "grape1"
"groupName" : "grapestore"
"text" : "msg!!!"
"icon" : "Lion"
- think: 1
yml 파일로 작성
설치 : npm install artillery
레포트 생성 및 실행 :
./node_modules/artillery/bin/artillery run -o hax0r-report artillery-config.yml
레포트 html 파일로 변환 :
./node_modules/artillery/bin/artillery report hax0r-report