Hands-On Comparison of Three Top LLMs: Capability Differences, Prompting Strategies, and Cost-Effectiveness Under a $150 Budget

    This article presents a hands-on horizontal evaluation of three top-tier large language models conducted under a budget of roughly $150 (about ¥1,000). Rather than simply listing benchmark scores, it documents the full evaluation methodology—from cost control and prompt engineering to result interpretation—covering four dimensions: instruction following, structured reasoning, code generation, and long-context understanding. Readers will gain a reusable evaluation framework, practical neutral prompt templates, and model selection guidance for different business scenarios.

    A Hands-On Comparison of Three Top LLMs: Capability Differences, Prompting Strategies, and Cost-Effectiveness

    As generative AI evolves rapidly, the capability boundaries of large language models continue to expand, and their applications have grown from simple text generation to complex reasoning, code generation, and multimodal understanding. Yet with new models constantly entering the market, engineering teams and individual developers face a practical dilemma: within a limited budget, how do you scientifically evaluate and select the model that best fits your business scenario?

    Recently, I conducted an in-depth horizontal evaluation of three widely recognized top-tier LLMs under a budget constraint of roughly ¥1,000 (about $150). This article does not merely list results—it reconstructs the complete evaluation process, from cost control and prompt engineering to result interpretation, offering readers a reusable evaluation framework and selection reference.

    1. Evaluation Setup: Cost Control and Variable Locking

    1.1 Tools and Cost Strategy

    To control variables and minimize API costs, this evaluation did not operate directly through each cloud provider’s native console. Instead, all models were accessed through a third-party aggregation platform (referred to here as “the evaluation platform”). Such platforms typically provide unified API wrappers and pay-as-you-go billing, which is well suited for comparing models from multiple vendors.

    For cost control, I reused a caching mechanism accumulated from past projects: identical or highly similar prompts were stored in a structured way within a session to reduce duplicate requests. Additionally, non-core test items used a low-randomness parameter of temperature=0.2 to ensure reproducibility. Over the entire evaluation cycle, roughly 12,000 API calls were made at a total cost of about ¥1,117 (including testing overhead), covering performance across four dimensions: text generation, logical reasoning, code completion, and long-context understanding.

    1.2 Evaluation Dimensions

    Rather than relying solely on public leaderboard scores, the evaluation defined four first-level dimensions from the perspective of real-world business deployment:

    • Semantic understanding and instruction following: Can the model accurately decompose complex instructions and strictly execute constraints?
    • Structured reasoning and mathematical ability: Multi-step reasoning, logical trap detection, and solving applied math problems.
    • Code generation and debugging: Producing runnable code for given requirements and self-correcting based on error messages.
    • Long-text memory and knowledge updating: Within contexts exceeding 20,000 tokens, can the model precisely extract early information and answer questions based on up-to-date knowledge?

    2. Core Prompt Design Methodology: The Key to Fair Evaluation

    In a horizontal comparison, prompt design directly determines the upper bound of each model’s demonstrated capability. Custom-optimizing prompts for one specific model destroys comparability; overly generic prompts may underestimate some models’ structured processing abilities.

    2.1 A Universal Template Based on “Role Anchoring + Task Decomposition”

    The evaluation used a unified base prompt framework with no model-specific optimization. The core structure:

    1. You are a senior software architect and data analyst with 20 years of experience.
    2. Please complete the task strictly following these steps:
    3. 1. Understand the requirement: Restate your understanding of the user's question and list the key constraints.
    4. 2. Formulate a plan: Present your solution approach or code architecture design.
    5. 3. Execute the computation/coding: Produce the final result or code snippet.
    6. 4. Self-review: Point out possible edge cases or potential errors in the result.
    7. {user's specific question}

    This template forces models to expose their “thinking process,” making it easier to observe differences in reasoning transparency. In practice, the three models followed this structure to markedly different degrees—which itself became an important evaluation metric.

    2.2 Prompt Design for Edge-Case Testing

    Beyond routine tasks, adversarial prompts were designed to test robustness. For example, a “logical trap” interference condition checks whether a model possesses counterfactual reasoning:

    1. Question: A cage contains chickens and rabbits—35 heads and 94 legs in total. How many chickens and how many rabbits are there?
    2. Additional condition: Assume every rabbit, for a special reason, has only two legs instead of four. Recalculate and explain how the result changes and why.

    Prompts like this effectively distinguish models that rely on memorized pattern matching from those with genuine underlying mathematical reasoning.

    3. Deep Dive into Results: The Distinct “Personalities” of the Three Models

    3.1 Semantic Understanding and Instruction Following: Details Define the Experience Ceiling

    In complex instruction-following tests, the three models formed a clear hierarchy.

    Model A (oriented toward general conversation and creative writing) excelled at understanding colloquial, natural phrasing and handled metaphors and puns with ease. However, when executing multi-step instructions (e.g., “first summarize the article’s arguments, then compare the reasoning logic of the second paragraph, and finally output the result as a table”), it occasionally skipped or merged steps.

    Model B (oriented toward logic and code generation) was the most robust at instruction decomposition. It could break multi-step instructions into an internal execution plan with extremely high structural completeness in its output. When handling highly colloquial text lacking structured prompts, however, it appeared somewhat conservative, tending to ask the user for clarification rather than inferring intent from context.

    Model C (oriented toward long context and overall balance) fell between the two, with no obvious weakness in instruction following, but occasionally misjudged implicit priority ordering in instructions. For example, when asked to “prioritize code readability while ensuring performance,” Model C sometimes over-commented the code, making it verbose and failing to strike the precise balance between performance and readability.

    3.2 Structured Reasoning and Mathematical Ability: Fault Lines Under Difficulty Gradients

    All three models handled basic arithmetic with ease, but differences emerged immediately when the difficulty rose to complex probability calculations and algebraic reasoning.

    • Multi-step reasoning chains: Model B led in accuracy on complex “hypothesize–verify–backtrack” reasoning chains, and its self-correction ability was notably stronger in word problems with many confounding conditions.
    • Counterintuitive scenarios: On the trap-laden variants (such as the modified chickens-and-rabbits problem above), Models A and C both attempted to apply the standard solution template, producing incorrect results; Model B keenly caught the changed condition and rebuilt the model from scratch. Although Model B’s reasoning process was longer, measured by final answer accuracy, it performed best.

    3.3 Code Generation and Debugging: Gaps Closest to Production Reality

    Code generation was the dimension with the largest performance gap.

    For the task “write a Python multithreaded web crawler with retry logic and IP rotation,” all three models produced runnable code, but robustness differed significantly:

    • Model B’s code had more complete exception handling and resource-release logic, with clear variable naming that met enterprise-level coding standards.
    • Model A’s code was more readable but did not account for thread safety in concurrent scenarios.
    • In the “fix code based on the error message” test, Model B had the highest fix success rate, with Model C second. Model A tended to modify how the code was called rather than digging into the underlying logic error.

    3.4 Long-Text Memory and Knowledge Updating: Context Window Utilization

    In the 20,000-token long-document information extraction test, Model C showed strong contextual association ability, accurately citing data from early paragraphs to compose comprehensive answers. Model B located information quickly but was slightly less coherent than Model C when abstracting and synthesizing across multiple paragraphs. Model A exhibited mild information decay when retrieving early content from ultra-long contexts, possibly related to its specific attention allocation strategy.

    4. Key Conclusions: There Is No “Best” Model, Only the Best Fit

    Based on the four-dimensional evaluation above, the following core conclusions can help developers make rational selection decisions:

    4.1 Selection Recommendations by Business Type

    • General writing, creative brainstorming, marketing copy: These scenarios emphasize linguistic fluency and divergent thinking—prioritize models that stand out in natural language understanding and generation diversity (such models typically focus more on conversational experience).
    • Data analysis, code generation, API call integration: These demand high precision and strong logic—prioritize models that lead in mathematical reasoning and structured instruction following. Although these models can seem “pedantic,” they significantly reduce debugging costs in engineering practice.
    • Multi-document Q&A, enterprise private knowledge base assistants: These require balancing context memory with retrieval precision—well-rounded long-context models hold the advantage.

    4.2 Balancing Cost and Effectiveness

    For high-concurrency, highly repetitive business scenarios, consider a hybrid deployment of different models. For instance, use a strong-reasoning model for complex tickets while routing intent recognition or text classification to a cheaper, lightweight model. A sensible routing strategy can preserve overall service quality while substantially reducing API costs.

    5. Appendix: Prompt Snippets Worth Saving

    Finally, here are several neutral prompt templates validated during this evaluation, suitable for quickly testing most mainstream models.

    1. General logical analysis template

    1. Please perform a critical analysis of the following argument. Identify its premises, implicit assumptions, and conclusion. If any logical fallacies exist, point them out explicitly and explain why.
    2. Argument: {input text}

    2. Code refactoring suggestion template

    1. Below is a runnable but poorly written Python function. Without changing its external output behavior, propose refactoring from three angles—readability, performance, and exception handling—and provide the complete refactored code.
    2. Code: {paste code}

    3. Business solution enumeration template

    1. Given the business scenario: {input scenario description}
    2. Generate at least 3 possible solutions from the three constraint dimensions of cost, time, and risk. Each solution must include implementation steps, required resources, and potential failure points. Finally, based on industry best practices, provide your recommended ranking with justification.

    Conclusion

    This comparison reveals a core reality of today’s LLM landscape: score gaps on leaderboards are shrinking, but the differences between models’ “mental models” on specific tasks remain substantial. For developers, rather than blindly chasing the marketing concept of the “most powerful model,” it is far more valuable to deeply understand prompt engineering and evaluation methodology, and to build small-scale validation sets based on your own business data. This is not only an effective way to control costs—it is the necessary path to converting general AI capability into real productivity.