/jason-skills:benchmarkingfrom jason-skills
Design, implement, run, and review software performance benchmarks. Use when writing benchmark harnesses, comparing implementation or service performance, or auditing benchmark methodology and claims.
Ships in jason-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make each benchmark answer a specific engineering question with controlled comparisons and reproducible evidence.
For client/server systems or databases, apply the service and database reference while choosing or auditing the workload and harness.
Inspect the relevant implementation and existing benchmark tooling. Write a compact specification:
Choose representative cases and useful boundaries, such as typical inputs, large inputs, and contention. Keep the matrix focused. Vary one factor for causal isolation; label experiments that change several factors together. Set the decision rule before examining comparative results.
Complete when: the question, workload matrix, measurement boundary, and decision rule are explicit enough to implement without guessing.
Require equivalent useful work and relevant guarantees: correctness, precision, durability, consistency, replication, and failure handling. Record tradeoffs when these differ.
Choose the comparison basis: same resources, same cost, shipped defaults, or separately tuned systems. Apply that policy symmetrically. Different architectures can be valid candidates for an application decision; scope the conclusion to that decision and workload.
Record software versions or commits, build mode and flags, runtime, OS, CPU model/generation, available cores, memory, storage, network placement, and effective configuration. Match the dimensions relevant to the question. Core count and RAM alone do not establish equivalent hardware. Mark unavailable platform details as unknown.
Control competing work, resource limits, power or thermal state, and input state where relevant. Disclose unavoidable differences. Record prices and their date when cost is part of the comparison.
Complete when: each material difference is controlled, intentionally varied, or disclosed, and each candidate satisfies the stated correctness and service contract.
Use the repository's established benchmark framework when suitable. Make inputs, duration, repetition, and output location configurable through its conventions.
Run a small correctness smoke test. Check counts, units, outputs, and telemetry before collecting performance evidence; label smoke-test output accordingly.
Complete when: the harness performs the intended work, measures the intended interval, accounts for outcomes, and exposes overhead or scheduling limits that could dominate the result.
Choose the state being measured:
Choose measurement duration from sample needs and relevant background cycles: GC, checkpointing, compaction, autoscaling, or maintenance. Use a shorter observation only with an explicit limit on what it can establish.
Repeat independent trials with a declared reset policy. Alternate or randomize candidate order to reduce drift; record order and environment changes. Choose repetition and stopping criteria from pilot variability and the decision's stakes. Keep exploratory tuning separate from final comparisons. Preserve failed or excluded trials and their reasons.
Complete when: starting state, warmup, measurement interval, repetition, ordering, reset policy, and stopping criteria are reproducible and support the claimed operating condition.
Select metrics appropriate to the question:
| Work | Primary observations |
|---|---|
| Service or database | Successful throughput, latency distribution, errors/timeouts, offered load, and queue behavior |
| Function or microbenchmark | Time per operation or operations per second; allocations or memory when relevant |
| Batch job or startup | Total elapsed time, work completed, resource use, and completion/failure status |
Retain raw samples or mergeable histograms, per-run summaries, counts, and timestamps. Capture CPU, memory/GC, disk, and network diagnostics where they can explain a bottleneck.
For latency, report relevant percentiles, normally p50, p95, and p99, with population, time window, units, and sample count. Show errors and timed-out or unfinished work alongside successful latency; a timeout is not an observed completion time. Use extreme percentiles only with enough observations to make them informative. Compute aggregate percentiles from compatible samples or merged histograms, rather than averaging window percentiles.
For sustained workloads, retain throughput and latency time series so stalls, drift, and maintenance remain visible. Separate run-to-run variation from within-run variation. Define every error bar or interval and its unit of observation. Account for dependence in time-series samples; adjacent samples are not independent trials.
Report absolute values and effect size against the named baseline. State the ratio's direction: throughput speedup is candidate/baseline; elapsed-time speedup is baseline/candidate. Include dispersion or uncertainty. Label effects unresolved when the evidence cannot distinguish them from noise.
Complete when: summaries can be recomputed from retained measurements and readers can distinguish useful performance, failed work, instability, and uncertainty.
Lead with the answer to the original decision, scoped to the measured workload and environment. Separate observations from causal hypotheses. Use diagnostics to support explanations; test a causal hypothesis by changing a relevant factor when scope allows it. Qualify a local microbenchmark result before extrapolating to application performance.
Leave this record in the repository's normal benchmark location or requested deliverable:
For an implementation-only task, provide the runnable harness and commands and identify measurements still needed. For a review, prioritize findings that could change the conclusion and cite their code location or supplied evidence. Identify proposed runs, smoke-test output, and measured performance explicitly.
Complete when: another engineer can rerun the experiment and regenerate its summaries, or the deliverable identifies the evidence still unavailable. Every performance claim must trace to an actual measurement.
Choose client placement from the measurement boundary. A separate generator host can isolate server resources, but its network path contributes to end-to-end latency. Record region/zone, topology, round-trip latency, connection setup/reuse, TLS, pooling, and connection limits. For same-host tests, account for client/server contention.
With sequential requests, no pipelining, and negligible client work, per-connection throughput is approximately 1 / (network RTT + server processing time). Use this as a diagnostic bound, not a model for queued or multiplexed systems. Equal connection counts can produce different server load on different network paths.
Validate generator capacity at the intended rate using CPU, scheduler/event-loop lag, connection limits, in-flight work, queues, and network capacity. Quiet CPU alone does not establish capacity. Resolve generator saturation before claiming server capacity; otherwise label the result generator-limited.
Match the load model to the question and actual backpressure:
| Model | Scheduling | Question |
|---|---|---|
| Closed loop | Each worker waits for completion before its next operation | What do a fixed number of workers achieve? |
| Open loop | Arrivals follow an independent schedule or replayed trace | What happens at specified external demand, including overload? |
In a closed loop, stalls reduce subsequent offered load. This can cause coordinated omission when interpreted as latency under independent arrivals: requests that would have queued were never issued. Label the measurement accordingly. Prefer directly measuring the intended model; disclose assumptions behind any statistical correction.
For open-loop load, schedule against a monotonic deadline independent of response completion. Awaiting a response and then sleeping is closed loop. Record intended arrival, actual dispatch, and completion times where feasible. Separate scheduler delay, client-observed response time, and time from intended arrival to completion; state which boundary supports the claim.
Define behavior when concurrency or queue limits are reached: queue, reject, drop, or stop according to a declared bound. Count intended, submitted, completed, failed, timed-out, dropped, and pending work as applicable. Expose backpressure and missed schedules; nominal target rate does not prove the server received that load.
For capacity claims, sweep offered load or concurrency through the relevant range and report successful throughput against latency and errors. Define sustainable capacity by the stated latency/error constraint and queue stability. Specify when arrivals stop and in-flight work drains or times out. Count completions over their actual measurement interval, including any reported drain interval.
Record total rows/bytes, indexes, payload/result sizes, active working set, key distribution, hot-key/tenant skew, read/write mix, transaction boundaries, isolation, and batch size. Keep queries semantically equivalent; inspect plans and schema/index differences when they explain performance.
Compare working set with effective cache capacity, including database buffers, OS page cache, indexes, and metadata. Treat RAM-resident, I/O-bound, and skewed-access cases as distinct workloads. Verify cache/I/O behavior where observable; dataset size alone does not prove residency.
Record acknowledgment, commit, replication, and persistence guarantees, including fsync/WAL settings or equivalents. Measure completed transactions separately from statements. Specify whether connection acquisition, retries, and commit acknowledgments fall inside timing.
Inspect checkpoint/WAL thresholds, autovacuum, compaction, GC, storage burst credits, replication, and relevant maintenance. Choose intervals that observe their effects for sustained-performance claims; disclose missing cycles as limitations.
Apply the declared policy for defaults versus tuning. Equal parameter values across systems need not imply equivalent behavior or guarantees. Record effective settings and explain consequential tuning changes.
Restore data and cache conditions for each declared trial state, accounting for growth, fragmentation, and mutation. Define which layers a cold reset affects: process state, database buffers, OS cache, or remote/storage caches. Record inaccessible layers as uncontrolled; a process restart alone does not demonstrate cold storage.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jasonlovesdoggo/skills --plugin jason-skills4 skills in this plugin
/break-uiTry to break a piece of UI by feeding it worst-case data — long names, unbreakable emails, one-letter names, missing fields, huge counts, zero items, long labels, non-Latin text, emoji, extreme numbers — then render it behind a "Demo data / Worst case" toggle and report everything that broke, with the fix for each. Use when the user asks to stress-test, break, or find edge cases in a component or screen, or to "try the worst case". For visual design critique use emil-design-eng; for motion use review-animations./hindsightRedesign what was just built with hindsight, and size the simpler version. Run after the first end-to-end run, or before opening the PR./nasa-handbookMake printable technical documents in the style of Apollo-era NASA paperwork. The model is an Apollo Operations Handbook "Systems Data" page with a typed running head, numbered paragraphs, Leroy-lettered line drawings and schematics, a performance data table, NOTE/CAUTION/WARNING notices, a Flight Data File checklist card, a black thumb tab and a dated footer, rendered to an A4 or US Letter PDF. Use this whenever someone asks for NASA-style, Apollo-style, retro aerospace or "mission manual" documentation. Also use it for a technical explainer, spec sheet or one-pager that should look like vintage engineering paperwork, for a handbook page explaining a product, codebase, system or fictional gadget, or for "another one of those NASA pages", even if they never say Apollo or handbook.