Created
March 5, 2019 12:07
-
-
Save luketn/48bfeaad2841d0b006f1a8c81b46da22 to your computer and use it in GitHub Desktop.
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
import http from "k6/http"; | |
import { check, sleep } from "k6"; | |
export let options = { | |
stages: [ | |
{ duration: "30s", target: 20 }, | |
{ duration: "1m30s" }, | |
{ duration: "30s", target: 0 }, | |
] | |
}; | |
export default function() { | |
let res = http.get("https://api.mycodefu.com/starry/sky.png?width=300&height=300"); | |
check(res, { | |
"status was 200": (r) => r.status == 200 | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment