Back to prompts
Write a load testing script for [API / ENDPOINT / APPLICATION]. Target: [URL AND ENDPOINT DESCRIPTION] Tool: [K6 / ARTILLERY / LOCUST / JMETER — or recommend] Authentication: [BEARER TOKEN / API KEY / NONE] Test scenarios to cover: 1. Baseline — steady load ([X] users for [Y] minutes) 2. Ramp-up — gradually increase from 0 to [X] users over [Y] minutes 3. Spike test — sudden burst of [X] users for [Y] seconds 4. Stress test — push until failure or defined limit For each scenario: - Script code with comments - Metrics to track (p95 latency, error rate, throughput) - Pass/fail thresholds to define - How to interpret the results Include: how to run the test, how to view results, and what to do if the service is degrading.
How to use this prompt
- 1Copy the prompt using the button above.
- 2Open your AI tool (ChatGPT, Claude, Midjourney, etc.)
- 3Paste and customize any variables in the prompt.
- 4Generate your result.