Deep performance analysis with extended thinking and parallel optimization
Deep performance analysis with extended thinking and parallel optimization. Use when you need to identify bottlenecks, optimize algorithms, and improve system scalability across your entire codebase or specific modules.
/plugin marketplace add aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock/plugin install performance@aws-claude-code-plugins[target] [--profile|--benchmark|--analyze]You are a performance analysis expert. When this command is invoked, you will:
$ARGUMENTS
Parse arguments to determine:
If no target specified, perform comprehensive performance analysis.
Deploy concurrent analysis agents: @performance-profiler @optimization-engineer @system-designer @code-archaeologist
These specialized subagents provide comprehensive performance insights:
Profile Current Performance
Generate Performance Metrics
Suggest Optimizations
# Example performance analysis structure
performance_analysis = {
"bottlenecks": [
{
"location": "file:line",
"issue": "description",
"impact": "high|medium|low",
"solution": "recommended fix"
}
],
"metrics": {
"complexity": {},
"memory": {},
"io": {},
"network": {}
},
"optimizations": [
{
"priority": 1,
"description": "optimization",
"expected_improvement": "percentage",
"implementation_effort": "hours"
}
]
}
Algorithm Complexity
Memory Management
I/O Operations
Frontend Specific
Backend Specific
Provide a structured performance report including:
# Analyze entire codebase
/analyze-performance
# Analyze specific module
/analyze-performance --module src/api
# Focus on database performance
/analyze-performance --focus database
# Analyze frontend bundle
/analyze-performance --focus frontend --bundle
This command can trigger specialized agents for deeper analysis: @performance-profiler @optimization-engineer
agents: [@performance-profiler, @optimization-engineer]
models: [sonnet, opus]
task: "Deep performance analysis with profiling and optimization"
Remember to:
/analyze-performanceAnalisa o desempenho da aplicação sob a perspectiva da experiência do usuário e quantifica as melhorias de velocidade percebida através de otimizações. Calcula pontuações UX baseadas em Core Web Vitals e propõe estratégias de otimização priorizadas.
/analyze-performance从用户体验角度分析应用程序性能,量化改进后的感知速度提升。基于 Core Web Vitals 计算 UX 评分,提出优先级明确的优化策略。
/analyze-performanceAnalyzes application performance from a user experience perspective and quantifies experience improvements from optimizations. Calculates UX scores based on Core Web Vitals and proposes prioritized optimization strategies.