API Load Testing
Design and run load tests for APIs using k6 or Artillery. Creates test scenarios with realistic traffic patterns, ramp-up strategies, and performance thresholds to find breaking points before your users do.
This skill helps you build comprehensive load testing suites. It generates k6/Artillery scripts with realistic traffic patterns, concurrent user simulations, and performance thresholds. Analyzes results to identify bottlenecks in response time, throughput, and error rates under load.
When to use
Use before launches to validate capacity, after infrastructure changes to verify performance, when investigating production slowness, or to establish performance baselines for SLAs.
Examples
Ramp-up load test
Simulate gradually increasing traffic to find the breaking point
Create a k6 load test that ramps from 10 to 500 concurrent users over 10 minutes, testing our checkout API endpoint
Spike test scenario
Test how the system handles sudden traffic spikes
Write a load test that simulates a sudden 10x traffic spike — I want to know if our auto-scaling responds fast enough