Response speed and acceleration

Long prompts can reverse a local LLM speed ranking

For long documents, generation and completion rankings can differ

A language model takes text, processes its content, and then generates an answer. A device with twice the decode1 rate can still finish a summary later if it waits longer before the first token2 on a long document. Using a 16K meeting record and 300-token answer, this guide adds prefill3 wait and generation time to compare completion.

When summarizing meeting notes in a few paragraphs, the user's wait lasts until the final sentence appears. It includes both the wait before the first token while the model reads the document and the time to generate the summary. Tokens per second, commonly shown in device tables, describes generation after the answer begins—not total completion time.

Requirements and key details
  • Decode tok/s describes generation after the first answer token.
  • With long inputs, prefill and TTFT can take a larger share.
  • Perceived rankings can change with input and answer length, even for the same devices.

For a short question, the faster decoder finishes first

Assume the same model produces an answer of about 300 tokens. Hypothetical device A takes 4 seconds to first token and then generates at 60 tok/s; B takes 6 seconds and generates at 30 tok/s. These are assumptions for illustrating the calculation, not product measurements.

Generation alone takes about 5 seconds for A (300÷60) and 10 seconds for B (300÷30). Adding first-token wait gives about 9 seconds for A and 16 for B, so A finishes first on this short task. Even with twice the generation speed, total completion is not exactly half.

This illustrative calculation assumes a constant token rate and excludes model loading and queueing. First-token wait is added separately from decode speed.

A stack of long documents leads through first-token wait to a stream of answer tokens.
A long input can extend pre-answer wait even with fast decoding.

For a long input, prefill wait can reverse the ranking

Keep the same model and 300-token answer, but use a 16K meeting record. In this hypothetical example, time to first token4 is 40 seconds for A and 10 seconds for B; generation still takes 5 seconds for A and 10 for B. Total time is about 45 seconds for A and 20 for B, so B finishes first despite A's twice-faster generation.

Prefill is the stage in which the model processes a long input. TTFT covers the whole wait for the first token, including prefill, queuing, and execution preparation. The calculation changes only TTFT to 40 and 10 seconds to show how total completion time changes with a longer input.

The hardware did not change; the input length of the compared task did. A can lead on a short question while B finishes a long meeting record first.

Input waiting time can change which device finishes first even with unchanged generation speeds.
WorkloadIllustrative device A · 60 tok/sIllustrative device B · 30 tok/s
Short input · about 300 output tokens4 s + 5 s = about 9 s6 s + 10 s = about 16 s
16K input · about 300 output tokens40 s + 5 s = about 45 s10 s + 10 s = about 20 s
Prefill with GPU and ANE together — M3 Ultra 512GB · Qwen3.8-27B oQ4e · oMLX 0.6.3rc2
Published uncached 4K and 16K prompt results. This compares 0.6.3rc2 execution paths, not 0.7.0 results.
A race shows different devices leading with short and long inputs.
Generation rankings for short chats may differ from completion rankings for long documents.

Match answer length and cache state too

If you only ask for dates and owners, the short answer makes first-token wait a large share of total time. A long draft extends the generation stage, so decode differences continue to matter. Comparison prompts5 should therefore match both the source document and expected answer length.

Separate a meeting record opened for the first time from one already processed. A repeated request with cached input can have a different processing profile from the first request. Keeping a process running and reusing an input cache are also distinct conditions, so record them separately.

Side-by-side tasks show short-input/long-output and long-input/short-output workloads.
Input and answer lengths determine whether to focus on prefill or decode.

Compare devices by completion time for your workload

In the comparison view, select both 4K and a 16K input closer to your usual documents while keeping the model fixed. Review estimated end-to-end flow including prefill, then compare with generation-only to see which wait causes the difference. Account for different recommended formats or acceleration settings across devices.

Before buying, if possible, run the model file and runtime6 you plan to use with your meeting-note input and answer length. Record first-token time, completion, and generated token count separately to distinguish estimates from measurements.

Even while A remains at 60 tok/s and B at 30 tok/s, a longer first-token wait at 16K can change the end-to-end ranking. If A leads on your real 16K task and preserves the decisions you need, that may justify a purchase. If your current device finishes on time with adequate quality, a higher ranking alone may not justify the expense.

Terminology notes

  1. Token decoding — The stage that generates successive output tokens using the input and the response produced so far.

    Back to the text
  2. Token — A unit into which a model divides input or output for processing.

    Back to the text
  3. Prefill — The stage where an LLM reads the input prompt and computes representations for its tokens. Longer prompts contain more tokens to process.

    Back to the text
  4. Time to First Token — The time from sending a request until its first output token arrives.

    Back to the text
  5. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  6. Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.

    Back to the text

Frequently asked questions

What should you check first in this article?
A language model takes text, processes its content, and then generates an answer. A device with twice the decode rate can still finish a summary later if it waits longer before the first token on a long document. Using a 16K meeting record and 300-token answer, this guide adds prefill wait and generation time to compare completion.