benchmark
DenchHQ/DenchClaw/skills/gstack/benchmark/SKILL.md
Performance benchmarking. Baseline page load times, Core Web Vitals, and resource sizes. Compare before/after on every PR. Catch bundle size regressions before they ship.
Skill1.7k starsChanged 6 months ago
What's in it
- Benchmark — Measure Performance
- What to Measure
- Core Web Vitals
- Page Load
- Bundle Size
- Resource Analysis
- Workflow
- 1. Baseline (before changes)
- 2. Current (after changes)
- 3. Compare
- 4. Flag Regressions
- Important Rules
---
name: benchmark
description: |
Performance benchmarking. Baseline page load times, Core Web Vitals, and
resource sizes. Compare before/after on every PR. Catch bundle size
regressions before they ship.
---
# Benchmark — Measure Performance
Establish baselines and catch regressions.
**Related skills:** [qa](../qa/SKILL.md) | [review](../review/SKILL.md) | [ship](../ship/SKILL.md)
---
## What to Measure
### Core Web Vitals
- **LCP** (Largest Contentful Paint) — Target: < 2.5s
- **FID** (First Input Delay) — Target: < 100ms
- **CLS** (Cumulative Layout Shift) — Target: < 0.1
### Page Load
- **TTFB** (Time to First Byte)
- **DOMContentLoaded**
- **Load event**
- **Full page load** (all resources)
### Bundle Size
- **JavaScript bundle size** (compressed + uncompressed)
- **CSS bundle size**
- **Total transfer size**
- **Number of requests**
### Resource Analysis
- **Largest assets** by size
- **Uncompressed assets** that should be compressed
- **Unused JavaScript** (tree-shakeable)
- **Image optimization** opportunities
---
## Workflow
### 1. Baseline (before changes)
```bash
git stash # or checkout base branch
# Run measurements
git stash pop # or checkout feature branch
```
### 2. Current (after changes)
Run the same measurements on the current branch.
### 3. Compare
```
PERFORMANCE REPORT
═══════════════════════════════════════
Before After Delta
LCP: 2.1s 2.3s +200ms ⚠️
CLS: 0.02 0.01 -0.01 ✓
JS Bundle: 245KB 312KB +67KB ⚠️
CSS Bundle: 42KB 43KB +1KB ✓
Requests: 23 25 +2
Transfer: 890KB 1.1MB +210KB ⚠️
═══════════════════════════════════════
```
### 4. Flag Regressions
- JS bundle size increase > 10KB → warning
- LCP increase > 200ms → warning
- CLS increase > 0.05 → critical
- New unoptimized images → warning
---
## Important Rules
- Always compare against the base branch, not an absolute value
- Measure multiple times and take the median to reduce noise
- Flag regressions but don't block — some features legitimately increase size
More agent context in DenchHQ/DenchClaw
35 other files this repository gives its agents.
Cursor rule
Skill
- agent-builderskills/app-builder/agent-builder/SKILL.md
- data-builderskills/app-builder/data-builder/SKILL.md
- game-builderskills/app-builder/game-builder/SKILL.md
- platform-apiskills/app-builder/platform-api/SKILL.md
- app-builderskills/app-builder/SKILL.md
- composio-appsskills/composio-apps/SKILL.md
- actionsskills/crm/actions/SKILL.md
- documentsskills/crm/documents/SKILL.md
- duckdb-operationsskills/crm/duckdb-operations/SKILL.md
- object-builderskills/crm/object-builder/SKILL.md
- reportsskills/crm/reports/SKILL.md
- database-crm-systemskills/crm/SKILL.md
- views-filtersskills/crm/views-filters/SKILL.md
- dench-integrationsskills/dench-integrations/SKILL.md
- canaryskills/gstack/canary/SKILL.md
- carefulskills/gstack/careful/SKILL.md
- design-consultationskills/gstack/design-consultation/SKILL.md
- design-reviewskills/gstack/design-review/SKILL.md
- document-releaseskills/gstack/document-release/SKILL.md
- freezeskills/gstack/freeze/SKILL.md
- guardskills/gstack/guard/SKILL.md
- investigateskills/gstack/investigate/SKILL.md
- land-and-deployskills/gstack/land-and-deploy/SKILL.md
- office-hoursskills/gstack/office-hours/SKILL.md
- plan-ceo-reviewskills/gstack/plan-ceo-review/SKILL.md
- plan-design-reviewskills/gstack/plan-design-review/SKILL.md
- plan-eng-reviewskills/gstack/plan-eng-review/SKILL.md
- qa-onlyskills/gstack/qa-only/SKILL.md
- qaskills/gstack/qa/SKILL.md
- retroskills/gstack/retro/SKILL.md
- reviewskills/gstack/review/SKILL.md
- shipskills/gstack/ship/SKILL.md
- gstack-workflowskills/gstack/SKILL.md
- unfreezeskills/gstack/unfreeze/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
- DenchHQ/ironclaw1.7k
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

