Simulate sudden traffic surges

Spike Testing

Model sudden, dramatic increases in traffic — like a product going viral or a flash sale starting. Verify your auto-scaling works, your caches hold, and your users get served.
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.
Instant traffic ramp-up scenarios
Test auto-scaling and CDN behavior
Measure recovery time after spikes
Identify cascade failures
Custom spike patterns and durations
Real-time monitoring during spikes
spike-test.js
import http from 'k6/http';
import { sleep } from 'k6';

export const options = {
  stages: [
    { duration: '30s', target: 10 },   // Warm up
    { duration: '10s', target: 200 },   // SPIKE!
    { duration: '1m', target: 200 },    // Hold spike
    { duration: '10s', target: 10 },    // Recovery
    { duration: '30s', target: 10 },    // Verify recovery
    { duration: '10s', target: 0 },     // Ramp down
  ],
};

export default function () {
  http.get('https://myapp.com/api/products');
  sleep(1);
}

Frequently asked questions

Related guides

Stress Test Your Website
Use a standalone k6 stress script to raise virtual-user concurrency, compare response times, and identify degradation under an approved traffic 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.
Capacity Planning
Compare latency and failed requests across approved load levels with standalone k6, then combine the results with resource metrics for capacity planning.

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