cffrank/paperclip-skills-agents/perf-benchmarker
Claude Code and agent skill by cffrank/paperclip-skills-agents
- community
Checking that the SKILL.md file is still in the repository.
Performance benchmarking for Cloudflare Workers. Covers CPU time measurement, cold start analysis, request duration profiling, D1 query latency, edge cache hit rates, and bundle size tracking. Use when performance testing, profiling slow endpoints, analyzing cold starts, benchmarking D1 queries, or tracking Core Web Vitals. Triggers on: "performance", "benchmark", "slow", "latency", "cold start", "CPU time", "profiling", "Core Web Vitals", "bundle size", "cache hit rate", or "optimization".
Install
npx vskill@latest install cffrank/paperclip-skills-agents/perf-benchmarkerSKILL.md
The same SKILL.md was published earlier as cffrank/paperclip-skills-agents/perf-benchmarker.
Performance Benchmarker Skill
Adapted from agency-agents testing-performance-benchmarker.md — rewritten for Cloudflare Workers serverless performance model.
What's Different About Workers Performance
Workers don't have traditional server metrics (CPU load, memory, thread pools). Performance is measured differently:
| Metric | Traditional | Workers | |
|---|---|---|---|
| Response time | Time to first byte | Request duration (wall time) | |
| CPU usage | % of cores | CPU time per request (ms) | |
| Memory | RSS/heap | Isolate memory (128MB limit) | |
| Scaling | Instances/pods | Automatic (global edge) | |
| Cold starts | Container boot | V8 isolate creation (~5ms) |
Key Metrics to Track
Per-Request Metrics
D1 Query Profiling
Performance Budgets
| Metric | Budget | Alert | |
|---|---|---|---|
| Request P50 | < 50ms | > 100ms | |
| Request P99 | < 200ms | > 500ms | |
| CPU time per request | < 10ms | > 30ms | |
| D1 query | < 20ms | > 50ms | |
| Cold start | < 10ms | > 50ms | |
| First load JS bundle | < 200KB | > 300KB | |
| LCP (pages) | < 2.5s | > 4s | |
| CLS (pages) | < 0.1 | > 0.25 |
Bundle Size Tracking
Load Testing Pattern
Common Performance Issues
| Issue | Symptom | Fix | |
|---|---|---|---|
| N+1 D1 queries | High subrequest count, slow response | Use db.batch() or JOIN | |
| Unbuffered R2 reads | High memory, timeout | Stream with obj.body | |
| Large bundle | Slow cold starts | Tree-shake, lazy load | |
| Missing KV cache | Repeated D1 reads for static data | Cache in KV with TTL | |
| Sync crypto operations | High CPU time | Use crypto.subtle (async) | |
| JSON.stringify on large objects | CPU spike | Stream or paginate |
Benchmark Report Template
Relationship to Other Skills
- Loaded by: QA Lead agent
- Feeds into:
reality-checker(Gate 2 performance evidence),sre-ops(SLO data) - Complements:
test-analyzer(functional metrics),d1-optimizer(query tuning)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/perf-benchmarker/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cffrank/paperclip-skills-agents/perf-benchmarker)