Evaluating Reasoning LLMs: Accuracy, Latency, and Cost
Reasoning models generate intermediate thinking before producing final answers, which means their real-world value depends on more than accuracy alone. This article explains how to build a systematic evaluation framework covering accuracy with confidence intervals, latency percentiles, token consumption, and per-call and per-correct-answer cost. It includes a reproducible benchmarking workflow, statistical guidance for judging whether score differences are meaningful, and practical advice for turning metrics into a model selection decision. Preview (truncated): model selection, benchmark methodology, LLM evaluation.
Why Accuracy Alone Is Not Enough
Reasoning models generate intermediate reasoning before giving final answers, and some also call external tools during that process. Their performance is determined jointly by three factors: answer correctness, time to completion, and the tokens and money consumed along the way. If a report presents only a single overall score, readers cannot tell how much time and cost that score required.
A benchmark report useful for model selection should include at least four categories of metrics:
- Quality: accuracy with confidence intervals.
- Latency: the distribution of response times, not just a single average.
- Resource consumption: input and output token counts.
- Cost: per-call and per-thousand-call costs calculated at current pricing.
Missing any one of these makes the conclusion incomplete. For example, a model may score a few percentage points higher in accuracy but consume several times more output tokens per call. In high-concurrency scenarios, the resulting cost and queueing delays may make it unsuitable for production.
Leaderboard rankings also deserve careful interpretation. Rankings are shaped by the question mix, scoring rules, and score gaps. When two models differ by only a fraction of a percentage point, rank changes often come from random noise rather than genuine capability differences.
Define the Evaluation Scope First
Before running any tests, clarify three things.
First, task type. Knowledge QA, mathematical reasoning, code generation, and tool calling place very different demands on a model. Define question sets separately for each and report results by category.
Second, use case. Offline batch processing cares most about unit cost; interactive online services care most about time-to-first-token and tail latency; complex reasoning tasks care most about the accuracy ceiling. Different scenarios assign different weights to metrics.
Third, the baseline. Compare against the provider’s previous model version or peer models of the same tier. Comparison experiments must keep the question set, prompt templates, decoding parameters (temperature, max output length, etc.), and scoring rules identical. If any of these differ, the comparison should not be trusted.
Building a Reproducible Evaluation Pipeline
Reproducibility is the foundation of credible evaluation. Below is a service-agnostic framework sketch. The core idea is to record correctness, elapsed time, and output token count for each sample, then aggregate:
import timedef run_benchmark(items, call_model, judge):"""items: list of questions, each with id, prompt, answercall_model: calls the model under test, returns a dict with text and tokens_outjudge: scoring function, returns True or False"""records = []for item in items:start = time.perf_counter()resp = call_model(item["prompt"])latency = time.perf_counter() - startrecords.append({"id": item["id"],"correct": judge(resp["text"], item["answer"]),"latency": latency,"tokens_out": resp["tokens_out"],"truncated": resp.get("finish_reason") == "length",})return records
When implementing this pipeline, keep the following in mind:
- Fix decoding parameters and state their values in the report. With non-zero temperature, repeated runs on the same question may differ, so either average over multiple runs or set temperature to zero.
- Scoring rules must be deterministic. If a judge model is used, record its version and manually audit a sample of its judgments for consistency.
- Fix the concurrency level. Server-side queueing inflates latency; latency data from tests at different concurrency levels are not comparable.
- Warm up before timing to exclude first-connection and cold-cache effects.
- Save raw records. Summary tables can be regenerated, but once raw data is lost, results cannot be re-audited.
Accuracy: Is the Difference Statistically Meaningful?
Accuracy is a proportion, so its sampling error can be estimated directly. With n questions and accuracy p, the standard error is:
SE = √(p(1 − p) / n)
For example, with 10,000 questions and accuracy around 70%, the standard error is roughly 0.46 percentage points, and the 95% confidence interval is about ±0.9 percentage points. At that sample size, a 1-point gap between two models is likely just sampling noise, while a 4-point gap usually reflects a real difference.
If two models answer the exact same questions, use a paired test such as McNemar’s test. It focuses only on questions where the models disagree, which is statistically more efficient than comparing two independent proportions.
Per-category breakdowns are equally necessary. Two models with the same overall score may differ sharply on math questions and show the opposite pattern on knowledge QA. Reporting only the total score hides weaknesses relevant to specific business scenarios.
Also decide in advance how to handle failed samples and apply that rule consistently. Two common approaches: count timeouts, format errors, and truncated outputs as incorrect, or exclude them. The former better reflects real user experience; the latter overstates model performance. Either way, state the rule in the report and report the failure rate.
Latency: Look at Percentiles, Not Averages
Response time distributions are typically long-tailed. A few long reasoning chains inflate the mean, while most users experience speeds near the median. Report P50, P90, P95, and P99 together.
Reasoning models tend to have higher latency variance than standard models, because reasoning length varies greatly with question difficulty. Easy questions may finish quickly, while hard questions can produce very long reasoning chains. If your business has explicit timeout requirements, compute the timeout rate directly and compare it against those thresholds.
Distinguish two kinds of time. Time-to-first-token is the interval from sending a request to receiving the first output character—critical for streaming interactions. Total elapsed time covers the entire request-to-completion cycle—more critical for batch jobs. They require different optimization strategies and must not be conflated.
Token Consumption: Output Structure Drives Cost
A reasoning model’s output consists of two parts: intermediate reasoning and the final answer. The reasoning content typically accounts for most of the output tokens. So answer length alone cannot estimate cost—you need the full output token count.
The max_tokens limit affects results. Set too low, long reasoning gets truncated, the final answer goes missing, and accuracy drops. Set too high, even easy questions may produce verbose output that inflates cost. When comparing models, use the same limit and track the truncation rate.
Input tokens also cost money. Long prompts, multi-turn conversation history, and large tool outputs all add to input volume. Record input and output tokens separately during evaluation rather than lumping them together.
Cost Accounting: From Per-Call to Per-Correct-Answer
Per-call cost is calculated as:
Per-call cost = input tokens ÷ 1,000,000 × input price + output tokens ÷ 1,000,000 × output price
Per-thousand-call cost equals per-call cost multiplied by 1,000.
For example, with an average output of 5,000 tokens and an output price of $16 per million tokens (RMB 16 in the original example), the per-call output cost is 0.08 and per-thousand-call output cost is 80. These figures only demonstrate the calculation method; actual values must follow the provider’s current price list. Price lists usually also distinguish input rates, cache-hit rates, and batch discounts—confirm each item before calculating.
A more meaningful metric is the cost per correct answer:
Cost per correct answer = per-call cost ÷ accuracy
Continuing the example, with 70% accuracy the cost per correct answer is roughly 0.114. This metric reflects the true cost per unit of output. A model with a low per-call cost but noticeably lower accuracy may actually cost more per correct answer.
Turning Metrics into a Selection Decision
Metrics often trade off against each other, so selection requires scenario-specific weights. The table below shows one common decision framework:
| Dimension | Key Metrics | Decision Rule |
|---|---|---|
| Quality | Accuracy and confidence interval | A difference is meaningful only if it exceeds the confidence interval |
| Latency | P90, P95, timeout rate | Whether business interaction or timeout requirements are met |
| Cost | Per-1,000-call cost, cost per correct answer | Whether it fits the budget |
| Stability | Failure rate, truncation rate | Candidates exceeding thresholds are eliminated directly |
Weights differ by scenario. Consumer-facing online support prioritizes latency and stability. Offline bulk data processing prioritizes unit cost. Difficult math or coding tasks prioritize accuracy. Define the scenario first, then look at the metrics—only then do conclusions carry real meaning.
Common Pitfalls
- Comparing results obtained with different prompts or decoding parameters. Such comparisons cannot separate model differences from configuration differences.
- Looking only at average latency. Long-tail requests distort the mean and mask timeout problems.
- Ignoring truncated and failed samples, or handling failures inconsistently across runs.
- Question sets overlapping with training data. Public benchmarks may already be in training data, inflating scores. Proprietary or recently created questions are more reliable.
- Treating leaderboard rank as business impact. Leaderboards reflect a specific question set and scoring rules; fit to your specific business must be validated separately.
- Ignoring price changes. Once a provider adjusts prices, historical cost data becomes stale and must be recalculated.
Practical Recommendations
First, build an evaluation set from your own business data. Start with 300 to 500 samples covering the main question types and common failure modes, then expand gradually.
Second, integrate the evaluation scripts into your routine workflow. Run them on every model version update so that regressions in accuracy, latency, or cost are caught early rather than discovered in production.
