Navigation
⚡ Inference Systems· 6 min read

Common Pitfalls

Zero-load testing, fixed lengths, ignoring cold-start, unfair comparisons — mistakes that make benchmarks misleading.

benchmarkingpitfallsmistakesfair-comparison

Most published benchmarks are misleading — not because of fraud, but because of methodology mistakes. Here are the most common pitfalls and how to avoid them.


1. The Pitfalls

PitfallWhy it’s wrongHow to fix
Testing at zero loadNo queuing, no batching competition — unrealistically fastBenchmark at realistic request rates
Fixed input/output lengthsHides prefill/decode interference, KV cache pressureUse ShareGPT or production distribution
No warmupFirst requests hit JIT, graph capture, cold cache30-60s warmup before measuring
Reporting only averagesHides P99 spikes (which users actually feel)Report P50, P90, P95, P99
Closed-loop onlyHides queuing latency (new request waits for old)Use open-loop at target rate
Different hardwareComparing A100 results to H100 resultsNormalize per GPU or match hardware
Different quantizationINT4 vs BF16 “throughput comparison”State quantization clearly
Ignoring TTFTOnly reporting TPOT or throughputReport both TTFT and TPOT
Single-run resultsVariance from GC, thermal, other processesRun 3+ times, report variance
Micro-benchmark extrapolationKernel-level results don’t predict end-to-endAlways measure end-to-end serving

2. The “Fastest Engine” Trap

“Engine X is 2× faster than Engine Y” usually means:

  • Tested on a different model size
  • Different quantization
  • Different batch size / concurrency
  • Different hardware
  • Different metric (throughput vs latency)

Fair comparison requires: Same model, same quantization, same hardware, same input distribution, same request rate, same metrics.


3. The Performance Regression Check

For CI/CD:

# Performance gate: block merge if P95 TPOT regresses > 5%
performance_gate:
  metric: tpot_p95
  baseline: previous_release
  threshold: 1.05  # 5% regression allowed
  test:
    model: meta-llama/Llama-3.1-8B
    dataset: sharegpt
    request_rate: 10
    duration: 120s

For measurement methodology, see Benchmarking Methodology.


Self-Check

  • Identify at least 5 common benchmarking pitfalls
  • Design a fair comparison between two inference engines
  • Set up a performance regression gate for CI/CD
  • Explain why “Engine X is 2× faster” claims need scrutiny