Load testing guides
Explore standalone k6 examples for HTTP APIs, websites, WebSockets, gRPC, traffic spikes, soak testing, and infrastructure capacity planning.
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.
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.
HTTP Load Testing
Adapt a standalone k6 HTTP script with request methods, headers and JSON bodies, then inspect latency and failed requests on a target you own.
REST API Benchmarking
Compare REST API endpoint latency with standalone k6 Trend metrics and per-endpoint thresholds, using the same traffic and data between test runs.
GraphQL Load Testing
Adapt a standalone k6 script for GraphQL queries and mutations, validate response errors, and compare operation latency on your approved endpoint.
WebSocket Load Testing
Use a standalone k6 WebSocket script to open connections, exchange messages, check responses, and examine behavior under agreed concurrency limits.
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.
Capacity Planning
Compare latency and failed requests across approved load levels with standalone k6, then combine the results with resource metrics for capacity planning.