Linux performance / Editorial solution guide

Benchmark improves while users remain slow

Compare workload, windows, and errors before attributing a synthetic improvement to the service.

About 3 min readContent reviewed

Read-only knowledge base · No public comments

Recognize the symptoms

A lab benchmark reports lower mean latency after a change, but a user operation remains slow or errors increase. The disagreement alone does not prove a faulty tool; the test may measure a different workload or interval.

Understand the likely causes

  • Request mix, data size, cache state, or dependencies may differ. The mean may hide slow requests, the load generator may saturate and fail to offer the intended rate, or evidence collection may perturb the workload. Test these hypotheses separately.

Match the population and window

Record the user operation, affected period, request rate, and error definition. Compare them with the benchmark’s request mix, data size, warm-up treatment, and time window. Check whether the benchmark includes the same downstream dependencies and measures end-to-end completion. A short synthetic run without those dependencies can answer a narrower question, but it cannot by itself establish improvement for the user operation. Preserve the baseline and candidate configuration for a repeatable lab comparison.

Examine distribution and completion

Compare tail latency and failed, completed, and offered requests over matching windows, rather than comparing only means. Confirm the generator was able to send the intended load and that its own CPU or network did not become the limiting factor. Check which requests were excluded or sampled. A lower average accompanied by more timeouts or missing slow requests may conceal a regression. Record the measurement units and population so the comparison can be independently reviewed.

Test one explanation

In a disposable environment, repeat baseline and candidate with the same dataset, arrival pattern, duration, and warm-up treatment. Change one suspected factor at a time, such as including the omitted lab dependency. Record the collector configuration and event loss if tracing is used; repeat without the collector to assess its overhead. Stop the experiment if its agreed safety limits are exceeded. Do not clear production caches or generate uncontrolled load to force matching conditions.

Verify the actual operation

After an authorized correction, repeat the representative user operation and compare its latency distribution, success rate, and resource evidence with the baseline. Confirm that the benchmark now measures the intended population and that the generator remains healthy. Record remaining differences between lab and production and the rollback decision. If the resource metric improves but user outcomes do not, keep the discrepancy open and revise the hypothesis rather than announcing recovery.

Verify the fix

Repeat the user operation and lab test with known windows and populations, compare errors, distributions, and request rates, and document remaining differences and measurement limits.

Keep it from recurring

  • Define workload mix, dependencies, warm-up, and success criteria before testing; monitor the load generator and observer overhead, and retain a repeatable baseline and rollback plan.

Official references