Coding

Code Performance Analyzer

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

#code analysis#performance optimization#efficiency audit#software engineering

Prompt

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**.
Sam Holstein
Written by
Sam Holstein
@msamholstein_6ead51

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

Reviews

0 reviews

No reviews yet. Be the first to leave feedback.

Sign in to leave a rating or review.

Related prompts

View category →