아웃사이더님의 블로그를 보고 Artillery 툴이
ab(apache benchmark)보다 뭔가 더 좋은 것 같아서 한 번 공부해봅니다.

이 툴을 테스트해보고 싶었던 가장 큰 이유는
report라는 기능으로 테스트 결과를 html 파일로 보기 좋게 만들어주는 기능이 있기때문..!
한번 테스트해보겠습니다.
1. 설치
$npm install artillery -g
2. 퀵 테스트 실행
$artillery quick -d 60 -r 10 http://pineoc.blogspot.com
Log file: artillery_report_20160912_130365.json
Phase 0 started - duration: 60s
Report for the previous 10s @ 2016-09-12T04:04:09.912Z
Scenarios launched: 99
Scenarios completed: 95
Requests completed: 194
Concurrent users: 4
RPS sent: 19.92
Request latency:
min: 168.8
max: 623.9
median: 188
p95: 236.5
p99: 504.6
Scenario duration:
min: 473.9
max: 941.3
median: 517.2
p95: 718.9
p99: 921.6
Codes:
200: 96
302: 98
... 생략
밑에 쭈욱 로그가 나옵니다.
파일이 만들어졌다고 나왔네요. 한번 들여다보면,

이렇게 데이터가 14000줄 정도 나옵니다.
한번 report 명령어로 리포트 뽑아보겠습니다.
3. 리포트 만들기
$artillery report
이렇게 html이 바로 짠하고 나옵니다.



각각의 그래프에 마우스 커서를 올리면 데이터도 확인해볼 수 있구요.
실제로 서비스 개발할 때도 사용해봐야겠습니다.
굿굿
댓글 없음:
댓글 쓰기