performance-testing

Run load tests with k6, Locust, or Artillery and report latency, throughput, and error rate.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill performance-testing-cosmix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-testing
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/performance-testing
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill performance-testing-cosmix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Performance testing validates that applications meet speed, scalability, and stability requirements under load. This Skill guides you through selecting tools, building benchmarks, profiling bottlenecks, and establishing performance budgets to prevent regressions.

Core Features & Use Cases

  • Load Testing Guidance: Structured approaches with k6, Locust, and Artillery for API and system-wide load tests.
  • Benchmarking & Profiling: Techniques to measure latency, throughput, and bottlenecks; create budgets to prevent regressions.
  • Practical Scenarios: From baseline capacity tests to spike testing and sustained load analysis, with steps to interpret results and optimize workloads.

Quick Start

Run a basic k6 load test script against your API endpoint to observe latency and error rate under a steady load.

Frequently Asked Questions about performance-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run load tests against my API to measure performance under stress?

Load testing measures how your API responds under concurrent user traffic. Use tools like k6, Locust, or Artillery to script realistic workloads, execute tests, and collect metrics on latency, throughput, and error rates to identify capacity limits.

What's the difference between load testing, benchmarking, and profiling?

Load testing simulates concurrent users to measure system behavior under stress. Benchmarking establishes baseline performance metrics for comparison. Profiling identifies specific code or resource bottlenecks causing slowdowns. All three inform optimization decisions.

How do I set up performance budgets to prevent regressions?

Performance budgets define acceptable thresholds for latency, throughput, and error rates. Define target metrics, configure monitoring in your test scripts with k6, Locust, or Artillery, and fail tests when budgets are exceeded to catch regressions early.

Can I use k6, Locust, and Artillery for the same load testing scenarios?

Yes. k6, Locust, and Artillery all support API and web service load testing with customizable workloads. Each has different scripting models and integrations; choose based on your language preference, environment, and reporting needs.

What metrics should I collect during performance tests?

Collect latency (response time), throughput (requests per second), error rate, and resource utilization. These metrics reveal how your system performs under load and identify bottlenecks; use them to validate performance budgets and guide optimization.

When should I run spike tests versus sustained load tests?

Run spike tests to simulate sudden traffic surges and measure recovery time. Use sustained load tests for steady-state validation and capacity planning. Both scenarios ensure your application handles real-world conditions without degradation.