---
name: role-aqa-performance-testing-d8996158144d
description: |
  Performance test design and execution with k6 (JavaScript, cloud execution, thresholds),
  JMeter (GUI, distributed), Gatling (Scala DSL), and Artillery (YAML config).
  Load, stress, soak, and spike testing. Baselines, bottleneck analysis, CI performance
  gates, custom metrics, and result analysis.
allowed-tools: Read, Grep, Glob, Bash
---

# Performance Testing

## When to use
- Designing a load, stress, soak, or spike test scenario for an API or service
- Selecting a performance testing tool (k6, JMeter, Gatling, Artillery)
- Establishing performance baselines before a major release
- Investigating a latency regression — bottleneck analysis workflow
- Adding performance gates to a CI/CD pipeline
- Setting up Grafana/InfluxDB dashboards for load test result visualization

## Core principles
1. **Baselines before gates** — you cannot fail a threshold you never measured; establish baselines on a stable environment first
2. **P95 and P99, never averages** — average latency hides tail pain; users experience the tail, not the mean
3. **Test types serve different questions** — load tests validate capacity, stress tests find limits, soak tests expose leaks, spike tests prove autoscaling
4. **Bottleneck order matters** — check application first, then database, then network, then infra; jumping to infra first wastes everyone's time
5. **Store results with the code** — a test run without the commit SHA and environment spec is an anecdote, not a baseline

## Reference Files
- `references/tools-and-test-types.md` — test type selection table, k6 script with stages and thresholds, custom metrics with Trend/Counter, JMeter CLI, Gatling DSL, Artillery overview
- `references/baselines-analysis-ci.md` — baseline establishment and storage, bottleneck investigation order, APM correlation, CI gate configuration, result archiving and Grafana trend analysis


---
Source attribution: rnavarych
Original project: https://github.com/rnavarych/alpha-engineer/blob/c5b74102c7fd584af3d344ba7c331a7bbec3c729/plugins/roles/role-aqa/skills/performance-testing/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Raman Navarych

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: rnavarych
Original project: https://github.com/rnavarych/alpha-engineer/blob/c5b74102c7fd584af3d344ba7c331a7bbec3c729/plugins/roles/role-aqa/skills/performance-testing/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering
Roles: Data Analyst, DevOps / SRE, QA / Test Engineer
Specialties: Testing
Tools: Artillery, Gatling, Jmeter, K6
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 3b5782c72723f6dc2cf5d5d8d85571f670ed09b4ea217864a552ac0575fed0a7
