agentleFS
QAInsightsQAInsights/perf-skills/skills/perf/SKILL.md

perf

Skill16 starsChanged 3 months agoMITView on GitHub

Performance testing expert covering the full lifecycle for

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use metrics, incident and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 3 projects that use this

  • xiaobei930Skill

    api

    RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 5 projects that use this

  • Microsoft AzureSkill

    test

    Also in 6 projects that use this

  • Microsoft AzureSkill

    docs

    Also in 6 projects that use this

  • +1 more from Azure

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 11 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the relevant reference files based on what the user needs.

    line 30
  2. Distinctive:

    When the user's question is protocol-specific, use this to select the right tool and reference:

    line 75
  3. Distinctive:

    Use this to recommend the right tool when the user hasn't decided yet.

    line 103
  4. Very specific:

    NOT fail the test run. Without thresholds, CI always reports green regardless of latency.

    line 143
  5. Very specific:

    Use per-vu-iterations for any multi-step flow.

    line 151
  6. Very specific:

    Hardcoded BASE_URL: - use __ENV.BASE_URL for environment portability.

    line 158
  7. Distinctive:

    Zero think time: - never reflects real user behavior.

    line 172
  8. Distinctive:

    Use Gatling's async feed/session API exclusively.

    line 183
  9. Very specific:

    Fixed pause() values: - use uniformPaused(min, max) or normalPausedWithPercentageDuration for realistic think time distribution.

    line 187
  10. Very specific:

    Always add ensure.thresholds (or conditions) for SLA gates.

    line 208
  11. Distinctive:

    Use this when users are migrating between tools or asking how a concept from one tool maps to another.

    line 228
  12. Very specific:

    k6 specific: Always define both http_req_duration AND http_req_waiting as separate thresholds.

    line 265
  13. Distinctive:

    JMeter specific: Add both a Response Assertion and a Duration Assertion per sampler.

    line 271
  14. Distinctive:

    Always think through these phases when helping a user - they often ask about one phase but need context from others.

    line 279
  15. Distinctive:

    Never test against production blindly: - always have a rollback plan and alerting in place.

    line 330
  16. Distinctive:

    Baseline first: - always establish a baseline before stress or soak runs.

    line 332
  17. Distinctive:

    When a user brings a performance problem, ask (or infer) these before prescribing a solution:

    line 349

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Performance Testing Skill

This skill provides expert, opinionated guidance across the full performance testing lifecycle - from workload design through production observation. It covers both commercial tools (LoadRunner, NeoLoad, OctoPerf) and open-source tools (JMeter, k6, Gatling, Locust).


How to Use This Skill

Read the relevant reference files based on what the user needs. Multiple files may apply.

Loading Priority Rules

  1. Tool-specific syntax/config → load the tool file only.
  2. Strategy/concepts (workload design, test data, analysis) → load the topic file only.
  3. Both apply (e.g., "JMeter CI/CD") → load the topic file first for patterns, then the tool file for syntax.
  4. Never load all files at once - select the 1–2 most relevant.
  5. Cross-cutting principles (assertions, think time, parameterization) → this file's Key Principles section is the single source of truth.

Reference Map

User needs help with...Read this file
Choosing the right toolThis file - Tool Selection Matrix (fast path) and references/topics/tool-selection.md (live perf.jmeter.ai catalog)
Tool alternatives, comparisons, niche/SaaS tools, licensingreferences/topics/tool-selection.md
JMeter scripts, plugins, configreferences/tools/jmeter.md
k6 scripting, extensions, cloudreferences/tools/k6.md
Gatling simulations, Scala/Java DSLreferences/tools/gatling.md
Locust Python tests, distributedreferences/tools/locust.md
Artillery YAML/JS/TS scripts, cloudreferences/tools/artillery.md
NeoLoad projects, GUI, APIsreferences/tools/neoload.md
LoadRunner scripts, protocols, VuGenreferences/tools/loadrunner.md
OctoPerf cloud test managementreferences/tools/octoperf.md
Designing workloads, concurrency, pacingreferences/topics/workload-design.md
Test data, parameterization, CSV feedsreferences/topics/test-data.md
Script patterns, best practicesreferences/topics/script-generation.md
Correlation, extractors, dynamic valuesreferences/topics/correlation.md
CI/CD, distributed execution, cloud runnersreferences/topics/test-execution.md
Analyzing results, percentiles, SLAsreferences/topics/results-analysis.md
APM, metrics, tracing, dashboardsreferences/topics/observability.md
Staging vs production testing strategiesreferences/topics/production-testing.md
gRPC, GraphQL, WebSocket, messaging protocolsreferences/topics/protocol-testing.md
Database load testing (JDBC, connection pools)references/topics/database-testing.md
Microservices, K8s, serverless performancereferences/topics/modern-architectures.md
LLM inference: TTFT, TPOT/ITL, TPS, goodputreferences/topics/llm-inference.md
SLOs, error budgets, capacity & headroomreferences/topics/slo-capacity.md

