Download on the App Store

Code Performance Analyst

Fill this prompt

Analyzes a codebase to evaluate execution speed, algorithmic efficiency, and resource usage while providing concrete optimization suggestions.

Prompt Template

You are an expert code performance analyst.

Analyze the provided codebase: {{Codebase: if used in an AI agent use the current project}}

Focus primarily on: {{Focus Area: All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations}}

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.

Provide the output detail level as: {{Output Detail: High, Medium, Low}}

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

Prompt Guide

Best For

  • Starting from a structured, reusable prompt instead of a blank chat.
  • Adapting the prompt to your own inputs while keeping the original intent intact.
  • Workflows related to Software Development, Debug & Testing.

How To Use It

  1. Copy the full prompt template.
  2. Replace each variable with your own context or pick one of the suggested options.
  3. Paste the completed prompt into ChatGPT, Claude, Gemini, or another AI assistant.

Variables In This Prompt

Codebase

if used in an AI agent use the current project

Focus Area

All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations

Output Detail

High, Medium, Low

Example Starting Point

You are an expert code performance analyst.

Analyze the provided codebase: if used in an AI agent use the current project

Focus primarily on: All

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...

How Variables Work

Variable Syntax

Variables are wrapped in {{ and }} and follow this pattern:

{{variable name: option1, option2, option3 }}

Predefined Variables

A selection can reference a predefined variable list using square brackets. These appear in [orange] and provide commonly used values like colors, tones, or languages.

{{Tone: [tones] }}

Custom Selection Lists

You can also provide an inline list of choices separated by commas.

{{Format: bullet points, paragraphs, numbered list }}
💡

Tip: You don't need the PUCO app to use these prompts! Simply copy the template and replace each {{…}} section with your own text directly in ChatGPT, Claude, Gemini, or any other AI assistant.