Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created October 24, 2021 09:05
Show Gist options
  • Save agusrichard/898f21afaceb589a66c0a2dd9e6b5541 to your computer and use it in GitHub Desktop.
Save agusrichard/898f21afaceb589a66c0a2dd9e6b5541 to your computer and use it in GitHub Desktop.
export const options = {
stages: [
{ duration: '5m', target: 100 }, // simulate ramp-up of traffic from 1 to 100 users over 5 minutes.
{ duration: '10m', target: 100 }, // stay at 100 users for 10 minutes
{ duration: '5m', target: 0 }, // ramp-down to 0 users
],
thresholds: {
'http_req_duration': ['p(99)<1500'], // 99% of requests must complete below 1.5s
'logged in successfully': ['p(99)<1500'], // 99% of requests must complete below 1.5s
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment