Skip to content

Instantly share code, notes, and snippets.

@minmaxdata
Last active September 25, 2019 23:17
Show Gist options
  • Save minmaxdata/2dc6cfcc17432eb923ad2bcac2271fea to your computer and use it in GitHub Desktop.
Save minmaxdata/2dc6cfcc17432eb923ad2bcac2271fea to your computer and use it in GitHub Desktop.
LOad test for proxy
config:
target: 'http://localhost:3000'
phases:
- duration: 60
arrivalRate: 5
- duration: 120
arrivalRate: 5
rampTo: 50
- duration: 600
arrivalRate: 50
payload:
path: "listings-data1m.csv"
fields:
- "listingId"
- "cityId"
- "listingName"
- "photo1"
- "photo2"
- "photo3"
- "photo4"
- "cost"
- "stars"
- "reviews"
- "type"
- "listing"
scenarios:
- flow:
- get:
url: "/?houseId=9999"
- post:
url: "/house"
json:
listingId: "{{ listingId }}"
cityId: "{{ cityId }}"
listingName: "{{ listingName}}"
photo1: "{{ photo1 }}"
photo2: "{{ photo2 }}"
photo3: "{{ photo3 }}"
photo4: "{{ photo4 }}"
cost: "{{ cost }}"
stars: "{{ stars }}"
reviews: "{{ reviews }}"
type: "{{ type }}"
listing: "{{ listing }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment