LLM Latency Budget

Decompose and cut the wait on an LLM-backed request: measure per stage (queueing, prompt processing, time to first token, inter-token rate, output length, tool and retrieval time) at p50 and p95 split cached versus uncached, set a budget per stage against the user-visible target of first visible progress, then apply levers in order of measured payoff: shrink output, stabilise the cached prefix, parallelise independent calls, start retrieval speculatively, use a smaller model where a quality bar holds, stream with perceived-latency design, hedge only idempotent reads. Use for "our chatbot feels slow", "time to first token is 6 seconds", "p95 latency of the agent is terrible", "does streaming help". Not for price per call (llm-cost), CPU and memory in your own code (profiling), capacity under concurrency (capacity-planning), or provider errors and fallbacks (llm-provider-resilience).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit edfbf5eb1f

Frequently asked questions

npx get-skill add greenblacked/llm-latency-budget