performance-testing

Run k6 and Locust load, stress, spike, and soak tests against APIs.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/lionheartapp/lionheart-ops --skill performance-testing-lionheartapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-testing
Source: https://github.com/lionheartapp/lionheart-ops/tree/main/.claude/skills/performance-testing
Command: npx skills add https://github.com/lionheartapp/lionheart-ops --skill performance-testing-lionheartapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Performance testing uncovers how an application behaves under concurrent user load, identifies bottlenecks, and validates response time and error-rate goals so teams can prioritize fixes before incidents occur.

Core Features & Use Cases

  • Load and Stress Testing: Run steady-state load, staged ramp-ups, spike, and soak tests to measure capacity and breaking points.
  • Tooling & Metrics: Provides k6 and Locust examples, custom metrics (trends, counters, rates), and recommended thresholds like p95 < 500ms and error rate < 1%.
  • CI Integration & Analysis: Exportable JSON/influxdb results and GitHub Actions snippets enable automated checks and threshold gating in CI pipelines.
  • Use Case: Validate API response times and throughput before a major release by running k6 scenarios against a staging environment with authenticated endpoints and CI validation.

Quick Start

Run a k6 smoke test against your API using the provided k6 script and environment variables to verify baseline response times and authentication.

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 testing and stress testing to find API breaking points?

Load testing and stress testing find API breaking points by running controlled virtual user ramps with k6 and Locust. You configure staged ramp-ups to measure capacity, identify bottlenecks, and validate performance thresholds like p95 < 500ms.

What is the difference between spike and soak testing for web application performance?

Spike testing validates system behavior during sudden traffic bursts, while soak testing runs long-duration steady-state loads to uncover memory leaks. Both are controlled performance tests that measure response times, error rates, and throughput under sustained or extreme stress.

How do I configure k6 thresholds for p95 latency and error rate validation?

Configure k6 thresholds for p95 latency and error rate validation by setting performance goals like p95 < 500ms and error rate < 1% in your script. The test fails automatically if these custom metrics exceed the defined performance thresholds.

Can I run automated performance testing with k6 in GitHub Actions CI pipelines?

You can run automated performance testing with k6 in GitHub Actions CI pipelines by exporting JSON or InfluxDB results. Configurable thresholds gate CI validation, allowing automated checks to block deployments if response times or error rates fail.

Does Locust support custom metrics collection for bottleneck analysis?

Locust supports custom metrics collection for bottleneck analysis by tracking trends, counters, and rates during your load test. This metrics collection validates throughput and response times to help detect system bottlenecks under concurrent user load.

When should I not use stress testing against my production environment?

You should not use stress testing against production environments without isolation because finding breaking points generates extreme concurrent user load. Run controlled load, spike, and soak tests against staging environments to safely validate capacity and avoid incidents.