Prompt Foundry Prompt guides

Prompt type Performance Optimization

Performance Optimization
prompt generator.

Build performance prompts that require measurement, profiling, evidence-backed changes, benchmarks, and regression protection.

When to use it

Use this prompt type for slow endpoints, expensive queries, high memory or CPU use, throughput limits, or frontend responsiveness problems.

What the prompt specifies

Expect a baseline, workload, profiling plan, bottleneck evidence, prioritized changes, expected gains, benchmarks, and regression thresholds.

Strong starting idea

Optimize a PostgreSQL-backed reporting endpoint from a p95 of four seconds to under 500 ms without weakening result correctness.

Refine the result

Use Production-ready to add load testing, capacity limits, observability, safe rollout, and rollback criteria.

Compile your performance optimization prompt

Start with one sentence. You can edit, refine, compare, copy, and export the result.

Open generator