Benchmarking Baseline Speed of Hybrid Reasoning Models: Methodology Explained

    This article breaks down how to benchmark the original, unmodified speed of hybrid reasoning models, which support both fast direct-answer and slow deep-thinking generation paths. It covers defining measurable metrics such as TTFT, TPOT, end-to-end latency, output throughput, and token efficiency; constructing realistic workloads with layered input and output lengths, path ratios, and concurrency gradients; and following a repeatable test flow from environment confirmation and warm-up to bucketed statistics and result review. It also highlights common interpretation pitfalls and practical data retention and visualization practices, helping readers build a consistent, reproducible measurement system as a reliable baseline for later optimization.

    1. Why Baseline Speed of a Hybrid Reasoning Model Needs Separate Testing

    Hybrid reasoning usually means a single model supports two generation modes internally: a fast direct-answer path and a slow deep-thinking path. Callers can choose the path through parameters or prompts. The speed of the original model—without fine-tuning, quantization or pruning, or business-side post-processing—serves as the baseline for all later optimization work.

    Testing the original speed separately matters for three reasons:

    1. Establish a credible baseline. The gains from caching, batching, speculative decoding, or quantization must be measured against the original baseline; otherwise, you cannot tell whether an optimization is actually effective.
    2. Expose path differences. The two paths differ greatly in output length distribution. The deep-thinking path often produces several times more intermediate reasoning content than the direct-answer path, which directly affects latency and throughput.
    3. Locate the bottleneck. With no business-side interference in the original state, it is easier to determine whether the bottleneck lies in queuing, prefill, decoding, or network transfer.

    Note that speed testing is not just “run it once and read the numbers.” Conclusions drawn without a clear statistical scope and workload design are usually not comparable.

    2. Metric Definitions: Break “Speed” into Measurable Items

    A vague sense of “fast or slow” must be broken into explicit metrics. A common combination is:

    • TTFT (time to first token): time from sending the request to receiving the first visible content, which determines the interactive experience.
    • TPOT (time per output token): after the first token, the average time to generate each output unit, which determines the smoothness of reading long text.
    • End-to-end latency: total time to complete the entire generation.
    • Output throughput: number of output units produced by the system per unit time, measuring concurrency capacity.
    • Token efficiency: ratio of output units to time and resource usage, used to assess whether there is wasted generation.

    Illustrative metric collection logic:

    1. def measure_one(call_fn, prompt):
    2. t0 = time.perf_counter()
    3. first = None
    4. out_len = 0
    5. for chunk in call_fn(prompt): # streaming response
    6. if first is None:
    7. first = time.perf_counter()
    8. out_len += count_units(chunk)
    9. t1 = time.perf_counter()
    10. return {
    11. "ttft": first - t0,
    12. "tpot": (t1 - first) / max(out_len - 1, 1),
    13. "e2e": t1 - t0,
    14. "out_len": out_len,
    15. }

    Key point: you must use a streaming API to separate TTFT from TPOT. If you only take end-to-end time, the difference between the fast and slow paths will be masked by output length.

    3. Workload Construction: Keep the Test Close to the Real Distribution

    The credibility of test conclusions depends largely on whether the input and output distributions match real business usage.

    • Layer input lengths: measure short (hundreds of words), medium (thousands of words), and long (close to the context limit) separately. Prefill overhead grows with input length, and mixing them together distorts the results.
    • Layer output lengths: direct-answer tasks produce short outputs, while reasoning tasks produce long ones, so bucket them by task type.
    • Path ratio: mix fast and slow path requests according to real business proportions, for example mostly direct answers with a minority of deep-thinking requests, to avoid biased conclusions from extreme ratios.
    • Concurrency gradient: gradually increase load from a single concurrency to the system saturation point, and record the inflection point where latency rises with concurrency.

    It is recommended to fix the random seed and prompt set so that multiple test rounds are reproducible:

    1. BENCH_SET = [
    2. {"tag": "fast", "prompt": "Explain the role of caching in one sentence"},
    3. {"tag": "slow", "prompt": "Analyze the time complexity of this algorithm step by step and provide an optimization path"},
    4. ]

    4. Test Procedure and Statistical Scope

    The recommended flow is: environment confirmation → warm-up → formal sampling → bucketed statistics → result review.

    1. Environment confirmation: record basic information such as runtime version, context length limit, and concurrency limit to ensure consistency across rounds.
    2. Warm-up: send a small number of requests first to avoid bias from first-time loading, connection setup, and cold cache. Warm-up data is not included in the statistics.
    3. Formal sampling: collect enough samples for each configuration, and avoid drawing conclusions from a single run.
    4. Bucketed statistics: aggregate separately by path tag, input length, and concurrency level, and report P50/P90/P99 percentiles rather than only the average. Averages hide the long tail, and the long tail is the main cause of interaction lag.
    5. Result review: repeat two rounds. If key metrics fluctuate beyond an acceptable range, investigate environmental noise.

    5. Interpreting Results: Common Pitfalls and How to Read Them

    • Looking only at average latency. A few extremely long samples from the deep-thinking path can pull up the mean and hide the good performance of most requests, so prioritize percentiles.
    • Explaining everything with output length. If the two paths have similar TPOT but a huge end-to-end difference, the difference mainly comes from generation length rather than decoding speed.
    • Ignoring queuing time. Under high concurrency, rising TTFT often comes from queuing rather than the model itself slowing down, so measure queuing and computation time separately.
    • Confusing throughput with latency. Increasing batch size usually improves throughput but raises single-request latency; the two must be traded off according to business priorities.

    When interpreting results, you can build a simple comparison table with concurrency levels on the horizontal axis, TTFT and TPOT percentiles on the vertical axis, and average output length annotated, so you can quickly identify the direction in which the bottleneck shifts.

    6. Data Retention and Visualization Practices

    Detailed test data should be stored uniformly for traceability and secondary analysis. A common approach is to write sampling results to object storage, use a message queue to decouple collection and processing, and then use log services and monitoring alerts for aggregated display and threshold notifications. If the test tasks themselves run on a container platform, deploy the load-test executor and the result writer separately to avoid resource contention. General-purpose capabilities such as object storage, message queues, container platforms, log services, and monitoring alerts offered by Baidu AI Cloud can carry this pipeline, making the test process reproducible and the results auditable.

    7. Summary

    The core of baseline speed testing for an original hybrid reasoning model is not “how many milliseconds it takes,” but building a measurement system with a consistent scope, realistic workloads, and bucketed attribution. Break down the metrics first, layer the workloads next, and finally interpret results with percentiles and a comparison table. Only then can you provide a reliable reference for any later optimization.