k6 is an open-source tool that makes load testing easy for developers and QA engineers. Script tests in JavaScript, run anywhere.
import http from 'k6/http'; import { check, sleep } from 'k6'; export const options = { stages: [ { duration: '30s', target: 50 }, { duration: '1m', target: 50 }, { duration: '30s', target: 0 }, ], thresholds: { http_req_duration: ['p(95)<500'], }, }; export default function () { const res = http.get('https://test.k6.io'); check(res, { 'status is 200': (r) => r.status === 200 }); sleep(1); }