Skip to content
Back to skills

Performance Tradeoff

ASecurity

Judge performance or resource claims on real hardware, and design the test, replay, evaluation, benchmark, soak or watch before it runs: latency, throughput, memory or headroom numbers, and accept-or-reject decisions on optimizations. Not for refactors with no resource claim.

  • 12 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 20, 2026
developmentrustgoperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add macintog/codex-spine --skill performance-tradeoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Tradeoff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performance Tradeoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/macintog-performance-tradeoff/badge)](https://www.skillsdirectory.com/skills/macintog-performance-tradeoff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: performance-tradeoff
description: "Judge performance or resource claims on real hardware, and design the test, replay, evaluation, benchmark, soak or watch before it runs: latency, throughput, memory or headroom numbers, and accept-or-reject decisions on optimizations. Not for refactors with no resource claim."
---

# Performance tradeoff

Before a test, replay, evaluation, benchmark, soak or watch runs, write down in one place: the question it settles and the decision that changes; what in the project's current plan or next host makes the number moot; the smallest input that answers it, located from indexes, logs or labels rather than scanned for; the mode (offline, seeking and batched, unless the property is wall-clock); the hardware shape (batched, pipelined, the fastest engine the target has); the estimate as input ÷ measured throughput × runs, from a smoke run; and the stop rule. A run with no written plan is the failure this skill exists to prevent. Thresholds: over about 15 device-minutes, or a 1× replay longer than the event it tests, get the coordinator's or operator's OK first; a serial batch-1 loop on an idle accelerator is a defect to fix before scaling, not a budget.

Before trusting or reporting a number, check:

- **Equivalent arms.** Only the intended change differs: build, inputs, load, power/thermal state, output quality. Alternate arm order; a cache warmed by one arm contaminates the next.
- **Separate regimes.** Cold, warm and sustained are different results. Claim a cold-start win only from fresh-cache runs of both arms.
- **Noise before change.** Compare the delta with each arm's run-to-run spread; overlapping ranges or few samples mean inconclusive. Give latency percentiles with sample counts.
- **Completion, not enqueue.** Time async/GPU work to completion, with identical sync and transfer boundaries in both arms.
- **Raw-value arithmetic.** Relative change = (candidate − baseline) / baseline, direction stated; recheck supplied percentages. No speedup against a timeout or OOM.
- **One memory scope.** Don't sum overlapping counters (a unified-memory footprint may already include GPU allocations). Headroom is peak versus what the target actually has free; note the sampling interval.
- **Phase is not end to end.** A faster component isn't a faster request until measured; overlapping work doesn't add serially.
- **Mechanism, not just clock.** A claim that names a cause (cache fit, fewer DRAM trips, fewer launches, fewer allocations) shows the counter that cause moves, in both arms. Utilization is not work: a core at 100 % can be mostly stalled on memory, so CPU % and instruction count neither bound nor explain the cost, and trading instructions for fewer cold memory accesses is usually a win. Where cycles go needs a host that exposes counters (bare metal, a Mac with Instruments), not a cloud VM.

Decide in order: correctness and quality; whether the change enables a supported workload the baseline fails or nearly fails; absolute user-visible cost; maintenance cost. A resource reduction that enables nothing measured doesn't justify a latency, quality or complexity cost. Set thresholds and margins before seeing candidate results.

Answer accept, reject or unproven per hardware and workload case, naming the smallest missing measurement. Report only the metrics that decide it.

Files in this skill

  • SKILL.md5 KB
  • agents/openai.yaml205 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.