How to Evaluate LLMs: Balancing Accuracy, Latency, and Cost

    Evaluating large language models goes far beyond a single accuracy score. This article explains how to read LLM benchmark results by examining task quality, latency, token consumption, and end-to-end cost together; how to compare model versions and competing models fairly; and how to turn evaluation data into practical model selection and engineering decisions for production workloads.

    1. Model Performance Cannot Be Reduced to a Single Score

    LLM evaluation is often oversimplified into accuracy rankings, but in real-world applications, a single metric never tells the full story. A model with a high answer accuracy may still be unsuitable for production if its response time is too long, its reasoning consumes excessive resources, or its performance is unstable in critical domains. Conversely, a fast and cheap solution that frequently produces wrong answers may drive up the total cost of manual review and error correction.

    At minimum, model evaluation should cover four categories of metrics:

    • Task quality: whether answers are correct and complete, follow instructions, and handle complex reasoning.
    • Response latency: the time from sending a request to receiving a usable result, with particular attention to high-percentile latency rather than just averages.
    • Resource consumption: the number of tokens consumed per task across input, output, and reasoning.
    • Actual cost: the comprehensive cost including invocation fees, retries, manual review, and error handling.

    These metrics are related but cannot simply substitute for one another. Higher accuracy may come from more extensive reasoning, which also means more token consumption and longer wait times. Product and engineering teams need to judge, based on task value and service constraints, whether that trade-off is worthwhile.

    2. Reading Evaluation Results from Aggregate Metrics

    Consider an example evaluation on a Chinese-language task set: a model completed roughly 15,000 test questions with an overall score of 71.5%, averaging about 96 seconds per call, 3,922 tokens consumed per call, and a measured cost of about 52.5 RMB per thousand calls. Such data describes the model’s performance under a specific test set and calling configuration—it should not be treated as a conclusion that applies to every business scenario once removed from its test conditions.

    First, the overall score aggregates multiple task types. If the test set is dominated by knowledge Q&A, the score may not reflect code generation, long-context analysis, or tool-collaboration capabilities. Second, average latency hides long-tail problems. A small number of extremely slow tasks can significantly affect user experience, so a formal evaluation should include percentiles such as the median, P90, or P95. Finally, per-call token consumption is not a fixed constant—prompt length, context window, output requirements, and sampling strategies all change the result.

    An evaluation report should clearly state the test set scope, calling parameters, statistical methodology, and cost calculation. Without this information, the numbers still have reference value but are not suitable for budget commitments or production capacity planning.

    3. Version Upgrades: Look at Both the Gains and the Costs

    When an old and new version were compared under identical test conditions, overall accuracy rose from 68.1% to 71.5%—a gain of 3.4 percentage points—and the ranking climbed from 16th to 5th. This indicates stronger overall answering ability on that evaluation set. However, rankings are influenced by the number of participating models and the composition of the test set, so absolute scores and per-domain results are usually more informative about what actually changed.

    The breakdown shows where the improvement came from: reasoning and mathematical computation rose from 66.7% to 72.7%, education tasks from 46.9% to 52.0%, healthcare and mental health from 77.6% to 83.6%, finance from 77.7% to 84.2%, and language understanding and instruction following from 64.6% to 69.3%. These results show that capability changes are not evenly distributed. If your business is concentrated in one domain, check the corresponding sub-score first rather than deciding based on the total score alone.

    Meanwhile, the Agent and tool-calling score dropped from 69.9% to 68.1%, a decrease of 1.8 percentage points. Such a small change may relate to question count, task difficulty, or evaluation variance—one test alone is not enough to conclude that capability has degraded, but it is enough to warrant a targeted re-test. Especially in scenarios that require calling external tools, parsing structured results, or executing multi-step tasks, teams should build an independent test set and check whether the model can reliably complete the full pipeline, not just generate plausible-sounding text.

    The performance gains also came with resource costs: average token consumption increased from 2,851 to 3,922, roughly 37.6% more, and average time per call rose from 59 seconds to 96 seconds, roughly 63% more. Assuming unchanged output pricing, the measured cost per thousand calls rose from 37.6 RMB to 52.5 RMB, an increase of about 40%. Rising accuracy alongside rising inference overhead means the team must answer a more business-relevant question: do the additional correct answers offset the additional compute cost, waiting time, and service load?

    4. Fair Comparisons Require the Same Budget and the Same Tasks

    When comparing different models, group them by task type and budget range first, rather than simply producing one overall leaderboard. In a measured-cost tier of roughly 50 RMB, two solutions both achieved 71.5% overall accuracy, yet one averaged about 96 seconds per call while the other averaged about 72 seconds. This example shows that even with identical accuracy, service experience and resource efficiency can differ.

    A fair comparison requires at least the following:

    1. A unified test set: use the same questions and scoring rules, so differences in data composition do not distort conclusions.
    2. A unified calling strategy: fix prompts, context length, output limits, and retry rules wherever possible.
    3. A unified cost basis: distinguish list price from measured cost, and state how input tokens, output tokens, and other overhead are calculated.
    4. Results broken down by task: report Q&A, reasoning, long-context processing, and tool calling separately.
    5. Latency distribution tracking: record multiple percentiles and timeout rates so that averages do not hide slow requests users actually encounter.
    6. Repeated testing: run generative tasks multiple rounds to assess whether results are stable.

    If your business has a strict response-time requirement, set a latency threshold first, then compare accuracy and cost among the models that meet it. For internal offline analysis, longer wait times may be acceptable; for real-time interactive scenarios, response speed may directly determine whether users stay.

    5. Turning Evaluation Results into Model Selection Decisions

    In practice, model selection can be broken into three steps.

    Step 1: Define task objectives. Catalog the types of business requests, the consequences of errors, concurrency scale, and acceptable latency. High-risk content such as financial decisions or medical information demands stricter fact verification and human review; low-risk summarization or classification tasks can prioritize throughput and unit cost.

    Step 2: Build a business-specific test set. Sample representative examples from real but anonymized data, covering common requests, edge-case inputs, ambiguous questions, and failure cases. Update the evaluation set regularly so the model does not merely adapt to a fixed set of questions. Make scoring rules concrete—for example, record factual correctness, format compliance, citation grounding, and task completion rate separately.

    Step 3: Calculate end-to-end cost. Do not treat model invocation fees as the total cost. A cheaper solution that produces more wrong answers, retries, or manual verification may actually cost more overall. The comprehensive cost of a task can be approximated as:

    Total cost = model invocation cost + retry cost + manual review cost + error handling cost

    This formula is not a universal accounting standard—it simply helps teams avoid fixating on per-call pricing. Different businesses should adjust the weights of each term based on error impact and manual processing workflows.

    6. Engineering Optimization and Continuous Validation

    If a high-accuracy model consumes too many tokens or runs too slowly, optimize the task itself before sacrificing quality. First, trim redundant background information and constraints from prompts and remove irrelevant context. Second, decompose complex requests into verifiable steps and avoid unbounded long-form generation. Third, route requests by difficulty—let simple tasks use a lightweight solution that still meets quality requirements, and reserve stronger reasoning configurations for complex tasks.

    After optimization, re-evaluate. Shortening prompts may reduce context cost but may also drop necessary information; limiting output length may improve latency at the expense of explanation completeness. Every adjustment should be observed across quality, latency, and cost simultaneously, with manual review of key failure cases.

    After launch, continuously monitor request volume, token consumption, timeout rate, error rate, and user feedback. When traffic patterns or task types shift, historical evaluation results may no longer be representative. Establishing regular regression testing and anomaly sampling is the only way to catch gaps between model performance and business needs in time.

    Conclusion

    There is no single “best” LLM independent of context. Overall scores help you understand general trends, per-domain results reveal capability boundaries, and tokens, latency, and cost determine whether a solution can run economically and reliably. The right way to choose a model is not to chase rankings, but to measure business quality, response requirements, and end-to-end cost under unified test conditions—and to keep calibrating decisions through post-launch monitoring and re-testing.