Skip to content

Instantly share code, notes, and snippets.

@luketn
Created March 5, 2019 12:07
Show Gist options
  • Save luketn/48bfeaad2841d0b006f1a8c81b46da22 to your computer and use it in GitHub Desktop.
Save luketn/48bfeaad2841d0b006f1a8c81b46da22 to your computer and use it in GitHub Desktop.
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