Untitled
unknown
plain_text
4 years ago
378 B
19
Indexable
import http from 'k6/http';
import { check, sleep } from 'k6';
export let options = {
stages: [
{ duration: '15s', target: 100 },
{ duration: '30s', target: 100 },
{ duration: '15s', target: 0 },
],
};
export default function() {
let res = http.get('https://127.0.0.1/');
check(res, { 'status was 200': r => r.status == 200 });
sleep(1);
}Editor is loading...