Making agents fast - what I've learnt over the last 12 months A practitioner's 12-month retrospective on optimizing agentic workflows argues that inference speed is often not the biggest lever, splitting it into time to first token (TTFT) and tokens per second (tok/s) and noting that provider-to-provider speed deltas for the same model are enormous. The write-up flags a serious "noisy neighbour" factor across inference providers, where TTFT spikes can indicate queuing or slower hardware, and says reducing a model's thinking budget can dwarf the gains from choosing a faster service tier such as OpenAI's flex, standard and fast tiers. Making agents fast - what I've learnt over the last 12 months I've spent a lot of my career optimising websites and apps to run faster, and it's been interesting to apply some of those principles to agentic workflows. I'll run over some of my key learnings - there's many more I want to get written down at some point, but for brevity I think this is my rough mental model of tackling this. Inference speed The obvious thing to start with is inference speed. This has two key components, which will be familiar if you have done any backend API optimisation. The first is TTFT time to first token . This is analogous to TTFB time to first byte in web servers, namely how quickly does the first token come after you've done a request. This includes prefill input token processing , so this scales with how many tokens the agent is sending to the inference provider too - so you should expect to see potentially significant variance on this number, much like you'd expect TTFB to be higher on an endpoint that e.g. has to do more database calls to prepare the response. A lower TTFT is better. Prompt caching is, of course, absolutely vital to this. Cached tokens are much faster and cheaper to serve. Most agent harnesses handle this well these days - it's been a while since I've ever seen issues with this. Obviously worth keeping an eye on, but it matters less than I predicted in real world experience. The second is tok/s tokens per second , which measures how quickly tokens come back once the response starts. This is closer to bandwidth on application servers, where a higher value is better. How relatively important each are depends on what kind of responses you're expecting back from the LLM provider. For example, if you are sending back and forth lots of short responses between turns in your agentic workflow, TTFT is likely to comparatively be of greater importance than tok/s. Equally, if you are having the LLM output longer responses say, code or documents , then TTFT is likely to be less important than tok/s. Illustrative numbers. TTFT is network, queueing and prefill - the wait before anything comes back. Tok/s is how fast it streams once it starts. Knowing which number you need faster is important when comparing models and inference providers. Smaller models are generally faster than big ones. But between providers of the same model