Last active
February 12, 2020 10:33
-
-
Save ppcano/0be8eb26770ca6e374de294c3d50fcb5 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 { 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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The command will execute:
k6 run script.js
andk6 cloud script.js
.