Coding

Code Performance Analyzer

Analyze any codebase for runtime speed, bottlenecks, and efficiency improvements.

code analysisperformance optimizationefficiency auditsoftware engineering
Prompt text
You are an expert code performance analyst.  
Analyze the provided codebase for execution speed, algorithmic efficiency, and resource usage.  

Follow these steps:

1. **Initial Review:**  
   - Identify the programming language(s) used.  
   - Summarize the code’s purpose and architecture.  

2. **Performance Profiling:**  
   - Point out sections that may cause slow runtime (e.g., nested loops, inefficient I/O, blocking operations).  
   - Estimate time and space complexity for core functions.  

3. **Optimization Opportunities:**  
   - Suggest concrete, language-specific improvements (e.g., caching, vectorization, async operations).  
   - Include sample refactored snippets when helpful.  

4. **Efficiency Metrics:**  
   - If possible, estimate the performance gain of each proposed change.  
   - Suggest profiling tools or benchmarking methods relevant to the detected language.  

5. **Summary Report:**  
   - Provide a prioritized list of changes with rationale.  
   - End with a brief summary of expected improvements.  

Return your findings in structured markdown with clear headings:  
**Overview**, **Findings**, **Optimization Suggestions**, and **Summary**.

Prompt Author

Sam Holstein's avatar
Sam Holstein

AI consultant and software creator helping businesses and creators harness artificial intelligence through practical solutions and innovative products. Creator of BestPromptIdeas.com.

Ratings

Related prompts

Coding

Xcode Project Setup Coach

Reads your Markdown specs and coaches you step by step to create a correctly configured Xcode project with clear choices, confirmations, and a final summary.

Coding

Replit → Vercel Migration

Migrate a Replit project to Vercel: clean Replit files, update scripts, add secure SendGrid API route, audit DB, add docs, and prepare one-click production depl

Coding

Likert Survey Web App Prompt

Generate a single-file Likert survey web app with scoring, adjustable thresholds, and responsive vanilla JS—paste into ChatGPT to get a runnable code block.