Time a local model from pressing submit to seeing the first text, then through the end of the answer. The first measure captures the initial wait in a chat. The second tells you how long the task occupies a slot in a batch.
Ollama’s Generate endpoint separates model loading, prompt evaluation, and generation in nanosecond fields. Its prompt count reports input tokens, and its prompt evaluation duration measures time spent on uncached prompt tokens. The llama.cpp benchmark tool also has separate prompt and generation tests, along with a combined test. Ollama Generate API · llama.cpp benchmark documentation
Use the same prompt and output limit
Take a representative input that you can share with both models. A long brief plus a request for five bullet points works if that is what you normally process. Save a copy of the input for every run. Keep the app build, hardware, power mode, context setting, and output limit as close as possible. Record any differences in quantization, placement, and chat template. The choices are part of the result and can change the meaning of a comparison.
For each model, time a first request after the model has been unloaded. Then run several loaded requests and record their median. If your workload repeats a prefix, measure repeated prompts as a separate group. A reused prefix can shorten the prompt evaluation duration. Keep a group of fresh prompts of comparable size if that better matches your ordinary work.
| Measurement | Where to take it |
|---|---|
| Time until first text | Client stopwatch from submit to first visible text in a streaming run. |
| End-to-end time | Client stopwatch from submit through final response. |
| Load duration | Backend field load_duration converted to seconds. |
| Generation throughput | eval_count divided by eval_duration converted to seconds, when the denominator is positive. |
Read the two clocks
In a simplified example, model A spends 3 seconds loading and reading the prompt, then generates 80 tokens in 4 seconds. Model B spends half a second before generating 120 tokens in 6 seconds. Each generates 20 tokens per second. The total is about 7 seconds for A and 6.5 seconds for B, with a longer initial wait for A. Grade the answers against a short checklist before treating a shorter response as a speed win.
Separate a cold start from a normal session
Take the same prompt to each model. Before the cold run, make sure it is no longer resident in the runtime. Then start the client timer at submit. On the same machine, keep background work and power mode steady enough to produce a useful comparison. If the first attempt takes longer because the app has to download or initialise extra resources, write down what you observed and repeat the cold run with the installation already complete. A one-time setup wait and ordinary reloading can both matter, but to different readers.
Try the loaded case next. Use the same task and output cap after the runtime has started. Record several elapsed times, then list the median alongside the range. A result of two, three and eight seconds needs more explanation than a median of three alone. Look for a large job that competed for memory or a run that produced a much longer response. Keep the raw observations so someone else can check the difference.
For workloads that use the same long prefix, mix in one request with a different input of similar size. Compare it with a repeated-prefix result. Prompt processing can change between the two, and a benchmark for a warmed repeated prefix may be optimistic for a tool that processes new documents all day. Keep cached and new-input observations in separate rows.
Calculate throughput and inspect answer size
For example, an Ollama result with 60 output tokens and a generation duration of four billion nanoseconds gives four seconds of generation and 15 tokens per second. If the client shows the first useful text after 2.5 seconds and completes after seven seconds, record all three figures. Generation throughput describes one part of the run. The client timers describe the job the user sees, including other overhead. A stream that first sends an empty chunk or a status update should start the visible-text timer only when it displays actual answer text.
| If your work is mostly | Compare these results |
|---|---|
| Quick lookups of facts | Initial wait on several short inputs, plus answer accuracy |
| Long document requests | Prompt evaluation and time to answer for new, representative inputs |
| Several prompts in an open app | Loaded-run median, range and any changes under sustained load |
| Large batches | End-to-end elapsed time for the same work, including failures and retries |
When one model writes twice as many tokens, its longer finish time may come from a style difference. Compare a task with a fixed expected outcome, such as listing five preset fields, and keep the length cap the same. Score the fields manually. If one model stops early or leaves the fields empty, a short elapsed time tells you little about its suitability.
Keep the results tied to the laptop you used
A laptop on battery may change its behavior when you plug it in or run a long batch. If you normally do this work with other applications open, include that configuration as a second trial. Record model placement, app version, context and the approximate workload on the laptop. The document memory experiment is useful when you are unsure whether the processor split changed between inputs.
Save the prompt and the expected result with each measured group. If the new app version changes how it streams or preloads the model, rerun the short timing sequence and note which of the initial wait and completion time changed. For a batch, also record elapsed time for one full representative job, including any errors. That shows which comparison matters before you make a longer run.
When two results differ by less than the spread of repeated runs, list them as close under that setup. Try across a longer batch only if that distinction will change your choice. Include several input sizes you handle on a normal day. If an apparent improvement disappears in that mix, retain the simpler setup and record the limits of the comparison.


