Evaluating LLM Code Generation: Benchmarks vs. Engineering Usability and the Value of Open Source

    As new large language models are released, discussions about how they compare to leading international models appear quickly, but these claims usually come from standardized benchmarks that differ significantly from real engineering delivery. This article uses the scenario of generating a complete frontend project with an AI coding tool to outline a reusable evaluation method, then examines the long-term value of open source for AI development. It includes four categories of observable metrics, test results across three page types, engineering costs related to speed and stability, and practical selection advice for teams. No specific product comparisons are included; all conclusions are based on general engineering practice.

    1. Introduction: From Leaderboard Comparisons to Engineering Usability

    Whenever a new generation of large language models is released, the community quickly produces discussions about how a model compares to a leading international model. Most of these conclusions come from standardized benchmarks, yet there is a clear gap between benchmark results and real engineering delivery. For developers, the more valuable question is not who ranks higher on a leaderboard, but how much of a real requirements document—containing multiple pages, fields, and interaction constraints—a model can reproduce, what it misses, and how much manual rework is required.

    This article uses a typical scenario—an AI coding tool generating a complete frontend project—as a thread, abstracts a reusable evaluation method from it, and then discusses the long-term value of open source properties for AI technology evolution. The article does not compare specific products; all conclusions are drawn from a general engineering practice perspective.

    2. Evaluation Method: Turning “Feel” into Comparable Metrics

    To determine whether a model is capable of engineering delivery, it helps to break subjective experience into four categories of observable metrics.

    1. Requirements coverage: the proportion of explicitly stated features in the requirements document that are implemented. Examples include filter conditions, pagination, form validation rules, and carousel interactions, each checked off one by one.
    2. Structural fidelity: whether the hierarchy and dependencies between fields are correct, such as master-detail structures, linked fields, and combinations of required and read-only states.
    3. Interaction consistency: whether state transitions are complete, including empty states, loading states, error states, and feedback and rollback after submission.
    4. Delivery efficiency: the time from submitting requirements to producing a runnable artifact, and whether the artifact is directly accessible or only provided as code fragments.

    The value of these metrics lies in repeatability. With the same requirements document and the same scoring sheet, running the evaluation again with a different model or at a different time produces longitudinally comparable conclusions rather than relying on a one-time sense of being impressed.

    3. Hands-On Testing in a Typical Scenario: Capability Layers Revealed by Three Pages

    In real projects, different page types place very different demands on model capabilities, and test results typically show clear layering.

    3.1 Login Page: Highly Templated and Close to Usable

    The login page is a highly templated interface with few fields, a fixed flow, and mature community solutions. Models generally perform stably on this type of page: form structure, basic validation, and submission feedback are mostly complete, often requiring only minor style and copy adjustments before integration testing. This shows that models have strong pattern-matching ability for high-frequency, standardized requirements.

    3.2 List Page: Understanding Begins to Degrade

    Problems usually appear on list pages. Filter conditions, sorting rules, and bulk operations explicitly stated in the requirements document may result in only a page skeleton, with filter items omitted entirely. Such omissions are not occasional but systematic: models tend to generate structures that “look complete” while ignoring details tightly bound to business semantics. The reason is that filtering logic involves state management and query parameter assembly, which is cross-layer collaboration beyond the comfort zone of pure interface generation.

    3.3 Form Page: Field Relationships and Validation Logic Are the Hardest to Reproduce

    The form page is the dividing line. Complex forms include requirements such as field linkage, conditional required fields, asynchronous validation, and error message positioning. Models often reproduce only the appearance of fields and cannot accurately express dependencies between them. When a document describes a rule like “B is displayed and required only when A is set to a certain value,” the generated code often lacks the conditional branch, so the page runs but the business logic is wrong.

    3.4 Visual Style: Engineering Usability Over Product Impressiveness

    At the UI level, model output is usually “better than a rough prototype but not equal to a mature design system.” Models are better at structural and layout rationality than at branded visual expression. If a project already has a mature component library and design standards, the output can serve as scaffolding; if a unique design language is pursued, deep manual involvement is still required.

    4. Efficiency and Stability: Underestimated Engineering Costs

    Generation speed is not merely a user experience issue but part of engineering cost. A generation time on the order of half an hour significantly lengthens the “generate-evaluate-fix” iteration cycle. Combined with queuing and rate limiting, it is difficult for teams to embed models into high-frequency iteration workflows.

    More importantly, there is stability. Generating the same requirement multiple times may produce structurally different results, which is a hard constraint for engineering processes that require predictable delivery. A practical approach is to break large requirements into small tasks, constrain inputs with fixed templates, and run automated validation on the artifacts.

    A schematic task breakdown and validation approach is as follows:

    1. Requirements document
    2. |- Page list (routes / permissions)
    3. |- Field table for each page (name / type / validation / linkage)
    4. `- Interaction state table (empty / loading / error / success)
    5. |
    6. v
    7. Generated artifact -> Automated checks (field coverage / validation rule hits / route reachability)
    8. |
    9. v
    10. Manual review (business semantics / visual standards)

    5. The Significance of Open Source: From Point Capability to Ecosystem Capability

    Setting aside specific products, the value of open source for AI development can be summarized in three points.

    First, verifiability. Once weights and inference code are public, capability claims can be reproduced and audited by third parties, reducing the information noise from “leaderboard narratives” and returning evaluation from marketing language to engineering facts.

    Second, privatization and compliance control. Scenarios such as finance, manufacturing, and government have hard requirements that data must not leave their domain. A locally deployable model combined with general cloud capabilities such as container platforms, object storage, log services, and monitoring and alerting can build a complete and controllable inference pipeline.

    Third, lower innovation costs. An open source baseline allows small and medium-sized teams to avoid training from scratch and instead invest resources in data governance, evaluation systems, and business integration, forming a healthy division of labor of “shared upstream, differentiated downstream.”

    It should be emphasized that open source does not mean zero cost. Inference compute, operations, security hardening, and version upgrades all require continuous investment, and total cost of ownership should be included in selection evaluations.

    6. Selection Advice: Put Models in the Pipeline, Not on a Pedestal

    Practical advice for teams can be summarized in four points:

    1. Build your own evaluation set. Replace public leaderboards with real requirements documents and scoring sheets to form an internal baseline.
    2. Use capabilities in layers. Let models generate templated pages, have humans lead complex business logic, and use models for scaffolding and test case drafts.
    3. Constrain inputs strongly. Use structured templates to describe fields and states, reducing omissions caused by semantic ambiguity.
    4. Automate gating. Use static checks and unit tests to verify coverage, turning “looks correct” into “verified correct.”

    7. Conclusion

    “Capability comparison” is only the starting point; engineering usability is the endpoint. For developers, the rational attitude is to neither underestimate the pace of progress of open source models nor overestimate the persuasiveness of a single demo. Precipitating evaluation methods and taking advantage of the open source ecosystem are the paths for AI to truly integrate into production systems.