agentleFS
kienbui1995kienbui1995/magic-powers/skills/performance-benchmarking/SKILL.md

performance-benchmarking

Skill0 starsChanged 8 months agoMITView on GitHub

Use when establishing performance baselines, comparing before/after changes, or validating performance SLAs

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you need to measure system performance objectively — before/after a change, or to validate a performance requirement.

    line 9
  2. Distinctive:

    Avoid: average latency (hides outliers), total requests (not meaningful without time).

    line 20
  3. Distinctive:

    Concurrency: test at 1x, 2x, 5x, 10x expected traffic

    line 24
  4. Distinctive:

    Isolation: run on dedicated hardware (not shared with other workloads)

    line 27
  5. Distinctive:

    Check percentile distribution (P99 vs P50 spread — large gap = outliers)

    line 41
  6. Distinctive:

    Look for throughput knee: where does latency start degrading?

    line 42
  7. Distinctive:

    Document exact conditions so results are reproducible

    line 44
  8. Distinctive:

    No warmup period (cold JVM, cold cache)

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 Benchmarking

When to Use

When you need to measure system performance objectively — before/after a change, or to validate a performance requirement.

Core Jobs

1. Define What to Measure

Pick metrics that matter to users:

  • Latency: P50, P95, P99 response time (not average)
  • Throughput: requests per second at target latency
  • Error rate: % of requests failing under load
  • Resource cost: CPU/memory per request

Avoid: average latency (hides outliers), total requests (not meaningful without time).

2. Design the Benchmark

  • Workload: representative mix of operations (not just happy path)
  • Concurrency: test at 1x, 2x, 5x, 10x expected traffic
  • Duration: at least 5 minutes to reach steady state (longer = better)
  • Warmup: first 60 seconds discarded (JIT, connection pooling, caches)
  • Isolation: run on dedicated hardware (not shared with other workloads)

3. Run the Benchmark

Tools:

  • HTTP: wrk, k6, Locust, Apache Bench (ab)
  • Database: pgbench, sysbench
  • Custom: write a script that mimics real traffic patterns
# k6 example
k6 run --vus 100 --duration 5m benchmark.js

4. Interpret Results

  • Check percentile distribution (P99 vs P50 spread — large gap = outliers)
  • Look for throughput knee: where does latency start degrading?
  • Compare before/after: use same hardware, same data size, same warmup
  • Document exact conditions so results are reproducible

Key Outputs

  • Benchmark script (reusable, version controlled)
  • Baseline results (before change)
  • Comparison report (before vs after)
  • Performance regression CI check

Anti-Patterns

  • Benchmarking average latency
  • Running benchmarks on shared/noisy hardware
  • No warmup period (cold JVM, cold cache)
  • Comparing benchmarks run under different conditions

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.