Start with a small, repeatable request

Use an already downloaded local text model from ollama list. Keep its exact tag, your Ollama version and the same prompt for the comparison. Close only your own unnecessary work; do not interrupt another person's running model.

In Terminal, replace YOUR_LOCAL_MODEL below with that installed model name. The request goes to your own Mac, not a hosted API:

curl http://127.0.0.1:11434/api/generate -d '{
  "model": "YOUR_LOCAL_MODEL",
  "prompt": "Rewrite in one sentence: Send the draft by Friday for review on Monday.",
  "stream": false,
  "keep_alive": "5m"
}'

The generate API supports a complete non-streaming response and a keep-alive duration. Run the same request again promptly. This does not force a cold start: another app may already have loaded the model. Label the runs “first observed” and “repeat,” not “cold” and “warm,” unless you verified the initial state.

Read the phases instead of one overall speed label

Read the phase timings before changing models. If the first request takes longer than a repeat with the same prompt and model, compare load time first. If only a longer input costs more time, check prompt processing. If text starts promptly but ends late, compare generation and how much text the requests produced.

In the returned JSON, compare load_duration, prompt_eval_duration, eval_duration and total_duration. Ollama's usage reference defines these in nanoseconds: divide by 1,000,000,000 for seconds. Record output token count too. More output can take longer without indicating a slower model. The repeated prompt may use cached input, so it is not an independent benchmark of a different prompt.

  • If loading is the main difference between runs, investigate repeated model loading rather than rewriting the prompt.
  • If prompt processing dominates, repeat with a shorter input while keeping the model unchanged.
  • If generation dominates, compare the amount of output and model before changing hardware.
  • If direct Ollama is responsive but your usual app is not, investigate that app's added history, tools or request settings separately.

These are investigation paths, not diagnoses from one sample. Total duration is not a time-to-first-token measurement; non-streaming output appears only after completion. Missing timing fields or an incomplete response are not a valid zero-second result.

Check what is actually loaded

Run ollama ps while the model remains loaded. The FAQ explains the PROCESSOR column: CPU, GPU or a split. Record it rather than assuming a GPU is being used. A split alone does not identify the entire cause of delay. A larger context also needs more memory, as explained in the context guide.

Keep a comparison you can repeat

Date / Ollama version / exact model tag:
Prompt and output requirement:
First observed: load / prompt / generation / total seconds:
Repeat: load / prompt / generation / total seconds:
Output tokens in each run:
PROCESSOR / allocated context from ollama ps:
One change to test next:
Result after that single change:

Check that the rewrite retained both Friday and Monday. A quicker result that loses the required information is not a successful improvement. Repeat the comparison after changing only one variable.

Related guide: Run a local AI model on Mac.

Make timing rows you can compare

Give your runs names that describe what you observed. Use “first observed” for the first complete response you captured. Use “immediate repeat” for the same request made before the model could unload. If you can see that the model is loaded before the second request, record that too. A cold-load test requires evidence that the same model was absent from the running list before the request. Work in an idle session you control and leave other users' requests alone.

Start with the original Friday-and-Monday reminder. Fix the model tag, prompt, answer length and intended action. In a clean working folder, save the first JSON response to one file and the repeat to another. Give each trial its own output name. Check the HTTP result and read the answer before interpreting timings. A timeout, load error or incomplete reply belongs in the log with its status. Keep it out of a simple average of completed responses.

If you need to measure what a user waits for, record server time along with client elapsed time. In a shell you can put time in front of your existing curl command, then read the elapsed time reported by the shell. That includes the local HTTP request and transfer until the command ends. The browser may do more work, including loading history or rendering an answer. Use the same measurement boundary for each before-and-after row. For the non-streaming example, the command reports the wait for the response to finish.

Compare similar work. A one-line response and a five-paragraph answer can use similar time per token and have different waits. An immediate repetition may reuse prompt work; the usage reference describes the time spent on uncached prompt tokens. If you want a warm model with new input, ask the same type of question with an equally short but different premise. Keep the expected output length similar. Record that the input changed, so the row remains interpretable.

Work through the numbers

Consider two illustrative responses. The first has total_duration: 3400000000, load_duration: 2100000000, prompt_eval_duration: 450000000 and eval_duration: 800000000. It produced 32 output tokens. Divide the durations by a billion to get 3.40 seconds overall, 2.10 loading, 0.45 preparing the prompt and 0.80 generating. Dividing 32 by 0.80 gives 40 output tokens per second for the generation phase. It takes 3.40 seconds for the API run in this example.

