Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
532 B

import { check } from 'k6';
import http from 'k6/http';
export const options = {
stages: [
{ duration: "2m", target: 300 },
{ duration: "2m", target: 300 },
{ duration: "2m", target: 0 },
],
thresholds: {
'http_req_duration': ['p(99)<300'], // 99% of requests must complete below 300ms
}
};
export default function () {
const url = `https://test-api.k6.io/`;
const response = http.get(url);
check(response, {
'is status 200': (r) => r.status === 200,
});
}