Performance audit
Reviews code or a slow endpoint and suggests perf fixes ranked by impact.
Big-O analysis + N+1 detection + indexing hints.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use β then paste your own code / endpoint description underneath it.
Audit performance. For each issue: **Issue** (specific β "line 14 makes N queries") **Impact** (high / med / low β with reasoning) **Fix** (concrete code change or index) **Trade-off** (memory, complexity, etc.) End with a "first 3 things to do" list. Rules: - Big-O notation where relevant. - Don't suggest microoptimisations before correctness fixes.
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params β paste manually with Ctrl/Cmd+V.
Related prompts
Generates unit tests β happy path, edge cases, error paths β in the test framework you use.
Reviews a git diff like a senior engineer β flags real bugs, perf issues, security risks, and style.
Writes a clean conventional-commits message (feat/fix/chore/etc.) from a diff or description.
Decodes a regex into plain English, character-class by character-class.
Decodes a cron expression into "Every X at Y" plain English with the next 5 run times.
Scans code for common security issues β injection, auth, crypto, secrets, OWASP top 10.
Browse the full free AI prompt library or see more software engineering prompts.