benchmark

Detects web performance regressions by comparing page metrics against captured baselines.

107|7|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/no-session/pstack --skill benchmark-no-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: benchmark
Source: https://github.com/no-session/pstack/tree/main/benchmark
Command: npx skills add https://github.com/no-session/pstack --skill benchmark-no-session

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web apps get slow gradually as each change adds milliseconds and kilobytes, and nobody notices until load times are unacceptable. This Skill measures real page performance, captures baselines, and flags regressions before they ship. ## Core Features & Use Cases - Baseline Capture & Comparison: Record TTFB, FCP, LCP, DOM timings, transfer sizes, and request counts per page, then diff current metrics against the saved baseline with regression thresholds. - Resource & Bundle Analysis: Identify the slowest and largest resources, track JS/CSS bundle sizes, and flag third-party scripts blocking rendering. - Trend Tracking & Budgets: Review historical benchmark trends over time and grade pages against industry performance budgets (FCP < 1.8s, LCP < 2.5s, total JS < 500KB). - Use Case: Before merging a PR, run a benchmark against your app to discover that LCP doubled and the JS bundle grew 60%, then pinpoint the new dependency responsible. ## Quick Start Ask the AI to run /benchmark on your local dev server URL to audit page performance and compare it against the saved baseline.

Frequently Asked Questions about benchmark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect performance regressions before merging a PR?

Capture a baseline with /benchmark <url> --baseline on the main branch, then run /benchmark <url> on your feature branch. The skill compares TTFB, FCP, LCP, bundle sizes, and request counts, flagging regressions over 50% or 500ms.

How to measure Core Web Vitals from the command line?

The skill uses a headless browse daemon to load pages and reads performance.getEntriesByType data via JavaScript evaluation. It extracts FCP, LCP, TTFB, DOM Interactive, and full load times directly from the browser's Performance API.

Can I benchmark only the pages changed in my branch?

Yes, use /benchmark --diff to benchmark only pages affected by the current branch. It runs git diff against the base branch to determine which files changed and scopes the audit accordingly.

What counts as a performance regression in benchmarks?

Timing increases over 50% or 500ms absolute count as regressions, while over 20% is a warning. Bundle size growth over 25% is a regression, and request count growth over 30% triggers a warning.

Why is baseline capture required for regression detection?

Without a baseline, the skill can only report absolute numbers, which are meaningless across different page types. A 2000ms load is fine for a dashboard but terrible for a landing page, so comparison against your own baseline is essential.