Protocol Routing Table

When the user's question is protocol-specific, use this to select the right tool and reference:

ProtocolRecommended ToolsReference
HTTP / RESTk6, Gatling, JMeterTool file
gRPCk6, Gatling, JMeter (plugin)references/topics/protocol-testing.md + tool file
GraphQLk6, Gatlingreferences/topics/protocol-testing.md + tool file
WebSocket / SSEGatling, k6references/topics/protocol-testing.md + tool file
JDBC / DatabaseJMeterreferences/topics/database-testing.md + references/tools/jmeter.md
Kafka / Message Queuesk6 (xk6-kafka), JMeterreferences/topics/protocol-testing.md
SOAP / WSDLLoadRunner, JMeterTool file
SAP / CitrixLoadRunner, NeoLoadTool file
LLM inference (streaming)vLLM bench, GenAI-Perf, GuideLLM, llmperfreferences/topics/llm-inference.md
SLO/capacity (error budgets, headroom)anyreferences/topics/slo-capacity.md

For protocols not listed here, resolve the recommendation by querying the catalog per references/topics/tool-selection.md.


Tool Selection Matrix

This matrix is the offline fast path for the eight tools with dedicated reference files. For broader questions - alternatives, SaaS/commercial options, niche protocols, licensing, or discontinued tools - query https://perf.jmeter.ai/tools.json per references/topics/tool-selection.md.

Use this to recommend the right tool when the user hasn't decided yet.

CriteriaJMeterk6GatlingLocustArtilleryNeoLoadLoadRunnerOctoPerf
LanguageGUI/XML + GroovyJavaScript/TypeScriptScala/JavaPythonYAML / JS / TSGUI + NeoLoad DSLVuGen C-likeWeb UI (JMeter-based)
Open source✅✅✅✅✅ (core)❌❌❌ (SaaS)
Protocol supportHTTP, JDBC, JMS, MQTT, FTP, gRPCHTTP, gRPC, WSHTTP, JMS, gRPCHTTP, gRPCHTTP, gRPC, WS, Socket.IOHTTP, SAP, Citrix, FlexHTTP, SAP, Citrix, manyHTTP (JMeter-backed)
Developer-friendlyMediumHighHighHighMediumLowLowMedium
Enterprise supportCommunity + BlazeMeterGrafana CloudGatling EnterpriseLimitedArtillery Cloud✅✅✅
CI/CD integrationGood (Maven/Gradle)ExcellentExcellentGoodGoodModerateGoodGood
Cloud executionBlazeMeter, OctoPerfGrafana CloudGatling EnterpriseSelf-managedArtillery Cloud (Lambda/Fargate)NeoLoad CloudAWS/on-premOctoPerf Cloud
Best forLegacy systems, JDBC, protocolsModern APIs, TypeScript devsHigh-throughput HTTPPython teams, flexibleNode teams, YAML tests, cloud scaleSAP/Citrix enterpriseMainframe, legacy enterpriseJMeter teams needing cloud UI

Quick decision rules

  • Team writes code → k6 or Gatling
  • Team uses GUI → JMeter or NeoLoad
  • Python shop → Locust
  • SAP / mainframe / Citrix → LoadRunner or NeoLoad
  • Need cloud SaaS with minimal setup → OctoPerf (JMeter) or Grafana Cloud (k6)
  • Free + protocol variety → JMeter
  • Correlation needed for session-heavy flows → JMeter (with Correlation Recorder) or LoadRunner
  • gRPC or GraphQL APIs → k6 or Gatling
  • Message queues (Kafka, RabbitMQ) → k6 (xk6-kafka) or JMeter
  • Node shop / prefer YAML over code → Artillery (YAML, JS, TS; easy Lambda/Fargate cloud scale)

Common Mistakes by Tool

These are the mistakes that cause silent CI failures, misleading results, or test collapse at scale. Flag them proactively whenever reviewing scripts or diagnosing problems - users often don't know to ask about them.

