Performance Audit
Comprehensive performance audit with metrics, bottleneck identification, and optimization recommendations
$ npx claude-code-templates@latest --command="performance/performance-audit" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Performance Audit
Conduct comprehensive performance audit: $ARGUMENTS
Current Performance Context
- Bundle analysis: !
npm run build -- --analyze 2>/dev/null || echo "No build analyzer" - Dependencies: !
npm list --depth=0 --prod 2>/dev/null | head -10 - Build time: !
time npm run build >/dev/null 2>&1 || echo "No build script" - Performance config: @webpack.config.js or @vite.config.js or @next.config.js (if exists)
Task
Conduct comprehensive performance audit following these steps:
- Technology Stack Analysis
- Review build tools and optimization configurations
- Check for performance monitoring tools already in place
- Code Performance Analysis
- Look for nested loops and O(n²) operations
- Check for unnecessary computations and redundant operations
- Review memory allocation patterns and potential leaks
- Database Performance
- Check for missing indexes and slow queries
- Review connection pooling and database configuration
- Identify N+1 query problems and excessive database calls
- Frontend Performance (if applicable)
- Check for unused code and dependencies
- Review image optimization and lazy loading
- Examine render performance and re-render cycles
- Check for memory leaks in UI components
- Network Performance
- Check for unnecessary network requests
- Analyze payload sizes and compression
- Examine CDN usage and static asset optimization
- Asynchronous Operations
- Check for blocking operations and race conditions
- Analyze task queuing and background processing
- Identify opportunities for parallel execution
- Memory Usage
- Review garbage collection patterns
- Analyze object lifecycle and cleanup
- Identify large objects and unnecessary data retention
- Build & Deployment Performance
- Review dependency bundling and tree shaking
- Check for development vs production optimizations
- Examine deployment pipeline efficiency
- Performance Monitoring
- Identify key performance indicators (KPIs) to track
- Review alerting and performance thresholds
- Suggest performance testing strategies
- Benchmarking & Profiling
- Create benchmarks for critical code paths
- Measure before and after optimization impact
- Document performance baselines
- Optimization Recommendations
- Provide specific code examples and alternatives
- Suggest architectural improvements for scalability
- Recommend appropriate performance tools and libraries
Include specific file paths, line numbers, and measurable metrics where possible. Focus on high-impact, low-effort optimizations first.
Related Claude Code Commands
Optimize Database Performance
Optimize database queries, indexing, and performance for improved response times and scalability
Optimize Bundle Size
Reduce and optimize bundle sizes through analysis, configuration, and code splitting strategies
Optimize Build
A ready-to-install Claude Code component.
Optimize Api Performance
Comprehensive API performance optimization with response time reduction, throughput improvement, and scalability enhancements
Implement Caching Strategy
Design and implement comprehensive caching solutions for improved performance and scalability
Optimize Memory Usage
Comprehensive memory usage optimization with leak detection, garbage collection tuning, and memory profiling
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.