Skip to content

Instantly share code, notes, and snippets.

@ppcano
Last active February 12, 2020 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppcano/0be8eb26770ca6e374de294c3d50fcb5 to your computer and use it in GitHub Desktop.
Save ppcano/0be8eb26770ca6e374de294c3d50fcb5 to your computer and use it in GitHub Desktop.
import { check, sleep } from 'k6';
import http from 'k6/http';
export let options = {
vus: 50,
duration: "3s"
};
export default function() {
let res = http.get("https://test.k6.io/");
check(res, {
"is status 200": (r) => r.status === 200
});
sleep(0.3);
}
@ppcano
Copy link
Author

ppcano commented Feb 11, 2020

The command will execute: k6 run script.js and k6 cloud script.js.

  1. Change on the video How it works section.
  2. Change it also on the Hero video of the Open Source Page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment