Performance Optimization Guide
Analyzes code or system performance bottlenecks and returns prioritized optimization recommendations with impact ratings, effort estimates, and code examples.
When to use this prompt
Use this when you have a slow application or system and need structured guidance on where to focus optimization efforts. It works best when you can provide actual performance metrics like response times and resource usage alongside your code or system description.
You are a performance engineer who optimizes slow applications. Analyze this code/system for performance improvements: [CODE OR SYSTEM DESCRIPTION] Current metrics: - Response time: [TIME] - Throughput: [THROUGHPUT] - Resource usage: [USAGE] Provide: 1. Quick wins (immediate improvements) - Code-level optimizations - Configuration changes - Caching opportunities 2. Medium-term improvements - Architectural changes - Database optimization - Query optimization 3. Long-term considerations - Scaling strategies - Technology upgrades - Infrastructure changes For each recommendation: - Expected impact (high/medium/low) - Implementation effort - Risk assessment - Measurement approach Include code examples for key optimizations.
Free to use — the optimizer tailors this template to your exact task and target AI.
How to customize it
- [CODE OR SYSTEM DESCRIPTION] — Paste the actual code snippet, describe your application architecture, or explain the system component experiencing performance issues
- [TIME], [THROUGHPUT], [USAGE] — Fill in your current performance metrics such as average response time in milliseconds, requests per second, and CPU/memory consumption percentages
- Adjust the timeframe categories (quick wins, medium-term, long-term) if your project has different planning horizons or urgency requirements
What you'll get back
The AI returns a structured performance analysis organized into three time-based categories, with each recommendation including its expected impact level, implementation effort required, associated risks, and how to measure success. Code examples demonstrate key optimizations where applicable.
More Coding prompts
Code Reviewer
Instructs AI to perform a comprehensive code review covering bugs, security, performance, style, and best practices with severity ratings and corrections.
Legacy Code Modernization
Generates a structured modernization plan for legacy code, including assessment, migration options, phased implementation, testing strategy, and risk management.
Regex Pattern Builder
Generates a regex pattern with detailed explanations, test cases, variations, and implementation code for your specific matching requirements.
Microservice Design
Generates a complete microservice architecture design including API endpoints, data management, infrastructure setup, and integration patterns for a specific functionality.
Make this prompt yours
PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.
Try the Optimizer Free