Getting Started
Run your first load test in under 5 minutes. No experience required.
Create your account
Sign up with email or Apple ID. It takes 10 seconds and no credit card is required. You get 200 VUs and 5-minute tests immediately.
Create a test script
Navigate to Scripts → New Script. Choose a template or write your own k6 JavaScript test. Paste the URL of the API or website you want to test.
Configure your test
Set the number of virtual users (up to 200 on free), test duration (up to 5 minutes on free), and select a load zone.
Run and analyze
Click Run and watch real-time metrics. Monitor response times, throughput, error rates, and check pass rates as the test executes.
Your first test script
Paste this into the script editor to load test any URL. It simulates 50 users sending requests for 2 minutes:
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
vus: 50,
duration: '2m',
};
export default function () {
const res = http.get('https://your-api.example.com');
check(res, {
'status is 200': (r) => r.status === 200,
'response time OK': (r) => r.timings.duration < 500,
});
sleep(1);
}What to expect
While your test runs, you'll see real-time streaming metrics:
- Response time — Average, median, p95, and p99 latency in milliseconds
- Throughput — Requests per second your server is handling
- Error rate — Percentage of failed requests (HTTP 4xx/5xx)
- Checks — Pass/fail rate for your custom assertions