import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '1m', target: 50 }, // Ramp up
{ duration: '3m', target: 200 }, // Peak load
{ duration: '1m', target: 0 }, // Ramp down
],
};
export default function () {
const res = http.get('https://mysite.com');
check(res, {
'page loads': (r) => r.status === 200,
'fast response': (r) => r.timings.duration < 1000,
});
sleep(Math.random() * 3);
}Load testing verifies your system handles expected traffic levels. Stress testing pushes beyond normal capacity to find the breaking point. loadtest.dev supports both scenarios through configurable VU ramp-up stages.
Yes — stress tests send real HTTP requests. We recommend testing against a staging environment first or scheduling tests during low-traffic periods.
Key metrics to watch: response time under 200ms for API calls, error rate below 1%, and consistent throughput as VUs increase. Our dashboard shows all of these in real-time.
Load test your REST and GraphQL APIs with up to 200 virtual users for free. Real-time metrics, JavaScript scripting, and instant results.
Test how your application handles sudden traffic spikes. Simulate flash sales, viral moments, and DDoS-like scenarios safely.
Run extended soak tests to find memory leaks, connection pool exhaustion, and performance degradation over time.