You can simply test the server stress with a single line (sh run.sh
) and view the report.
Also it can be used as a artillery boilerplate.
Install Node.js® and npm if they are not already on your machine.
$ npm install
-
edit config.json (docs: https://artillery.io/docs)
-
run shell script
$ sh run.sh
summary example
Summary report @ 14:59:52(+0900) 2018-06-16
Scenarios launched: 500
Scenarios completed: 500
Requests completed: 500
RPS sent: 8.83
Request latency:
min: 38.2
max: 47874.1
median: 14476.6
p95: 45667.5
p99: 47354.7
Scenario counts:
post get api test: 500 (100%)
Codes:
200: 332
502: 168
Log file: output.json
Report generated: output.json.html
report example