API Performance Budget
A coding loop focused on optimizing API performance to ensure P95 latency stays under a defined target threshold. This loop iteratively runs load tests, anal…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "API Performance Budget" loop.
Goal: Keep API latency within target
Max iterations: 10
Between iterations run: k6 run api-load.js
Exit when: P95 latency below target
Optimize the API to meet the P95 latency target defined in the load test script. Run iterative optimizations until the target is achieved or 10 iterations are completed.
Self-pace this loop. After each iteration, run `k6 run api-load.js` and evaluate the output, and only continue if the exit condition is not met (P95 latency below target). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.