The immediate repeat has total_duration: 1000000000, load_duration: 20000000, prompt_eval_duration: 130000000 and eval_duration: 800000000, again with 32 tokens. That is 1.00 second overall with the same generation speed. The largest recorded difference is loading, and prompt processing also fell. Check a different short prompt while the model remains loaded to see how much wait returns when the input changes. These are arithmetic examples, so they establish the diagnostic method.

Keep the individual reported durations and the total in your records. Their definitions may leave overhead outside the phases you copied. Use the measured total as reported. If eval_duration is missing, zero or paired with an unusable answer, record why a meaningful completed-response rate could not be calculated. Use the reported token count and a positive duration for the rate, then check the answer as a separate success condition.

If you care about the first visible text, use a client that can timestamp streamed content. Record when the request was sent, when the first relevant text arrived and when the complete answer ended. For a model that streams a reasoning trace first, decide whether your task measures the first trace or the first final-answer text. Keep both if possible. Dividing the output token count by the final duration gives no direct measurement of either first-text timestamp.

Choose the next change from the observed phase

Loading is the largest change

Check whether the client switches models between requests or keeps the server idle long enough for the model to unload. Record the model shown by ollama ps just before a request. If your application has long gaps between messages, test its ordinary usage with the same short prompt after a representative gap. Extending retention changes the amount of time the model occupies memory. Compare the benefit to the memory needed by your other apps before making the setting permanent.

Prompt work increases with input or history

Use a fresh conversation and compare the same question with a short excerpt and a longer excerpt. Record evaluated input tokens if the response reports them. If the client sends a long transcript, use its available diagnostics to compare request size with the direct call. Retain the facts necessary to answer, then try cutting irrelevant history or sending a smaller excerpt. For a context sizing and recall check, see how to verify Ollama's current allocation.

Generation consumes most of the wait

Read the answer length and the completed response together. Ask for a shorter result that still satisfies the task. A three-line extraction and a narrated explanation solve different problems. If you set a smaller output cap for the next run, inspect the final text for a mid-sentence stop, missing required fields or a reasoning span without an answer. Keep the original cap in your log so you can reverse the change. If the smaller response still has a low generation rate on the same work, compare processor allocation and model choice.

The direct request is faster than the browser app

Repeat the same task and selected model in the browser with a fresh conversation. Record elapsed time from submission to a usable answer. Check whether the client sends extra system text, history, tools or retrieved passages. A direct call can confirm that the local service works. A faster direct response gives you a reason to examine the client path with those differences visible. Compare browser timing before changing hardware or disk settings.

Keep the finding within the conditions you tested

Preserve at least two completed runs for a setting you plan to rely on. Keep incomplete runs visible. Choose a change when it reduces the observed bottleneck and the output still meets the same check. If battery state, other apps or the runner version changed, record that alongside the result. Repeat your most relevant short task after an update. That gives you a way to detect regressions without treating two unrelated benchmark numbers as a comparison.

Convert the response fields into useful comparisons

Make a small calculation from the documented Ollama values before collecting your own run. In the Generate API example, a duration of 52,479,709 nanoseconds for evaluation is about 0.05248 seconds. Its 18 evaluated output tokens divided by that duration is about 343 output tokens per second for that particular example. The 174,560,334 nanosecond total in that same response is about 0.17456 seconds. Dividing output count by total gives a lower end-to-end rate because the denominator includes loading and other work. These figures are arithmetic on the documentation example and provide no speed prediction for your Mac.

Use prompt_eval_count with prompt_eval_duration when both are available to calculate input evaluation rate. Ollama documents the associated time as evaluating uncached prompt tokens. Record those fields and the state of the repeated input before inferring why a run changed. If the app exposes only a single tokens-per-second figure, find the denominator it uses before comparing it with your own output rate. If a duration is absent or zero, leave the rate blank and retain the raw result for diagnosis.

Keep three distinct time observations if you need them. First compare model load and API processing using Ollama's final fields. Second compare the user's elapsed wait from submitting a prompt to a complete response. Third, if responsiveness matters, observe the time to the first visible text or first usable answer. Use the same start and stop convention across comparable trials. A response can show an early token yet take much longer to provide the two fields the user requested.

Compare first output with completion only on a streaming route

