(a quick load-test is good if you're impatient)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
target: "http://localhost:3003" | |
phases: | |
- duration: 1 | |
arrivalRate: 1 | |
scenarios: | |
- flow: | |
- get: | |
url: "/" | |
- get: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- post: | |
url: "/some/url" | |
formData: | |
firstName: "Jerry" | |
lastName: "Winston" | |
headers: | |
authorization: "Bearer {{access_token}}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Lambda's timeout needs to be >5 seconds, 10 should do | |
// | |
var startedAt = new Date(); | |
var interval = setInterval(function () { | |
console.log(startedAt, new Date()); | |
}, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
target: "http://localhost:8080" | |
phases: | |
- duration: 60 | |
arrivalRate: 1 | |
processor: "./processor.js" | |
scenarios: | |
- name: "Load the options page" | |
flow: | |
- get: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"target": "http://localhost", | |
"phases": [ | |
{"duration": 10, "arrivalRate": 20} | |
] | |
}, | |
"scenarios": [ | |
{ | |
"flow": [ |