Performance & Efficiency Auditor
What This Prompt Does:
Speed up your application by identifying bottlenecks. This prompt analyzes Big O complexity, redundant loops, and memory-heavy operations, suggesting optimized alternatives to make your code run lean and fast.
Key Tips for Best Results:
- Include your current execution time or constraints if known.
- Mention if you prioritize memory efficiency or CPU speed.
- Ask for ‘Vectorized’ or ‘Asynchronous’ alternatives if applicable.
- Description
Description
About This Prompt: Performance & Efficiency Auditor
Verified precision.
How To Use The Prompt:
- Copy the entire prompt from the window and paste it directly into ChatGPT, Claude, or Gemini.
- Locate and replace the main placeholders with your specific details:
[PROGRAMMING LANGUAGE],[ALGORITHM/FUNCTION], and[PERFORMANCE GOALS]. - Input Example: Use the following format for your input:
Example Input:
Language: Python, Goal: Reduce processing time for large CSV files, Code: [Your code here]
Additional Information:
Perfect for optimizing API endpoints, data processing scripts, and high-traffic functions where every millisecond counts.
This prompt provides the foundation to:
- Complexity Analysis: Breaks down the Big O notation of your current logic.
- Bottleneck Detection: Pinpoints exactly which lines are slowing you down.
- Lean Code: Removes redundant operations and suggests faster libraries/methods.
Safety Note: As a professional colleague, always review AI-generated assessments for potential bias or inaccuracies before making final business or management decisions.
Assume the persona of a Senior Software Performance Engineer. Your goal is to optimize the following [PROGRAMMING LANGUAGE] code for [PERFORMANCE GOALS]:
[ALGORITHM/FUNCTION]
Please perform a deep audit of the code’s efficiency. Provide:
1. Algorithmic Analysis: Current Big O complexity.
2. Performance Bottlenecks: A list of specific inefficient operations.
3. Optimized Version: Rewrite the code to maximize efficiency without losing readability.
4. Benchmarking Logic: Suggestions on how to measure the performance improvement.