The example earlier in this guide requests an unstreamed response, so it is suitable for checking the completed response and its timing fields. When you also need visible latency, use a supported streaming view and record when its first output appears and when the required content is complete. Be precise about whether you are watching a status message, a reasoning trace or the final answer. Keep the answer expectation fixed. For the reminder in this guide, record when both Friday and Monday appear in the final reply.

If the client reports that it finished but some required information is absent, check the response status and stop reason when available. Keep a note of any token cap or timeout. A truncated result should stay outside the comparison of complete answers. If the client uses a deadline and closes the request, separately confirm what the server actually returned before comparing its timings with a completed request.

Use comparisons that answer one question at a time

To investigate repeated loading, keep the exact model tag and task fixed. Record loaded state before each trial and check whether another app was already using the same model. A first observed request with the model already loaded is useful evidence about that state. For a genuinely unloaded trial, verify the model was absent in your own idle environment using the running list. Compare load times and the response content with an immediate repeat. This can show whether startup accounts for the wait you saw.

To investigate long input, keep the required answer short and explicit. Start with the sentence that provides the needed names and times, then add a realistic quantity of unrelated background in a fresh request. Record both prompt counts and durations. If a later test uses the same prefix, write that down because cached and new input may differ. Only reduce the prompt or history once you can see which material the actual task needs. A shorter reply should still contain both dates or every required field after the change.

To investigate generation, keep the input and model stable. First request a single-line exact answer. Then try your real longer format. Compare output token count, generation time and task completion. A low output rate on rows with similar token counts deserves a different investigation from a longer prose response at the same rate. If the workload usually returns long explanations, measure one realistic explanation before deciding that a short test solves the practical problem.

Check client delay at the boundary you can see

When the browser asks questions about a file, it may add an extraction or retrieval stage before generation. Start with a plain new chat using the same local model and prompt as the direct API check. Add the attachment separately, use a predictable phrase and note the new time and answer. If the browser waits longer before the backend receives the request, look at the client workflow. If the request arrives and prompt evaluation increases, compare the material the client passed to the model where diagnostics allow. Keep the observation as a hypothesis when a stage has no observable timing.

If one workflow is slow only while another model is already loaded, record the active processes and context shown in the local runner. For a comparison you control, repeat after your other work finishes. Processor allocation and context are useful observations, particularly if the model is partially offloaded. Keep the exact model and task fixed across this check. A result with a different model size or output format combines multiple changes.

Decide which improvement is worth keeping

For a daily workflow, choose a realistic wait limit. A two-line information extraction may need to fit an interactive window, while a long draft can run unattended. Record input, deadline, completion and required fields for both. An illustrative log might say the first trial took eight seconds and a repeat took two, but the repeat omitted Monday. That outcome still fails the task. Compare a second complete result in the measured state before adopting a shorter timeout or smaller output cap.

When the runtime changes, preserve your baseline and run the same known prompt under the same context and loaded-state conditions where possible. If you intentionally change several things, record that as a new setup. For a user waiting in a browser, prefer the change that improves their actual completed result and remains reproducible. Keep the observed phase and the proof together so another person can repeat the troubleshooting without interpreting a screenshot of a fast token counter.

Make a decision from two plausible timing logs

Consider a hypothetical pair for the same reminder and model. The first complete response reports 4.2 seconds of load, 0.3 of prompt evaluation and 1.0 of generation. An immediate repeat reports 0.1 of load, 0.3 of prompt evaluation and 1.0 of generation. Both include Friday and Monday. This makes loading a sensible issue to investigate first. Confirm loaded state and repeat the observation during your normal workflow before changing how long the model stays loaded. Time and scope your tests so you can see whether the change helps a real repeat without interfering with other work on the Mac.

In another hypothetical log, load stays around 0.1 seconds but generation grows from one second to four. First compare output counts. If the longer answer generated several times as many tokens, recheck what the two prompts asked the model to deliver. Fit the answer to the reader's task and verify both required days again. If the token counts are similar, record observed allocation and repeat under comparable conditions before concluding that the model itself became slower. Keep incomplete or timed-out attempts visible alongside the completed comparisons.

Write the practical conclusion as one sentence with its scope. For example, “The immediate repeats on this setup met the deadline with a correct answer once the model was loaded.” Use one sentence for the next controlled change and a separate line for unknowns. This format makes later troubleshooting easier when someone brings a value from a browser rather than a raw API response.