Skip to content

Instantly share code, notes, and snippets.

@benmangold
Last active November 17, 2018 16:43
Show Gist options
  • Save benmangold/8ebc84eb704328a029fce2458f947a7f to your computer and use it in GitHub Desktop.
Save benmangold/8ebc84eb704328a029fce2458f947a7f to your computer and use it in GitHub Desktop.
Stress test with Artillery.js
Stress test with Artillery.js
1000 Requests/Second (~400 achieved)
loadtest.yml
==============
config:
target: 'http://127.0.0.1:4000'
http: 10
phases:
- duration: 60
arrivalRate: 1000
defaults:
headers:
scenarios:
- flow:
- get:
url: "/api/listings"
sample results
==============
Report @ 11:38:42(-0500) 2018-11-17
Scenarios launched: 4127
Scenarios completed: 4108
Requests completed: 4108
RPS sent: 411.47
Request latency:
min: 5
max: 214.2
median: 14.9
p95: 134.3
p99: 202.3
Codes:
200: 4108
150 Requests/Second
loadtest.yml
==============
`
# artillery run loadtest.yml
config:
target: 'http://127.0.0.1:4000'
http: 10
phases:
- duration: 60
arrivalRate: 150
defaults:
headers:
scenarios:
- flow:
- get:
url: "/api/listings"
`
sample results
==============
Report @ 09:34:07(-0500) 2018-11-17
Scenarios launched: 1502
Scenarios completed: 1502
Requests completed: 1502
RPS sent: 150.2
Request latency:
min: 1.7
max: 43.9
median: 2.4
p95: 5.8
p99: 33.2
Codes:
200: 1502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment