Skip to content

Instantly share code, notes, and snippets.

@suejungshin
Created January 4, 2020 22:42
Show Gist options
  • Save suejungshin/8d1c0a2fe22848e572d65b3156a16f39 to your computer and use it in GitHub Desktop.
Save suejungshin/8d1c0a2fe22848e572d65b3156a16f39 to your computer and use it in GitHub Desktop.
Sample artillery run for proxy
config:
target: 'http://localhost:3000/?id=10000000'
phases:
- duration: 100
arrivalRate: 1000
defaults:
headers:
x-my-service-auth: '987401838271002188298567'
scenarios:
- flow:
- get:
url: "/?id=10000000"
- get:
url: "/api/costHomeOwnership/properties?id=10000000"
- get:
url: "/api/costHomeOwnership/rates?cost=2100000&zipCode=14316&term=30&type=Fixed&downPay=20&credit=740&origYear=2019"
RESULT
Summary report @ 14:41:31(-0800) 2020-01-04
Scenarios launched: 100000
Scenarios completed: 100000
Requests completed: 300000
RPS sent: 457.64
Request latency:
min: 1.2
max: 1198.9
median: 9.9
p95: 78.3
p99: 168.9
Scenario counts:
0: 100000 (100%)
Codes:
200: 300000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment