agentleFS
mejbaurbaharmejbaurbahar/fagun/skills/performance-testing/SKILL.md

performance-testing

Skill1 starsChanged 4 months agoMITView on GitHub

Use for load/stress/soak/spike testing, Core Web Vitals audits, Lighthouse checks, API latency benchmarking, and diagnosing slow pages or endpoints. Covers both frontend perf and backend load testing.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Chrome DevTools MCP performance_start_trace / performance_analyze_insight or lighthouse_audit, or Claude in Chrome, to measure:

    line 9
  2. Distinctive:

    Test types, don't conflate them:

    line 18
  3. Distinctive:

    Always test against staging, never production, unless the user explicitly authorizes and it's a deliberately scoped/rate-limited game-day …

    line 28
  4. Distinctive:

    Don't just report a number — compare against a baseline (previous release, competitor, or an explicit SLA/budget the team has agreed to).

    line 34

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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 Testing

Frontend performance (Core Web Vitals)

Use Chrome DevTools MCP performance_start_trace / performance_analyze_insight or lighthouse_audit, or Claude in Chrome, to measure:

  • LCP (Largest Contentful Paint) — target < 2.5s. Usually a hero image/font/render-blocking JS problem.
  • INP (Interaction to Next Paint, replaced FID) — target < 200ms. Heavy main-thread JS on interaction is the usual cause.
  • CLS (Cumulative Layout Shift) — target < 0.1. Usually images/ads/fonts without reserved dimensions.
  • TTFB (Time to First Byte) — server/CDN latency; if this is high, it's a backend/infra problem, not frontend.

Capture a trace, then check for: unoptimized images, render-blocking CSS/JS in <head>, missing font-display: swap, excessive third-party scripts, no CDN/caching headers on static assets.

Backend load testing (locust, in the qa-agent venv)

Test types, don't conflate them:

  • Load test — expected peak traffic, sustained, confirm latency/error rate stays acceptable.
  • Stress test — ramp beyond expected peak until it breaks, to find the actual ceiling and failure mode (graceful degradation vs. cascading failure).
  • Soak test — moderate load sustained for hours, to catch memory leaks/connection-pool exhaustion that only show up over time.
  • Spike test — sudden traffic burst (e.g. 10x in 30s), to check autoscaling/rate-limiting behavior.
~/qa-agent/.venv/bin/python -m locust -f locustfile.py --headless -u 100 -r 10 --run-time 5m --host https://target
  • -u = concurrent users, -r = spawn rate/sec, watch p50/p95/p99 latency, not just average — averages hide the tail where users actually suffer.
  • Always test against staging, never production, unless the user explicitly authorizes and it's a deliberately scoped/rate-limited game-day test.

API latency benchmarking

For single-endpoint checks: curl -w "@curl-format.txt" -o /dev/null -s <url> to get connect/TTFB/total timing breakdown, or script repeated requests calls and report p50/p95/p99.

What "good" looks like

Don't just report a number — compare against a baseline (previous release, competitor, or an explicit SLA/budget the team has agreed to). A regression from 200ms → 400ms matters even if 400ms sounds "fine" in isolation.

Reporting

Include: test type, load profile, environment, p50/p95/p99 latency, error rate, and — critically — what broke first when you pushed past capacity (DB connection pool? memory? a specific endpoint?). Use [[bug-reporting]] for perf regressions found as defects.

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.