How to Objectively Evaluate the Real Value of LLMs in Everyday Development
A single conversation is not enough to judge how useful a large language model is in daily development work. This article explains how to evaluate LLMs objectively by defining task types, building a small evaluation set, and measuring quality, efficiency, and cost with concrete metrics such as first-pass rate, average correction rounds, and effective time spent.
1. Why a Single Experience Doesn’t Tell You Much
Many developers evaluate large language models based on just one or two conversations. If the model answers quickly and writes clearly on some question, they conclude it works well. Conversely, one wrong answer leads them to conclude it’s unusable. Both judgments lack sufficient samples, and conclusions are easily skewed by how the question was phrased, the service’s state at the time, and personal expectations.
Another common issue is quota management. Platform quotas often have expiration dates, and users tend to consume them in a rush as the deadline approaches, without systematically planning how to use them. If the service requires queuing during peak hours, the quota may go unused even while still valid. The result is wasted quota, and users never really know how much value the model actually delivered.
An evaluation should therefore answer three questions:
- Can the model consistently produce usable results on typical tasks?
- How much manual correction and waiting time is needed to get a usable result?
- Does the total cost match the benefit?
2. Define Task Types First
Before evaluating, break your daily work into several task types. Common ones include:
- Code generation: writing functions, scripts, or APIs based on requirements.
- Code explanation: reading unfamiliar code and explaining its logic.
- Bug diagnosis: inferring likely causes from error messages and code snippets.
- Test case writing: designing inputs and expected outputs for a given function.
- Documentation writing: generating API references, changelogs, or usage guides.
Different tasks place very different demands on the model. Code generation requires correct syntax and logic, while documentation writing depends more on completeness of expression. Scoring them all together produces conclusions with little reference value.
Each task type should have clear success criteria. For code generation, for example, a success criterion could be: the code passes predefined tests, runs without modification, and follows the team’s naming and style conventions. The more specific the criteria, the more consistent the later scoring will be.
3. Build a Small Evaluation Set
The evaluation set doesn’t need to be large. 20 to 50 samples per task type is enough. Samples should come from your actual work over the past month rather than artificially constructed questions, so they reflect real workloads.
For each sample, record the following fields:
- ID and task type
- Input content (requirement description, code snippet, or error message)
- Scoring method (automated validation or manual scoring)
- Difficulty level (easy, medium, hard)
Difficulty stratification matters. If the evaluation set consists entirely of easy questions, good model performance says nothing about reliability in complex scenarios. A suggested ratio across the three difficulty levels is roughly 3
3, with results tallied separately for each.
Automated validation significantly reduces manual effort. For code generation, you can run the model’s output in an isolated environment and check whether the return values match expectations. For documentation tasks, manual scoring is the only option. In that case, create a unified scoring rubric, have two reviewers score independently, and then discuss samples with large scoring discrepancies.
4. Define Quantitative Metrics
Evaluation results should land on computable metrics. The following five metrics cover three dimensions: quality, efficiency, and cost.
First-pass rate: the proportion of samples where the model’s first output meets the success criteria.
First-pass rate = number of first-pass samples / total number of samples
Average correction rounds: the average number of follow-up prompts or edits needed from the first output to a final usable result. Fewer rounds mean the output is closer to being usable.
Effective time spent: the total of queue waiting time, generation time, and manual review time.
