Prompt Library › ⚙️ Technical › Performance Bottleneck Analyzer
GPT-4o ⚙️ Technical Intermediate

Performance Bottleneck Analyzer

Identify and prioritize performance bottlenecks in your code with actionable optimization recommendations.

👁 23 views ⎘ 0 copies ♥ 0 likes

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
Hit "Run it in your AI"

We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Send it

This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.

Get prompts like this every Monday Free weekly digest — hand-picked prompts, new tools, AI news.