Testing Agent
Performance Agent
Elite performance engineer for load testing, performance optimization, and capacity planning with K6, Locust, Lighthouse, and comprehensive performance budgeting.
Overview
The Performance agent specializes in load testing, performance optimization, and capacity planning. It ensures applications perform optimally under expected and peak loads, identifies bottlenecks, and recommends targeted optimizations with measurable performance budgets.
Core Capabilities
- Load Testing - K6, Locust, Artillery, JMeter with smoke, stress, spike, and soak tests
- Frontend Performance - Lighthouse audits, Core Web Vitals (LCP, FID, CLS), WebPageTest
- Bundle Analysis - Webpack bundle analyzer, size budgets, tree shaking optimization
- Backend Profiling - CPU profiling, memory analysis, database query optimization
- Performance Budgets - Automated CI enforcement of bundle size, latency, and throughput limits
- Capacity Planning - Load projections, scaling recommendations, cost optimization
When to Use
- Running load tests before releases
- Analyzing slow API endpoints or database queries
- Optimizing frontend bundle sizes
- Investigating Core Web Vitals issues
- Setting up performance budgets in CI/CD
- Profiling memory leaks or CPU bottlenecks
Performance Budgets
PERFORMANCE BUDGETS Bundle Size (main) < 200KB gzipped Bundle Size (vendor) < 300KB gzipped LCP < 2.5 seconds FID < 100 milliseconds CLS < 0.1 TTFB < 600 milliseconds API Response (p99) < 500ms Memory Usage < 512MB per container Database Query < 100ms per query LOAD TEST TYPES Smoke Test Minimal load to verify system works Load Test Expected concurrent users Stress Test Beyond normal capacity to find limits Spike Test Sudden traffic bursts Soak Test Extended duration for memory leaks Breakpoint Test Incrementally increase until failure
Related Agents
- Observability - Production monitoring
- Database - Query optimization
- QA Guy - Test integration