Loading...
Loading...
k6 load testing tool. Use for performance testing.
npx skill4agent add g1joshi/agent-skills k6import http from "k6/http";
import { sleep, check } from "k6";
export const options = {
vus: 10,
duration: "30s",
};
export default function () {
const res = http.get("http://test.k6.io");
check(res, {
"status was 200": (r) => r.status == 200,
});
sleep(1);
}k6 run script.jsexport const options = {
thresholds: {
http_req_duration: ["p(95)<500"], // 95% of requests must complete below 500ms
},
};import { ... } from './utils.js'httpk6-browser