How to Evaluate the Cost-Performance of LLM Inference Hardware

    This article explains how to evaluate inference cost-performance across hardware architectures instead of relying on single-card speed multipliers. It covers aligning benchmark metrics across throughput, user experience, and revenue layers; treating interconnect domain size as a first-class comparison parameter; accounting for software stack adaptation; and converting performance and cost gaps into a cost-performance index. It also provides a reusable selection and load-testing workflow. Readers will learn why a 2.7x performance lead only translates into an advantage when the cost gap is smaller, and how utilization and adaptation depth often matter more than raw hardware specs.

    1. The Starting Point: Why “X Times Faster” Does Not Mean “Better Value”

    In LLM inference hardware selection, the most common argument is that one type of accelerator is several times faster than another. That conclusion usually comes from single-card or single-node microbenchmarks. Production inference serving, however, is a system determined jointly by compute, memory bandwidth, interconnect topology, parallelism strategy, and the scheduling framework. Dividing peak single-card compute figures typically says little about end-to-end serving economics.

    The real question is effective output per unit of cost: how many usable tokens a card can serve per hour, how many remain after subtracting failures and retries, and how that compares to the total hourly cost of the card. Only when the performance gap and the cost gap are measured on the same basis can you tell which option is more economical. A 2.7x performance lead offers little economic advantage if hardware acquisition and operating costs are also roughly 2.7x higher. A genuine cost-performance advantage exists only when the cost gap is significantly smaller than the performance gap.

    2. Align the Metrics First: Three Layers That Should Not Be Mixed

    To evaluate inference cost-performance, split the metrics into three layers, each answering a different question.

    • Throughput layer: per-card prefill throughput and per-card decode throughput. Prefill determines capacity for long-prompt workloads; decode determines steady-state output once batching scales up.
    • Experience layer: single-stream output speed (tokens/s) and time to first token at P50/P99. These map directly to user perception and are strongly tied to batching strategy.
    • Revenue layer: revenue per card per hour. This converts throughput, latency constraints, and SLAs into money, and is the only figure that can be used directly for purchasing decisions.

    The three layers constrain one another. Increasing batch size can substantially raise per-card throughput and per-card revenue, but it also pushes up time to first token and lowers the floor for single-stream speed. Any cross-platform comparison must therefore state the batch range, input/output length distribution, concurrency model, and SLA constraints; otherwise the multiplier is meaningless.

    A sample metric declaration can be written as a configuration manifest:

    1. benchmark_profile:
    2. input_len: 4096 # average input length
    3. output_len: 512 # average output length
    4. concurrency: 128 # steady-state concurrency
    5. sla_ttft_p99_ms: 2000 # time-to-first-token constraint
    6. sla_tps_min: 20 # minimum single-stream output speed
    7. batch_range: [8, 64] # allowed dynamic batch range

    3. Interconnect Topology: An Underestimated Source of Multipliers

    The bottleneck in production inference is often not the individual card but inter-card communication. During decode, every layer performs collective communication for tensor parallelism and expert parallelism. Once communication becomes the bottleneck, additional compute simply idles.

    A typical pattern: the same set of accelerators can show decode throughput within an 8-card single-node interconnect domain that differs by several times from the figure measured across a unified scale-up domain spanning dozens of cards. Within a single node, communication hops are few and bandwidth is concentrated; across nodes over a general-purpose network, latency and bandwidth degrade simultaneously. When a comparison document places “dozens of cards in one scale-up domain” next to “8 cards in a single node,” it is comparing two system configurations, not two chips.

    The large-scale supernodes that domestic Chinese solutions have advanced in recent years—such as unified memory-semantics interconnect domains at the hundred-card scale—essentially expand the scale-up domain from 8 cards to over a hundred, keeping expert-parallel and tensor-parallel communication inside the high-bandwidth domain. When evaluating options, write “interconnect domain size” into the comparison table as a first-class parameter; otherwise conclusions will be systematically skewed.

    4. Hardware-Software Co-Design: Generic Frameworks Do Not Reveal a Chip’s Real Ceiling

    Another easily overlooked source of bias is the software stack. Generic inference frameworks often “run” on a given hardware architecture rather than “run it flat out”: operators not tuned for the architecture, communication libraries that do not exploit the high-bandwidth domain, and quantization or KV cache strategies that are not adapted can all leave measured results far below the hardware’s potential.

    The same domestic accelerator may deliver only about 80% of a flagship card’s decode performance under a generic framework; after a full adaptation covering model structure, operators, communication libraries, and scheduling strategy, that gap can be narrowed considerably. This explains a common misreading: using cross-platform data from generic frameworks to infer a hardware architecture’s ceiling underestimates its real capability. Conversely, treating deeply adapted, purpose-built results as out-of-the-box performance overestimates the benefit for ordinary users.

    A practical engineering approach is layered validation: first use a generic framework to confirm functional correctness and establish a baseline, then progressively introduce custom operators, topology-aware parallel partitioning, KV cache reuse, and prefix caching, tracking how per-card throughput and P99 latency change. This isolates and quantifies the gains attributable to adaptation.

    5. Cost Model: Converting Multipliers into Money

    With comparable performance data in hand, the next step is to build a cost model. Use total hourly cost per card as the denominator and effective hourly revenue per card as the numerator:

    1. cost-performance index = effective revenue per card per hour / total cost per card per hour
    2. total cost per card per hour = hardware depreciation + power and cooling + data center and network + operations staff + software and adaptation amortization
    3. effective revenue per card per hour = effective output tokens per card per second × 3600 × price per token × effective utilization

    “Effective utilization” must deduct idling caused by failed health checks, request timeouts, long-tail queuing, and canary releases. In practice, raising utilization from 60% to 80% often affects final economics more than the choice of hardware.

    If the performance gap is 2.7x and the cost gap is C:

    • C < 2.7: the leader has better cost-performance.
    • C ≈ 2.7: economics are close, so decide on ecosystem, stability, delivery timeline, and similar dimensions.
    • C > 2.7: the trailing option wins on cost and suits latency-insensitive, throughput-first offline or near-line workloads.

    6. A Reusable Selection and Load-Testing Workflow

    1. Define the workload profile: input/output length distribution, peak and trough curves, and SLA tiers (online/near-line/offline).
    2. Fix the comparison basis: same model, same precision, same parallelism strategy, and a stated interconnect domain size.
    3. Test in layers: single-card microbenchmark, then single-node domain, then the full supernode domain, recording the inflection points.
    4. Account for costs: convert depreciation, power, operations, and adaptation effort into cost per card per hour.
    5. Validate with canary traffic: replay real traffic to check load-test conclusions and watch P99 and error rates.
    6. Establish regression testing: rerun the same profile after every framework or model upgrade so performance regressions are not hidden by averages.

    7. Conclusion

    Comparing inference cost-performance across architectures requires locking down three things at once: a comparable performance basis, the real interconnect domain size, and a complete cost basis. Talking about “how many times faster” without these three easily leads to conclusions that contradict the bill. For most teams, the safer path is to fix the evaluation basis and cost model first, then let different hardware compete in the same table. When the performance gap and the cost gap are close, success is usually decided by the depth of software adaptation, operational maturity, and delivery pace—not by single-card specifications.