A Methodology for Evaluating LLMs on Extreme Coding Tasks

    A practical evaluation methodology that uses a single, deliberately extreme benchmark task—building a playable classic game in the UEFI Shell environment—to measure the real coding ability of large language models. The article explains the task design, scoring dimensions, key observations from multi-round testing, and selection advice for developers.

    Evaluating Code LLMs Scientifically: A Complete Practice of an Extreme Benchmark Task

    1. Why Run a Side-by-Side Evaluation on the Same Task

    There is often a significant gap between a model’s claimed capabilities and its real-world coding performance. Benchmark scores in marketing materials are usually obtained on standardized datasets, while what developers actually care about is whether a model can independently complete a closed-loop engineering task under extreme conditions—without ready-made scaffolding, rich documentation, or debugging tools.

    To address this, I designed a long-term side-by-side evaluation plan: use the same benchmark task to test multiple Chinese LLMs in sequence. So far, several mainstream Chinese models have completed the test. Whenever a major new model is released, I add it to the evaluation as soon as possible to keep the comparison timely and comprehensive.

    Note that this evaluation series deliberately excludes comparisons with foreign models, for two reasons. First, I want to keep the focus on the improvement trajectory of domestic models—real user feedback and adoption scale are themselves important drivers of iteration. Second, only when enough people actually use these models can they achieve scale effects and enter the positive cycle of “more usage, more data, stronger models.”

    2. Choosing the Benchmark Task: Why Build a Classic Game in the UEFI Shell

    The choice of task directly determines how discriminative the evaluation is. My benchmark task is: develop a playable classic mini-game from scratch in the UEFI Shell environment.

    This task may look eccentric, but it is extremely demanding:

    1. The runtime environment is highly constrained

    The UEFI Shell is a firmware-level command-line environment. There are no OS system calls, no complete standard C library, no graphics frameworks—memory management and text output must be done directly against firmware interfaces. The generated code must accomplish all input and output through mechanisms defined in the UEFI specification, such as Boot Services and the Simple Text Output Protocol.

    2. It prevents “memory shortcuts”

    Common evaluation tasks (solving algorithm problems, writing web APIs) appear abundantly in training corpora, so a model may simply be “reciting” similar code. Writing a game in a firmware environment is a rare combination with very little corpus coverage, which better tests the model’s genuine reasoning and code composition ability.

    3. It forms a complete engineering loop

    A game requires at minimum: display initialization, keyboard event polling, a main game loop, collision and boundary detection, screen refresh and frame-rate control, and clean shutdown. This covers the full pipeline of embedded/low-level development and is enough to expose a model’s weaknesses in engineering structure.

    3. Scoring Dimensions

    To make results comparable across models, I use a unified set of scoring dimensions:

    Dimension What it examines
    First-pass success rate Whether the first generated code compiles and runs
    Protocol correctness Whether firmware service interfaces are called correctly, without hallucinated APIs
    Code structure Module organization, maintainability, comment quality
    Interaction completeness Keyboard responsiveness, screen refresh, game logic integrity
    Iterative repair ability Whether the model can locate and fix problems on its own based on error feedback

    The most important dimension is “iterative repair ability.” In real development, the first generation is almost never perfect. What matters is whether the model can understand compiler errors, distinguish “syntax problems” from “protocol misunderstanding,” and maintain context consistency across multiple dialogue turns without introducing regressions.

    4. Key Observations from the Evaluation Process

    1. Generational differences in coding ability are striking

    Models from the same vendor but different generations perform markedly differently on this task. Common problems in earlier versions include: confusing user-space programming habits with firmware environment constraints, calling nonexistent library functions, and blocking game loops that make the program unresponsive to keyboard input. Newer models make these mistakes noticeably less often, suggesting that code-focused training is genuinely working.

    2. “Looks runnable” is not the same as “actually runs”

    Some models produce well-structured, thoroughly commented code that contains hidden logical flaws—for example, failing to clear the screen during refresh, causing ghosting artifacts, or misinterpreting key scan codes so that movement directions are reversed. This reminds us: generated code must be verified in a real environment; static review alone is not acceptance.

    3. Long-context stability is a hidden dividing line

    Game code often exceeds several hundred lines and requires multiple rounds of debugging. Some models “forget” earlier agreements after several iterations—fixing point A while silently breaking point B. Only models that maintain global consistency across ten or more dialogue turns are truly useful for engineering work.

    5. Recommendations for Developers Choosing a Model

    Based on multiple rounds of evaluation experience, here are some neutral suggestions:

    1. Don’t rely only on leaderboard scores: pick a task close to your actual scenario and run a small benchmark yourself. The cost is low and the conclusions are reliable.
    2. Focus on repair ability rather than single-shot quality: real projects are built iteratively. A model’s debugging conversation ability matters more than one-shot “performance code.”
    3. Build a verification pipeline for generated code: regardless of which model you use, compilation, static checks, unit tests, and human review are all indispensable.
    4. Use multiple models together: different models have different strengths in algorithms, low-level code, and business logic; switch flexibly by task type. When deploying inference services in the cloud, you can also combine general cloud capabilities such as container platforms and monitoring/alerting to build your own multi-model scheduling and evaluation system.

    6. Conclusion

    Using game development in an extreme environment as a yardstick strips away a model’s “corpus advantage” and forces out its real code reasoning ability. The pace of improvement in Chinese models is evident, and the latest generation already performs at a usable—or even genuinely good—level on low-level coding tasks. For developers, continuously using these models, continuously giving feedback, and continuously building your own evaluation benchmarks is both the best path for model selection and a concrete action that pushes the entire ecosystem forward.