Evaluating a New Model Release: Performance, Token Efficiency, and Cost
This article presents a practical framework for evaluating a newly released model with real workloads rather than relying only on launch materials. It covers task performance, token efficiency, and total cost; explains how to build a reproducible task set, track token usage, calculate per-task cost, and monitor stability; and concludes with a weighted selection approach and rollout recommendations.
1. Why Release Information Is Not Enough for Model Selection
New model launch materials usually include benchmark scores, parameter counts, and price tables. This information is useful, but it has three limitations.
First, benchmark tasks do not necessarily match the distribution of business tasks. General leaderboards often focus on single-turn question answering or academic problems, while business scenarios commonly involve multi-step tool calls, extensive file reads and writes, and long-context maintenance.
Second, unit price is not the same as cost. For the same task, the number of output tokens, retry count, and context replay method all affect the final bill.
Third, service status and versions can change. The model version behind an API may be adjusted, and stability during initial deployment may differ from the official release. Therefore, selection conclusions need to be validated with your own tasks and recorded data.
2. Define Evaluation Dimensions First
It is recommended to split evaluation into three related dimensions.
2.1 Task Performance
Task performance focuses on whether the model can complete the objective. For long-horizon tasks, it can be broken down into the following sub-metrics:
- Task completion rate: the proportion of runs that produce output meeting the acceptance criteria within a limited number of steps.
- Step correctness: whether intermediate steps such as tool calls and file modifications are accurate.
- Error recovery: whether the model can locate and correct errors after an exception or an abnormal tool response.
- Instruction adherence: whether the model follows constraints such as format, naming, and scope.
2.2 Token Efficiency
Token efficiency refers to the total number of tokens consumed to complete the same task. A more efficient model uses fewer input and output tokens for the same task. The following items should be tracked separately:
- Input tokens (uncached portion)
- Cached input tokens
- Output tokens
- Number of requests per task
2.3 Total Cost
Total cost is the sum of each token category multiplied by its corresponding unit price, combined with the overhead of retries and failed tasks. Cost should be calculated as the “average cost to complete one task,” not as the cost per request; otherwise, the cost of failed retries will be underestimated.
3. Build a Reproducible Task Set
Whether evaluation results are credible depends on whether the task set is fixed, repeatable, and automatically verifiable.
Task design can follow these principles:
- Cover typical workflows: including file reading, batch modification, running tests, and generating reports.
- Fix task inputs: use the same initial files and environment for each run.
- Automate acceptance: use scripts to check output files, test results, or database state instead of relying on subjective judgment.
- Layer by difficulty: divide tasks into simple, medium, and complex levels to observe differences across difficulty levels.
- Use a sufficient number of tasks: prepare several tasks for each level and repeat runs to reduce bias from randomness.
4. Track Token Consumption
Most model APIs return usage information in the response. It is recommended to record usage for each request in a unified calling wrapper and aggregate it by task ID.
from dataclasses import dataclass, fieldfrom collections import defaultdict@dataclassclass Usage:input_tokens: int = 0 # Uncached input tokenscached_input_tokens: int = 0 # Cached input tokensoutput_tokens: int = 0 # Output tokensrequests: int = 0 # Number of requestsusage_by_task: dict[str, Usage] = defaultdict(Usage)def record(task_id: str, resp_usage: dict) -> None:"""Accumulate usage from a single request into the corresponding task. Adjust field names according to the actual API documentation."""u = usage_by_task[task_id]u.input_tokens += resp_usage.get("input_tokens", 0)u.cached_input_tokens += resp_usage.get("cached_input_tokens", 0)u.output_tokens += resp_usage.get("output_tokens", 0)u.requests += 1
Keep two points in mind when recording. First, all requests for the same task should be assigned to the same task_id, including retries after failures. Second, record the model version or the version identifier returned by the API, along with the call time, so that later investigation can identify the impact of version changes on results.
5. From Unit Price to Cost per Task
The formula for cost per task is as follows:
Task cost = (uncached input tokens × input price + cached input tokens × cached input price + output tokens × output price) ÷ unit conversion base
The cached input price is usually different from the standard input price; refer to each provider’s price table for the exact ratio. In multi-step agent scenarios, each request often replays previous conversation and tool results, so input tokens can easily account for most of the total. Therefore, cache hit rate can significantly affect final cost and should be tracked separately during evaluation.
def task_cost(u: Usage, price: dict[str, float], per: int = 1_000_000) -> float:"""The keys of price are input, cached_input, and output; values are prices per `per` tokens."""return (u.input_tokens * price["input"]+ u.cached_input_tokens * price["cached_input"]+ u.output_tokens * price["output"]) / per# Replace with the actual prices of the model being evaluated; the following values are placeholders only.price_model_a = {"input": 0.0, "cached_input": 0.0, "output": 0.0}def average_cost(task_ids: list[str], price: dict[str, float]) -> float:costs = [task_cost(usage_by_task[t], price) for t in task_ids]return sum(costs) / len(costs) if costs else 0.0
If two models have different pricing structures—for example, one model has a higher cached input price but lower input and output prices—compare them by plugging the actual token counts from the same task set into the formula rather than comparing price tables alone. A price table only shows “how much each token costs”; actual cost also depends on how many tokens each model consumes for the same task.
6. Stability and Availability
Long-horizon tasks have high continuity requirements. The following information should be recorded separately during evaluation:
- Number of timeouts and disconnections
- Number of retries and success rate after retries
- Response time distribution during the same period
- Records of version or deployment status changes
If the service is unstable during testing, efficiency and cost data in the results may be distorted; for example, retries can increase token usage. Such data should be labeled separately and should not be merged directly with data from stable periods.
7. Interpreting Public Benchmarks and Community Feedback
Public benchmarks and personal experience reports can provide clues, but the following points should be considered:
- Sample bias: a single task or a small number of cases cannot represent overall capability.
- Environment differences: different toolchains, prompts, and context lengths can change results.
- Time differences: service status and model versions at test time may differ from the official release.
- Metric differences: some evaluations measure answer quality, while others measure end-to-end completion rate; the two cannot be compared directly.
A reasonable approach is to use public information to shortlist candidates, then use your own task set for final validation.
8. Forming a Selection Conclusion
A weighted scoring table can summarize results across the three dimensions. Weights should be determined by business priorities. For example, for cost-sensitive batch tasks, cost can carry more weight; for production workflows that require high reliability, task completion rate and stability should carry more weight.
| Dimension | Example Metrics | Weight (Example) | Notes |
|---|---|---|---|
| Task performance | Completion rate, step correctness | 50% | Determines whether the model can go live |
| Token efficiency | Total tokens per task | 20% | Affects cost and response speed |
| Total cost | Average cost per task | 20% | Calculated using actual prices |
| Stability | Failure rate, retry rate | 10% | Affects continuity of long-horizon tasks |
Note that task completion rate should be treated as a veto criterion. If a model cannot reliably complete core tasks, it has no selection value even if its cost is low.
9. Implementation Recommendations
After identifying candidate models, proceed with the following steps:
- Dual-run comparison: for a period of time, run the same batch of real tasks with both the old and new models and compare results and usage.
- Canary rollout: first shift a small amount of non-critical traffic to the new model and monitor error rates, cost, and user feedback.
- Keep a fallback path: make model identifiers configurable at the calling layer so that you can quickly switch back to the original model if problems occur.
- Set up budget monitoring: track token usage and cost daily or by project, and notify owners through monitoring alerts when thresholds are exceeded.
- Retest periodically: model versions and prices may change, so rerun the task set on a fixed schedule.
Through this process, teams can move from relying on promotional information to making model decisions based on verifiable data, keeping selection risk within an acceptable range.
