Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
367 B
2
Indexable
Never
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('http://dronsilesia.pl/');
  check(res, { 'status was 200': r => r.status == 200 });
  sleep(1);
}