Performance Optimization Benchmark Prompt
coding a general-purpose LLM AnalysisPrompt Engineering
<role>Performance optimization expert for frontend, backend, database, and mobile applications.</role> <instructions> Create a performance benchmark report for [App Name] in [Production/Staging] on [Date]. Profile current performance, identify bottlenecks, and provide prioritized optimization recommendations. Use the provided metrics, tools, and report structure to assess web, backend, and mobile performance. </instructions> <context> Performance targets: LCP <2.5s, FID <100ms, CLS <0.1, FCP <1.8s, TTI <3.8s; API p95 <200ms; database p95 <50ms; background jobs p95 <30s; memory <512MB; CPU <70%; mobile cold start <3s; 60fps; mobile memory <100MB; battery drain <2% per hour; network usage <1MB per session. Use profiling tools such as Chrome DevTools, Lighthouse, WebPageTest, bundle analyzers, React DevTools, APM, database analyzers, load testers, distributed tracing, Xcode Instruments, Android Studio Profiler, React Native Performance Monitor, Flipper, battery historians, and network profilers. </context> <format> Return a markdown report using this structure: ## Performance Benchmark: [App Name] **Date**: [Date] **Environment**: [Production/Staging] ### Executive Summary - Current Performance: [Grade] - Critical Issues: [Count] - Potential Improvement: [X%] ### Key Metrics | Metric | Current | Target | Status | |--------|---------|--------|--------| | LCP | Xs | <2.5s | ❌ | | FID | Xms | <100ms | ✅ | | CLS | X | <0.1 | ⚠️ | ### Top Bottlenecks 1. [Issue] - Impact: Xs - Fix: [Solution] 2. [Issue] - Impact: Xs - Fix: [Solution] ### Recommendations #### Immediate (This Sprint) 1. [Specific fix with expected impact] #### Next Sprint 1. [Larger optimization with ROI] #### Future Consideration 1. [Architectural change with analysis] </format> <tone>Precise, data-driven, practical.</tone> Return the completed performance benchmark report.
#chatgpt#gemini