k6

  • check() without thresholds - checks log pass/fail but do NOT fail the test run. Without thresholds, CI always reports green regardless of latency. Always add thresholds to options.
  • Data loaded inside default() - loading CSV or JSON inside the VU function runs on every iteration, causing massive per-iteration overhead and OOM at scale. Always use SharedArray in the init scope.
  • shared-iterations for user journeys - VUs race to claim iterations and may skip steps, producing incomplete journey metrics. Use per-vu-iterations for any multi-step flow.
  • No sleep() between steps - 100 VUs with zero think time generates the absolute maximum RPS for that iteration time, far exceeding what 100 real concurrent users produce. Always add realistic think time.
  • console.log in default() - causes 30–50% throughput drop under load. Use custom metrics (Counter, Trend) instead.
  • Hardcoded BASE_URL - use __ENV.BASE_URL for environment portability.

JMeter

  • Listeners enabled in non-GUI runs - View Results Tree, Aggregate Report etc. buffer all samples in memory during headless runs, causing memory leak and eventual crash. Disable all listeners before CI execution; use -l results.jtl for output.
  • Missing correlation on session-heavy apps - JSESSIONID, CSRF tokens, ViewState, OAuth codes must be extracted and reused. Without correlation, the test fails for every user after the first.
  • Hardcoded thread counts - parameterize via JMeter properties (${__P(threads,10)}) so CI can override without editing the JMX.
  • Zero think time - never reflects real user behavior; always add at minimum a Constant Timer (300–500ms) between samplers.
  • Throughput Controller % mode misuse - percentage applies per iteration of the parent controller, not globally. Most users expect global percentage; use Total Executions mode instead or be explicit.

Gatling

  • Blocking calls inside exec() - any blocking I/O inside an exec block stalls the entire Akka actor, killing simulation concurrency. Use Gatling's async feed/session API exclusively.
  • Missing .check() on responses - without checks, 4xx and 5xx responses are silently counted as successful. Always add at minimum .check(status.is(200)).
  • Fixed pause() values - use uniformPaused(min, max) or normalPausedWithPercentageDuration for realistic think time distribution.

Locust

  • self.client without catch_response=True - by default, Locust marks any HTTP response as success regardless of status code. Use with self.client.get(..., catch_response=True) as r: and call r.failure() explicitly.
  • Unequal task weights without intent - tasks default to equal weight; if your user journey has unequal step frequency, set weights explicitly or the journey ratio will be wrong.
  • Master + workers on same machine - causes resource contention that skews both throughput and latency measurements. Always run workers on separate machines or containers for distributed tests.

Artillery

  • No ensure block - without ensure, Artillery reports metrics but always exits 0, so CI never fails on latency or error spikes. Always add ensure.thresholds (or conditions) for SLA gates.
  • arrivalRate mistaken for concurrency - it is new users per second (open model). On a slow backend, pending VUs pile up unbounded. Set maxVusers to cap real concurrency, or use arrivalCount.
  • Strict captures aborting VUs - captures are strict by default; a missed extractor stops the whole VU. Only set strict: false when a downstream 404 is acceptable.
  • payload.order: sequence in distributed runs - sequential CSV consumption breaks under Lambda/Fargate workers (each has its own copy). Use the default random ordering for distributed tests.
  • Zero think time - 1 VU/sec with no think time fires the maximum RPS for the journey; add think to model real pacing.
  • Forgetting http.response_time is TTFB - latency metrics are time-to-first-byte by default. Enable config.http.extendedMetrics for full download timing (http.total.*) when that matters.

Concept Mapping Across Tools

Use this when users are migrating between tools or asking how a concept from one tool maps to another. Claude should always provide the specific mapping rather than a generic explanation.

ConceptJMeterk6GatlingLocustArtilleryLoadRunner
Virtual userThreadVUUserUserVU (arrival per sec)Vuser
Test plan.jmx file.js / .ts scriptSimulation class.py file.yml / .js / .ts scriptVuGen script (.usr)
User entrypointThread Groupdefault() functionscenario()task methodsflow in scenarioAction()
Concurrency ctrlThread Group settingsexecutorinject()spawn_ratemaxVusers / arrivalRateVuser Group
Think timeConstant/Uniform Timersleep()pause()time.sleep()thinklr_think_time()
Inline assertionResponse Assertioncheck().check()catch_responseafterResponse hookslr_eval_string()
SLA enforcementDuration AssertionthresholdsAssertions (Enterprise)custom + exit codeensure pluginSLA definition
CorrelationRegex / CSS Extractorres.json() / regex.check() + saveAs()response.text + regexcapture (json/xpath/regexp/header)web_reg_save_param
Data feedCSV Data Set ConfigSharedArrayfeederCSV readerpayload / variableslr_paramarr()
GroupingTransaction Controllergroup()group()task setsname on scenarioTransaction
DistributedController + Agentsk6 cloud / k6 operatorGatling Enterprisemaster + workersLambda / Fargate workersLoad Generator
Results output.jtl (CSV/XML)JSON / InfluxDB / cloudsimulation.logCSV / Locust web UIJSON / HTML report.lrr file

