How to Evaluate Coding LLMs: Throughput, Quotas, and Total Cost
A practical framework for choosing a coding LLM based on real usage: how to measure throughput stability across the day, reverse-engineer opaque monthly token quotas, normalize subscription plans to a cost per million tokens, and decide when migration is justified by factors beyond price. Includes sampling scripts, quota conversion formulas, a five-step evaluation workflow, and engineering techniques that cut token consumption.
How to Evaluate Coding LLMs: Throughput, Quotas, and Total Cost
After subscribing to all three services and running each for a full billing cycle, the most honest conclusion is rarely “which one is the strongest.” It is usually “which one can I actually rely on every day.” Selection debates tend to collapse into spec-sheet comparisons, but three plain questions decide the daily experience: is generation speed stable, are the quota rules written clearly, and does it add up financially. Below, each question is broken out into an evaluation method anyone can reproduce.
First, Define What “Performance” Means for Coding
In a coding assistant, perceived performance is the sum of three latencies: time to first token (from sending the request to seeing the first completion), generation throughput (output tokens per second, TPS), and stability under long context. The rhythm of writing code is read-think-edit, and a single completion is often only tens to a few hundred tokens, so time to first token can matter more to the feel than peak throughput. But once the task shifts to refactoring, cross-file explanation, or bulk test generation, output runs into the thousands of tokens and throughput becomes the bottleneck.
Note that vendor-advertised throughput is a peak measured under ideal conditions, while developers experience the gap between weekday evenings and the early morning trough. An evaluation has to cover different times of day rather than concluding from a single run.
Dimension 1: Throughput Stability Matters More Than the Peak
The most jarring observation from hands-on use is “fast at launch, slower later.” This is common on shared inference clusters: when real concurrency exceeds reserved capacity, the provider relieves pressure through queuing and batching adjustments, which shows up as falling TPS and longer time to first token.
Sample in layers with a fixed script instead of relying on impressions:
# Illustrative: time-of-day throughput sampling; look at the distribution, not a single peaksamples = []for hour in [2, 10, 14, 20, 23]: # covers the trough and peak hoursfor _ in range(5):t0 = time.time()n = stream_chat(prompt=LONG_PROMPT, max_tokens=2000)samples.append({"hour": hour,"tps": n / (time.time() - t0),"first_token_ms": ttft_ms,})p50 = percentile([s["tps"] for s in samples], 50)p10 = percentile([s["tps"] for s in samples], 10)print("stability ratio =", p10 / p50) # closer to 1 means more stable
The criterion is simple: look at the P10/P50 ratio. If trough throughput is less than half of peak throughput, capacity is clearly oversubscribed, and your real output should be estimated from the trough value rather than the advertised one. Another signal is tiered plans: once the same service offers speed tiers separated by price, the base tier’s resource priority has been structurally lowered. That has nothing to do with any promise of “no slowdown”; the data is what counts.
Dimension 2: Missing Quota Transparency Is Itself a Cost
The second common problem is a vague quota definition: a price is published, but not how many tokens are available per month, or the rules change frequently. Two consequences follow: capacity planning becomes impossible, and cross-plan price comparison becomes impossible.
The right move is to derive the definition yourself. Most coding plans are essentially a subscription fee exchanged for an equivalent amount of API quota, and the quota is a monthly total rather than something reset every 5 hours, so it can be written as a general conversion:
Monthly total quota T_month = subscription price P / unit rate rWeekly available T_week = T_month / 4Per-session (5h) T_5h = T_month / (30/5) ≈ T_month / 6Whether cache reads are billed -> directly determines the real cost of repeated context
Plug in the 99-yuan and 49-yuan tiers and the so-called “4x quota” turns out to be an equivalent exchange of 4x the price, with no extra discount. Divide by 6 to get the per-session allowance and it is easy to explain why many users report “burning through it in an afternoon.” If a plan’s usable amount has to be discovered by writing your own probe script, it has already failed on plannability.
Two easily missed details deserve attention: first, whether agent tasks run in the web or graphical interface count against the same monthly quota; second, peak-hour consumption multipliers (for example, 2x during peak hours and 3x during extreme periods). The latter can make nominal quota and usable quota differ by several times.
Dimension 3: Use One Yardstick for Cross-Plan Cost Comparison
Comparison has to be converted to the same unit: total cost per million tokens.
Effective cost = subscription price / effective available tokensEffective available tokens = nominal quota / average consumption multiplier
For example: plan A costs 140 yuan for about 50M tokens, or 2.8 yuan per million; plan B costs 99 yuan for about the same 50M, or 2.0 yuan per million; plan C offers 20M tokens per session with a 100M weekly cap, so even at a 2x consumption rate its monthly effective volume is still well above the other two. The conclusion is not “C is best,” but rather: when your daily consumption is in the 3-5M token range, the weekly-cap plan has the lower effective cost; when daily consumption is below 1M, the lower-tier equivalent-exchange plan is the better deal.
This raises the key question in selection: if domestic options only approach the unit price of mainstream international subscriptions without a clear price advantage, then the reason to migrate must come from somewhere else: data compliance and network reachability, fit with the Chinese-language context and local tech stack, invoicing and contract processes, and response stability. Putting these into the evaluation sheet is more useful than arguing about leaderboard rankings.
A Selection Process You Can Actually Run
- Define the profile: average daily token consumption, context-length distribution, and whether long-running tasks and agent orchestration are needed.
- Three-day load test: sample throughput and time to first token by time of day, and record P10/P50.
- Reverse-engineer the quota: use the formulas above to compute weekly and per-session availability, and check the fine print on caching and peak multipliers.
- Normalize cost: convert everything to yuan per million tokens, and add hidden costs (waiting, retries, manual fallback).
- Small-traffic canary: trial it in non-critical repositories for two weeks, track adoption and rollback rates, then decide whether to make it the primary tool.
Engineering Ways to Cut Costs (More Effective Than Switching Models)
Whichever you pick, these practices reduce consumption substantially: split stable system prompts and conventions into the head of the context to hit the cache; retrieve before feeding long files instead of stuffing in the whole repository; let a smaller model handle completion and formatting and reserve the large model for architecture design and hard debugging; produce incremental diffs on the client instead of rewriting whole files to cut output tokens; and fix templates and tool calls for repetitive tasks to reduce back-and-forth probing.
Suggested context budget allocationFixed conventions/dependency list -> kept resident, aim for cache hitsRetrieved relevant snippets -> injected on demand, cap Top-KCurrent change and error output -> highest priority, recent window not truncated
Conclusion
“Pick the cheap one if you can tolerate slowness, otherwise pick the fast one” is only a rough rule of thumb. A more reliable answer: first measure throughput stability in the trough, then convert the quota yourself into weekly availability, and finally compare everything on cost per million tokens. When quota rules require reverse engineering to understand, their hidden cost already exceeds the sticker price; and when the effective unit price is close to mainstream international subscriptions, the decision should come back to compliance, reachability, and engineering fit, the factors that actually affect long-term efficiency.
