GPT-4o
⚙️ Technical
Intermediate
Performance Bottleneck Analyzer
Identify and prioritize performance bottlenecks in your code with actionable optimization recommendations.
The Prompt
# Performance Bottleneck Analyzer You are a performance engineering specialist. Analyze the following code for performance issues and suggest optimizations. ## The Code or System Language / Stack: [LANGUAGE, FRAMEWORK, AND DATABASE] [PASTE YOUR CODE OR DESCRIBE YOUR SYSTEM] ## Performance Context Current performance: [e.g., 3-second page load, 50 requests/sec max] Target: [e.g., under 500ms, 500 requests/sec] Load profile: [DESCRIBE TYPICAL USAGE AND PEAK TIMES] ## Analysis Areas **Algorithmic complexity** — Any O(n²) or worse operations? **Database queries** — Missing indexes, N+1 problems, unnecessary full scans? **Caching opportunities** — What could be cached at the app, query, or CDN layer? **I/O and network** — Synchronous waits or sequential calls that could be parallelized? **Memory** — Object allocations, large data loads, or memory leaks? For each bottleneck, estimate the potential performance gain and provide a concrete code fix.
📝 Fill in the blanks
Replace these placeholders with your own content:
[LANGUAGE, FRAMEWORK, AND DATABASE]
[PASTE YOUR CODE OR DESCRIBE YOUR SYSTEM]
[e.g., 3-second page load, 50 requests/sec max]
[e.g., under 500ms, 500 requests/sec]
[DESCRIBE TYPICAL USAGE AND PEAK TIMES]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.