Threshold Starting Points

These are community baselines - always tell the user to adjust these to their actual SLA requirements. Never present them as universal targets.

Endpoint typep95p99Error rateNotes
Web page (HTML)< 3000ms< 5000ms< 1%Aligns with Google CWV LCP < 2.5s
REST API< 500ms< 1000ms< 1%Common industry baseline
Auth / Login< 300ms< 500ms< 0.1%Stricter - security-sensitive path
Search / Query< 800ms< 1500ms< 0.5%Varies heavily by dataset size
Write (POST/PUT)< 800ms< 1500ms< 0.5%Includes DB write latency
Checkout/Payment< 1000ms< 2000ms< 0.1%Stricter - revenue-critical path
Background/async< 5000ms< 10000ms< 2%Batch jobs, async processors

k6 specific: Always define both http_req_duration AND http_req_waiting as separate thresholds. http_req_waiting (TTFB) isolates server-side latency from network overhead - it is the first metric to check when diagnosing high p95. Always include checks: ['rate>0.99'].

JMeter specific: Add both a Response Assertion and a Duration Assertion per sampler. Never rely on listener output alone for CI pass/fail; use the JMeter exit code driven by assertions.


Performance Testing Lifecycle Overview

Always think through these phases when helping a user - they often ask about one phase but need context from others.

1. PLAN
   └─ Workload design → concurrency model → SLA targets → test type
       → references/topics/workload-design.md

2. DATA
   └─ Identify variables → parameterization strategy → data generation
       → references/topics/test-data.md

3. SCRIPT
   └─ Record or code → correlation → parameterization → assertions
       → references/topics/script-generation.md + tool-specific file

4. EXECUTE
   └─ Local → distributed → CI/CD → cloud burst → monitoring hooks
       → references/topics/test-execution.md

5. OBSERVE
   └─ APM → metrics → logs → traces → dashboards
       → references/topics/observability.md

6. ANALYZE
   └─ Throughput, latency percentiles, errors → bottleneck ID → report
       → references/topics/results-analysis.md

7. PRODUCTION
   └─ Canary testing → shadow load → chaos → synthetic monitoring
       → references/topics/production-testing.md

Common Performance Test Types

Test TypeGoalKey Metric
LoadValidate system at expected loadResponse time, throughput, error rate
StressFind the breaking pointMax VUs before degradation, error onset
Soak/EnduranceDetect memory leaks, slow degradationResource trend over time (hours)
SpikeBehavior under sudden traffic burstRecovery time, error spike
CapacityFind max sustainable loadThroughput ceiling at SLA thresholds
SmokeQuick sanity checkSingle VU - no errors
BreakpointIncremental ramp until failureFailure threshold VU count

Key Principles to Always Apply

  1. Never test against production blindly - always have a rollback plan and alerting in place.
  2. Baseline first - always establish a baseline before stress or soak runs.
  3. Think time and pacing matter - unrealistic zero-think-time tests produce misleading results.
  4. Parameterize everything - hardcoded credentials, tokens, and IDs will fail at scale.
  5. Assertions are not optional - tests without assertions are just generating traffic, not validating behavior.
  6. Isolate the system under test - shared environments invalidate results.
  7. Correlate dynamic values - session tokens, CSRF, ViewState etc. must be extracted and reused.

Asking the Right Questions

When a user brings a performance problem, ask (or infer) these before prescribing a solution:

  • What is the target concurrency (VUs or RPS)?
  • What is the SLA (e.g., p95 < 500ms, error rate < 1%)?
  • What is the protocol (HTTP/REST, gRPC, JDBC, WebSocket)?
  • Is the app stateful (session-based) or stateless (token-based)?
  • Where will tests run from (local, CI, cloud)?
  • What environment is being tested (dev, staging, prod)?
  • Is there an APM tool in place (Datadog, Dynatrace, Grafana, New Relic)?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.