affaan-m avatar

Benchmark Optimization Loop Skill

Installs
8.2k
Repo stars
315k
Repo updated
Dec 1, 2026

TL;DR

benchmark-optimization-loop is a Claude Code skill that converts vague speed requests into bounded, measured optimization loops for developers who need latency, throughput, or cost improvements with correctness preserved

Install if

Backend engineers optimizing latency, throughput, memory, or cost who need bounded benchmark loops instead of unmeasured rewrite attempts.

Skip if

Greenfield feature development with no performance baseline, UI-only polish work, or tasks where correctness testing infrastructure does not yet exist.

npx skills add https://github.com/affaan-m/ECC --skill benchmark-optimization-loop
On this page
  1. What benchmark-optimization-loop covers
  2. benchmark-optimization-loop by the numbers
  3. What does the Benchmark Optimization Loop skill produce?
  4. What files ship with benchmark-optimization-loop?
  5. Which skills are related to benchmark-optimization-loop?
  6. What are the Benchmark Optimization Loop skill forks?
  7. Benchmark Optimization Loop skill FAQ
  8. More in this repo

What benchmark-optimization-loop covers

  • Converts "make it 20x faster" or "try 50 recursive optimizations" into a measurable loop
  • Requires baseline, correctness gate, chosen metric, and search budget before starting
  • 8-step loop: measure baseline, identify bottlenecks, generate hypothesis-driven variants, run tests, reject unsafe ones,
  • Maintains a Variant Table tracking hypothesis, command, time, correctness, and notes
  • Hard gate: never optimize without existing operation, correctness test, metric, baseline, and bounded budget

benchmark-optimization-loop by the numbers

All-time installs8,216skills.sh registry
Repo stars★ 315kGitHub
Repo last updatedDecember 1, 2026GitHub
Repositoryaffaan-m/ECC ↗

Data as of Dec 2, 2026 (Skillselion catalog sync)

What does the Benchmark Optimization Loop skill produce?

Benchmark baseline report, variant comparison results, and selected best implementation with measured metric improvements.

  • Benchmark baseline
  • Variant comparison table
  • Selected optimized implementation

What files ship with benchmark-optimization-loop?

SKILL.mdMarkdownGitHub ↗

Benchmark Optimization Loop

Use this skill to convert "make it 20x faster" or "try 50 recursive optimizations" into a bounded measured loop that can actually improve a system.

Required Baseline

Do not optimize until these exist:

  • the operation being optimized;
  • the correctness gate that must stay green;
  • the metric: wall time, p95 latency, rows/sec, cost/run, memory, error rate;
  • the current baseline;
  • the search budget: max variants, max time, max spend, max data impact.

If the user asks for an unrealistic target, keep the ambition but make the loop bounded and measurable.

Loop

  1. Measure the baseline.
  2. Identify bottlenecks from evidence.
  3. Generate variants that test one hypothesis each.
  4. Run variants with the same input shape.
  5. Reject variants that fail correctness, safety, or reproducibility.
  6. Promote the fastest safe variant.
  7. Codify the winning path in a script, command, test, config, or doc.
  8. Rerun the baseline and winner to confirm the delta.

Variant Table

Track variants like this:

Variant | Hypothesis | Command | Time | Correct? | Notes
baseline | current path | npm run job | 120s | yes | stable
batch-500 | fewer round trips | npm run job -- --batch 500 | 42s | yes | winner
parallel-8 | more workers | npm run job -- --workers 8 | 31s | no | rate limited

Recursive Search

For recursive or hyperparameter work:

  • persist every run to a ledger;
  • compare against the prior accepted winner, not only the previous run;
  • keep a holdout or replay check;
  • stop when improvement is within noise, correctness fails, cost exceeds the budget, or the search starts changing more variables than it can explain.

Use phrases like "best measured safe variant" instead of "global optimum" unless the search space was actually exhaustive.

Promotion Gate

A variant cannot become the new default until:

  • correctness tests pass;
  • the performance delta is repeated or explained;
  • rollback is obvious;
  • the change is encoded in source control or a durable runbook;
  • the final summary includes exact commands and measurements.

Which skills are related to benchmark-optimization-loop?

What are the Benchmark Optimization Loop skill forks?

Benchmark Optimization Loop has 1 known copy in the catalog totaling 1.5k installs. They canonicalize to this original listing.

Benchmark Optimization Loop skill FAQ

Who is the Benchmark Optimization Loop skill for?

Backend engineers optimizing latency, throughput, memory, or cost who need bounded benchmark loops instead of unmeasured rewrite attempts. Skip if: Greenfield feature development with no performance baseline, UI-only polish work, or tasks where correctness testing infrastructure does not yet exist.

When should I use benchmark-optimization-loop?

A developer asks to make something faster, benchmark latency or throughput, try optimization variants, or choose the best implementation by repeated measured tests.

What baseline is required before benchmark-optimization-loop runs?

benchmark-optimization-loop requires three prerequisites: the operation being optimized, a correctness gate that must stay green, and a chosen metric such as wall time, p95 latency, rows/sec, cost/run, or memory usage.

Which metrics does benchmark-optimization-loop track?

benchmark-optimization-loop supports wall time, p95 latency, rows per second, cost per run, and memory as optimization targets. Each variant is measured against the baseline while the correctness gate remains passing.

Add a benchmark-optimization-loop badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code
AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.