testing-performance

Detect and prevent performance regressions in bundle size and render time.

335|45|Updated Aug 13, 2015
One-click install
npx skills add https://github.com/blueprintui/blueprintui --skill testing-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-performance
Source: https://github.com/blueprintui/blueprintui/tree/main/.claude/skills/testing-performance
Command: npx skills add https://github.com/blueprintui/blueprintui --skill testing-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you prevent slow UI components and large bundle sizes, ensuring your web applications deliver a smooth, responsive user experience. It automates the detection of performance regressions, saving you time on manual checks.

Core Features & Use Cases

  • Automated Bundle Size Checks: Automatically verifies that component bundle sizes remain within acceptable limits, preventing bloat.
  • Render Time Monitoring: Tracks and alerts on slow rendering times for UI elements, ensuring a fluid user interface.
  • Regression Prevention: Integrates into your workflow to catch performance degradations before they impact users.
  • Use Case: Before deploying a new UI component, activate this skill to automatically run performance tests. It will flag any increases in bundle size or render time, allowing you to optimize proactively and ensure your application remains fast.

Quick Start

Use the testing-performance skill to run all performance tests for the 'bp-button' component and report any regressions.

Frequently Asked Questions about testing-performance

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

FAQPage Schema
How do I prevent performance regressions in UI components?

Performance regressions can be prevented by running automated tests that measure bundle size and render time before deployment. This Skill detects increases in either metric, alerting you to optimize components proactively and catch degradations early in your workflow.

What's the best way to monitor bundle size and render time for web components?

Monitor bundle size and render time by creating performance test files named element.performance.ts alongside your components, then execute them with pnpm run test:performance. This Skill uses testBundleSize and testRenderTime to verify constraints automatically.

Can I automate performance testing in my UI component workflow?

Yes. This Skill integrates performance tests into your CI workflow to catch slow rendering and bundle bloat automatically. Tests run against HTML fixtures using the performance test template, flagging any regressions before deployment.

How do I set up performance tests for web component bundle size?

Set up performance tests by placing element.performance.ts files beside your component files and defining bundle size constraints with testBundleSize. Run pnpm run test:performance to verify components stay within acceptable limits.

What does render time testing measure in UI components?

Render time testing measures how quickly UI elements display and respond. This Skill tracks render time for web components using testRenderTime, alerting you when rendering speed degrades so you can optimize before users experience slowdowns.

Do I need special setup to run performance tests for components?

Minimal setup is required. Place performance test files beside your components, use HTML fixtures as shown in the template, and run pnpm run test:performance. This Skill handles the rest, automatically comparing results against your defined bundle size and render time constraints.