/performance-testing
Handbook · Skill index · Runtime source
Purpose
Create reproducible profiling/benchmark evidence and compare a candidate with a comparable baseline while preserving correctness.
When to use
Investigate a latency/CPU/memory/allocation/throughput bottleneck or a performance regression in a specific path/component.
When not to use
Do not claim improvement from one noisy run, optimize an invented bottleneck or replace a system traffic/capacity experiment; use load-testing for that.
Invocation
/performance-testing Investigate allocations in booking serialization.Autocomplete hint: <path and metric> [baseline/candidate] [dataset and budget]. Required information can be supplied in context; this is not a shell command or a CLI parser. Use plain-language arguments. See argument conventions for notation and permission boundaries.
Minimal example:
/performance-testing Investigate allocations in booking serialization.With optional context:
/performance-testing Compare booking serialization on baseline and candidate using the same representative fixture, release build and repeated samples; agree the time/memory budget before running.Inputs
| Input | Requirement | If omitted |
|---|---|---|
| path and metric | Required | Inspect a clear active performance question; otherwise ask. |
| dataset/environment and run budget | Required before measurement | Agree representative data, comparable conditions and bounded resource use. |
| baseline/candidate | Required for improvement claims | No baseline means candidate measurement only, never a speedup claim. |
| threshold and profiler | Optional | Use inspected tooling; report measurements without pass/fail if no budget is agreed. |
No arguments: Ask for the path/metric unless clear from the task; do not invent a bottleneck or speedup.
Optional inputs are discovered where reliable; recommendations do not become confirmed choices. Conditional requirements must be resolved before their dependent action. Required information is enforced by skill instructions, not by native autocomplete. The detailed procedure is linked directly from SKILL.md.
What it does
Inspect question and baseline → define equal conditions, warm-up/setup/repetitions → author bounded benchmark/profile → validate outputs and correctness → capture repeated raw measurements → compare variability/tradeoffs and report unsupported conclusions.
Read only the selected skill and testing procedure. Use the specific plan/evidence template when a written plan helps.
Outputs and ownership
Scoped tests/scripts in the application’s existing layout, fixtures/configuration where required, and actual evidence under docs/project/testing/<task-id>/ when warranted. No new runner, agent, service or permission is installed by the skill itself.
Questions and decisions
Clarify missing metric/budget, representative workload, comparable baseline and stable environment. New tools/remote targets or profiling credentials need applicable authorization; reuse existing approved scope.
Permissions and side effects
Uses ordinary conversation permissions. The main conversation writes scoped test artifacts and runs reviewed authorized checks. Installation/image pulls, credentials, destructive cleanup/migrations, global changes, shared-service traffic and paid capacity need applicable authorization. Reuse existing authorization for ordinary local work. Plan/script preparation may proceed while required execution approval/input is missing.
Validation and completion
Record exact argv/exits, source/tool/environment versions, actual test/workload/sample counts, safely preserved raw evidence and gaps. Inspect runner output, not merely exit status. No comparable baseline means measured candidate only, not a speedup. Local timing is not proof of production capacity or cost savings; preserve samples and report variability. Existing reviewed local gates and iteration-review can capture checks; helper success does not prove semantic coverage.
Failure and recovery
Preserve failing diagnostics and owned fixtures/resources. Do not weaken assertions, change thresholds after seeing results or retry until green. One reasoned retry/two review rounds apply; keep missing tools/access/baselines as BLOCKED/UNVERIFIED. Cleanup only resources owned by this run and report failures. No independent reviewer available means UNVERIFIED.
Example
/performance-testing Investigate allocations in the actual serialization path; compare baseline and candidate under the same dataset and report raw repeated measurements.This is an illustrative invocation, not evidence that a model ran tests for an actual application. Existing template tests qualify packaging/structure only.
Related components
Testing selection guide · implement-change · iteration-review · testing helper/gates