Ensure your site handles traffic spikes

Stress Test Your Website

Increase HTTP request concurrency within an approved budget, and compare latency and error rates. These requests do not render the page or run browser JavaScript.
Standalone k6 example
Adapt this script and run it with k6 against an approved target. loadtest.dev accepts declarative GET/HEAD plans; it does not execute these scripts.
Send HTTP requests without rendering a browser
Test landing pages, checkouts, and user flows
Identify server bottlenecks under load
Monitor response times and error rates in real-time
The example stages increase virtual-user concurrency
Compare observed degradation with your agreed thresholds
stress-test.js
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);
}

Frequently asked questions

Related guides

API Load Testing
Learn how to test HTTP APIs with standalone k6 scripts, measure latency and failed requests, and choose rates suited to your approved target.
Spike Testing
Model a rapid traffic increase with standalone k6 stages, then observe latency, failed requests and recovery within your target’s approved load budget.
Soak Testing
Use an extended standalone k6 script to observe latency and error trends over time, alongside server metrics for memory and connection-pool behavior.

Use an HTTP plan with loadtest.dev

For estate apps, declare GET/HEAD requests to a verified hostname and submit a plan through the authenticated API.
loadtest.dev — Part of the Narduk Enterprises network