Linux performance / Intermediate: mechanism and scoped diagnosis / Lesson 14
Design repeatable benchmark experiments
Design a controlled comparison that accounts for warm-up, load generation, and outcomes.
On this page
Lesson goals
- Define test conditions and repeat a baseline comparison.
- Inspect offered load, outcomes, and limits of inference.
- Design repeatable trials with matched workload, warm-up, and outcome boundaries.
- Interpret generator limits, variability, and errors before accepting a result.
Choose a controlled question
A benchmark should answer a specific question, such as whether a particular change reduces latency for a representative read workload. Define request mix, dataset size, concurrency, environment, and success criteria first. Record the baseline configuration and stop conditions. Running a generic benchmark without these details can measure a different bottleneck from the real service and lead to a tuning change that does not help users.
Account for warm-up and caches
Initial requests may include cache misses, connection setup, or runtime initialization that later requests do not. Decide whether cold-start behavior or steady operation is the question, and retain the warm-up observations separately instead of silently discarding them. Record cache state as far as it is known. Do not clear caches on a shared system: the resulting disruption and altered conditions can invalidate the comparison.
Repeat and compare
Repeat both baseline and candidate under comparable conditions rather than selecting the best run. The simple synthetic table illustrates why one unusually fast sample is insufficient evidence. Examine variance, errors, latency distribution, and throughput together. If background work or a thermal change differs between runs, record the limitation and repeat a bounded test when possible. A statistically meaningful conclusion requires an appropriate experiment, not a fixed magic number of repetitions.
baseline latency: 10, 11, 10 ms
candidate latency: 8, 14, 11 ms
These illustrative values show that the fastest reading alone does not prove a stable improvement.
Control offered load
Record how requests are generated and whether the generator waits for each response before sending more. A saturated generator or closed-loop workload can mask overload because fewer requests are offered while responses slow down. Compare offered, completed, and failed request counts with elapsed time. Check the load generator itself and avoid claiming that the service handled requests that were never sent or completed.
offered: 1000 requests
completed: 940 requests
failed: 60 requests
The counts distinguish offered, completed, and failed requests; they do not claim an executed test.
Report the limitations
Report the tested version and configuration, workload, warm-up treatment, observation window, and user-facing results alongside resource metrics. Identify whether the test was synthetic and what production dependencies were absent. If the candidate reduces a resource counter but worsens errors or tail latency, it has not met a user-facing goal. Keep a rollback plan and validate a small authorized change before considering a broader rollout.
Turn an optimization idea into a testable contract
A benchmark is an experiment designed to answer a specific question, not a contest for the lowest single number. State the hypothesis, intended user-visible outcome, input distribution, dataset size, request mix, arrival model, concurrency, duration, correctness, and error limits. Define what counts as completed useful work and the latency boundary before running anything. A generic workload that omits a real dependency or changes durability can measure a different system from the one the question concerns.
Record baseline and candidate versions, configuration, environment, tool versions, and the single factor being changed. Use a representative disposable environment and synthetic data, define stop criteria and rollback, and preserve original artifacts. A benchmark result describes the stated conditions, not universal production capacity. The records below are fictional; the course does not generate load or change a host.
Treat warm-up and cache state as design choices
Startup can include runtime initialization, connection setup, and cold-cache misses that steady operation does not. Decide whether the question concerns first request, sustained warm behavior, or recovery after a cold start. Keep warm-up observations separately rather than silently discarding them. A candidate measured warm against a cold baseline is confounded unless cache state is intentionally the factor being tested. Record what is known and what cannot be controlled.
Repeat both versions under matched phase and input conditions. Do not clear caches on a shared host to force a comparison; this changes other workloads and the experiment itself. In a separately authorized disposable lab, use a documented procedure appropriate to the question and preserve recovery. A warm buffer pool may overstate performance during recovery, while a cold test alone may not represent steady user traffic.
Compare repeated runs and time drift
Repeat baseline and candidate under equivalent conditions and report all results, not just each version’s fastest run. Examine spread, sample counts, errors, and latency distribution as well as a mean. One unusually fast candidate sample within a broad range is weak evidence of a stable gain. There is no universal number of runs that guarantees statistical significance; the required design depends on variation, effect size, independence, and the decision. Avoid presenting a synthetic arithmetic example as a formal confidence interval.
Alternate or randomize run order when practical to reveal background-load, cache, or thermal drift. If the host becomes busier midway, record the change and repeat a bounded test when possible. A paired comparison is useful only if the pairs have matching workload and time context. Preserve raw samples and predefined analysis so a later reviewer can see whether the conclusion depends on discarded runs.
Account for offered load and generator limits
A closed-loop generator waits for a response before sending its next request; when the service stalls, its offered rate can fall. An open-loop schedule can issue arrivals independently, but the generator itself may queue, drop, or fail to send some requests. Distinguish scheduled arrivals, actual sends, server admissions, successful completions, failures, and timeouts over the same interval. Do not count unsent requests as server successes or infer service capacity from a saturated generator.
Timeouts censor eventual duration; a successful-only percentile can improve when slow requests disappear into timeouts. Report their counts and thresholds alongside latency, backlog, and successful throughput. Monitor the generator’s own CPU, network, and queue at the appropriate scope. Compare the same offered model and demand across trials, and ensure that an asynchronous acceptance is not mistaken for the final report or transaction completion.
Report outcomes and inference limits
An acceptance decision compares the full service contract: successful throughput, client latency distribution, errors, correctness, and any durability or dependency requirements. A lower resource counter or mean latency is insufficient if errors double or the slow tail worsens. Report test environment differences and absent production dependencies explicitly. Correlation in a benchmark suggests a mechanism, but a controlled change and independent evidence are needed to support causation.
Keep the data, run order, workload generator behavior, missing samples, configuration, and rollback with the result. Identify what was measured, what was modeled, and what remains unknown. A counter unavailable due to permission is not zero. If the experiment crosses its stop threshold, stop and follow the reviewed recovery plan rather than collecting a flattering final run. A repeatable report lets another reader challenge and reproduce the inference.
20 worked examples
1. Fastest sample
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline ms: 10,11,10 candidate ms: 8,14,11
- The candidate includes the fastest single sample, 8 ms, but also a 14 ms sample.
- Compare the full repeated distributions and errors before claiming a stable improvement.
baseline ms: 10,11,10
candidate ms: 8,14,11
Hypothetical data for analysis, not a host measurement. One selected extreme does not represent run-to-run variability. The candidate includes the fastest single sample, 8 ms, but also a 14 ms sample.
Expected result: Compare the full repeated distributions and errors before claiming a stable improvement.
Why this result follows: One selected extreme does not represent run-to-run variability. The candidate includes the fastest single sample, 8 ms, but also a 14 ms sample.
2. Means and spread
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: A ms: 10,10,10 B ms: 8,10,12
- Both means are 10 ms, but B ranges from 8 to 12 ms.
- Equal means do not establish equal variability or tail behavior.
A ms: 10,10,10
B ms: 8,10,12
Hypothetical data for analysis, not a host measurement. A mean does not preserve the spread of individual observations. Both means are 10 ms, but B ranges from 8 to 12 ms.
Expected result: Equal means do not establish equal variability or tail behavior.
Why this result follows: A mean does not preserve the spread of individual observations. Both means are 10 ms, but B ranges from 8 to 12 ms.
3. Cold versus warm
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline: cold cache candidate: warm cache latency: candidate lower
- Cache state differs between the compared runs.
- Repeat matched cold or matched warm trials before attributing the gap to the candidate.
baseline: cold cache
candidate: warm cache
latency: candidate lower
Hypothetical data for analysis, not a host measurement. Cache warmth can alter storage work independently of code changes. Cache state differs between the compared runs.
Expected result: Repeat matched cold or matched warm trials before attributing the gap to the candidate.
Why this result follows: Cache warmth can alter storage work independently of code changes. Cache state differs between the compared runs.
4. Warm-up retained
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: first minute: initialization next five minutes: steady report: both labeled
- The report separates initialization from the five-minute steady window.
- Compare each phase with its equivalent in the other version.
first minute: initialization
next five minutes: steady
report: both labeled
Hypothetical data for analysis, not a host measurement. Phase labels prevent mixing startup effects with steady behavior. The report separates initialization from the five-minute steady window.
Expected result: Compare each phase with its equivalent in the other version.
Why this result follows: Phase labels prevent mixing startup effects with steady behavior. The report separates initialization from the five-minute steady window.
5. Input size mismatch
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline payload: 1 MiB candidate payload: 100 KiB latency: candidate lower
- The candidate processes smaller inputs. Work size is a separate factor affecting measured time. The candidate processes smaller inputs.
- Match input distribution before attributing the timing difference to code.
baseline payload: 1 MiB
candidate payload: 100 KiB
latency: candidate lower
Hypothetical data for analysis, not a host measurement. Work size is a separate factor affecting measured time. The candidate processes smaller inputs.
Expected result: Match input distribution before attributing the timing difference to code.
Why this result follows: Work size is a separate factor affecting measured time. The candidate processes smaller inputs.
6. Background drift
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline runs: quiet host candidate runs: busy host run order: all baseline then candidate
- Background activity changed together with version and run order.
- Repeat alternating matched trials or report the unresolved confound.
baseline runs: quiet host
candidate runs: busy host
run order: all baseline then candidate
Hypothetical data for analysis, not a host measurement. Time-varying external load can bias sequential comparisons. Background activity changed together with version and run order.
Expected result: Repeat alternating matched trials or report the unresolved confound.
Why this result follows: Time-varying external load can bias sequential comparisons. Background activity changed together with version and run order.
7. Offered versus completed
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: offered: 1000 requests successful: 940 failed: 60
- The outcome counts sum to the 1000 offered requests.
- Report 940 successful completions and 60 failures rather than 1000 successes.
offered: 1000 requests
successful: 940
failed: 60
Hypothetical data for analysis, not a host measurement. Offered work and successful useful work are different populations. The outcome counts sum to the 1000 offered requests.
Expected result: Report 940 successful completions and 60 failures rather than 1000 successes.
Why this result follows: Offered work and successful useful work are different populations. The outcome counts sum to the 1000 offered requests.
8. Closed-loop slowdown
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: generator: waits for each response service response: slows send rate: falls
- The client waits longer before issuing each next request.
- The reduced offered rate can mask overload unless attempts are recorded.
generator: waits for each response
service response: slows
send rate: falls
Hypothetical data for analysis, not a host measurement. Closed-loop demand is coupled to response time. The client waits longer before issuing each next request.
Expected result: The reduced offered rate can mask overload unless attempts are recorded.
Why this result follows: Closed-loop demand is coupled to response time. The client waits longer before issuing each next request.
9. Generator drops
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: scheduled: 100 requests dropped before send: 15 server received: 85
- Fifteen scheduled requests never reached the server.
- Report 85 arrivals and 15 generator drops separately from server outcomes.
scheduled: 100 requests
dropped before send: 15
server received: 85
Hypothetical data for analysis, not a host measurement. A saturated generator can limit offered traffic before the service. Fifteen scheduled requests never reached the server.
Expected result: Report 85 arrivals and 15 generator drops separately from server outcomes.
Why this result follows: A saturated generator can limit offered traffic before the service. Fifteen scheduled requests never reached the server.
10. Timeout exclusion
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline p99: 900 ms, timeouts: 5 candidate p99: 700 ms, timeouts: 20 population: completed only
- Completed-only p99 falls while timeout count quadruples.
- Compare all outcome counts and equal offered demand before judging overall quality.
baseline p99: 900 ms, timeouts: 5
candidate p99: 700 ms, timeouts: 20
population: completed only
Hypothetical data for analysis, not a host measurement. Censoring slow requests can improve a completion-only summary. Completed-only p99 falls while timeout count quadruples.
Expected result: Compare all outcome counts and equal offered demand before judging overall quality.
Why this result follows: Censoring slow requests can improve a completion-only summary. Completed-only p99 falls while timeout count quadruples.
11. Mean versus errors
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: mean latency: improves error rate: 1% to 2% error objective: at most 1%
- Mean latency improved, but the error rate exceeds the stated objective.
- The candidate fails the complete contract despite the lower mean.
mean latency: improves
error rate: 1% to 2%
error objective: at most 1%
Hypothetical data for analysis, not a host measurement. Acceptance must include errors as well as a latency summary. Mean latency improved, but the error rate exceeds the stated objective.
Expected result: The candidate fails the complete contract despite the lower mean.
Why this result follows: Acceptance must include errors as well as a latency summary. Mean latency improved, but the error rate exceeds the stated objective.
12. Unchanged offered load
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: A and B offered: 100/s A success: 100/s B success: 80/s
- The offered rates match, but B completes fewer successful requests.
- Compare B’s errors and backlog before interpreting its latency.
A and B offered: 100/s
A success: 100/s
B success: 80/s
Hypothetical data for analysis, not a host measurement. Equal demand does not imply equal completed useful work. The offered rates match, but B completes fewer successful requests.
Expected result: Compare B’s errors and backlog before interpreting its latency.
Why this result follows: Equal demand does not imply equal completed useful work. The offered rates match, but B completes fewer successful requests.
13. Asynchronous acknowledgement
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: jobs accepted: 100 reports completed: 70 window: same
- Thirty accepted jobs have not produced reports within the window.
- Use completed-report throughput for the user’s report objective.
jobs accepted: 100
reports completed: 70
window: same
Hypothetical data for analysis, not a host measurement. Admission is not necessarily final useful completion. Thirty accepted jobs have not produced reports within the window.
Expected result: Use completed-report throughput for the user’s report objective.
Why this result follows: Admission is not necessarily final useful completion. Thirty accepted jobs have not produced reports within the window.
14. Different measurement boundary
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline: server execution only candidate: client end-to-end latency: compared
- The two timers include different stages. Comparable latency requires matching start and end events. The two timers include different stages.
- Repeat with a common boundary and outcome population.
baseline: server execution only
candidate: client end-to-end
latency: compared
Hypothetical data for analysis, not a host measurement. Comparable latency requires matching start and end events. The two timers include different stages.
Expected result: Repeat with a common boundary and outcome population.
Why this result follows: Comparable latency requires matching start and end events. The two timers include different stages.
15. Counter improved, outcome not
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: CPU time/request: lower client latency: unchanged objective: lower client latency
- The diagnostic CPU metric improved, but client latency did not.
- Investigate other stages before claiming the user objective was met.
CPU time/request: lower
client latency: unchanged
objective: lower client latency
Hypothetical data for analysis, not a host measurement. An intermediate resource metric is not the end-to-end outcome. The diagnostic CPU metric improved, but client latency did not.
Expected result: Investigate other stages before claiming the user objective was met.
Why this result follows: An intermediate resource metric is not the end-to-end outcome. The diagnostic CPU metric improved, but client latency did not.
16. Collector overhead
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline: profiler off candidate: profiler on latency: higher
- Instrumentation changes with the candidate. Measurement itself can perturb the workload. Instrumentation changes with the candidate.
- Match profiling conditions or quantify overhead before attributing the difference.
baseline: profiler off
candidate: profiler on
latency: higher
Hypothetical data for analysis, not a host measurement. Measurement itself can perturb the workload. Instrumentation changes with the candidate.
Expected result: Match profiling conditions or quantify overhead before attributing the difference.
Why this result follows: Measurement itself can perturb the workload. Instrumentation changes with the candidate. Instrumentation changes with the candidate. Measurement itself can perturb the workload. Instrumentation changes with the candidate.
17. Missing result
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: candidate run 3: collector failed chart value: zero
- The zero is a substitution for an unavailable measurement.
- Keep the run marked missing and investigate the collector failure.
candidate run 3: collector failed
chart value: zero
Hypothetical data for analysis, not a host measurement. Missing data is not a measured zero. The zero is a substitution for an unavailable measurement.
Expected result: Keep the run marked missing and investigate the collector failure.
Why this result follows: Missing data is not a measured zero. The zero is a substitution for an unavailable measurement.
18. Stop condition
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: stop: errors above 2% observed errors: 3% lab test: running
- The observed error rate exceeds the predeclared threshold.
- Stop and follow the reviewed rollback rather than continuing for a better result.
stop: errors above 2%
observed errors: 3%
lab test: running
Hypothetical data for analysis, not a host measurement. Stop conditions bound an experiment’s impact. The observed error rate exceeds the predeclared threshold.
Expected result: Stop and follow the reviewed rollback rather than continuing for a better result.
Why this result follows: Stop conditions bound an experiment’s impact. The observed error rate exceeds the predeclared threshold.
19. Synthetic dependency
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: lab database: synthetic production network dependency: absent result: faster
- The tested environment omits a production dependency.
- Report that limit and do not infer the same end-to-end production gain.
lab database: synthetic
production network dependency: absent
result: faster
Hypothetical data for analysis, not a host measurement. A benchmark result applies to the components and workload actually tested. The tested environment omits a production dependency.
Expected result: Report that limit and do not infer the same end-to-end production gain.
Why this result follows: A benchmark result applies to the components and workload actually tested. The tested environment omits a production dependency.
20. Different durability
Problem: Analyze the synthetic experiment record and calculate or infer the supported result and its limits. Record: baseline: durable commit candidate: buffered acknowledgement latency: candidate lower
- The candidate stops timing before the baseline’s durability boundary.
- It is not an equivalent improvement for a durable-commit objective.
baseline: durable commit
candidate: buffered acknowledgement
latency: candidate lower
Hypothetical data for analysis, not a host measurement. Changing completion semantics changes the work and correctness contract. The candidate stops timing before the baseline’s durability boundary.
Expected result: It is not an equivalent improvement for a durable-commit objective.
Why this result follows: Changing completion semantics changes the work and correctness contract. The candidate stops timing before the baseline’s durability boundary.
Common errors and fixes
Selecting only the fastest run
- Why it happens
- Variation and other results were ignored.
- How to fix it
- Compare all equivalent runs and examine variation.
- Prevent it next time
- Define repetition and comparison criteria before testing.
Comparing cold and warm runs
- Why it happens
- Cache state or warm-up treatment differed.
- How to fix it
- Record both conditions and repeat the intended test.
- Prevent it next time
- Define warm-up treatment before measuring.
Counting unsent requests as success
- Why it happens
- The load generator saturated or the offered rate changed.
- How to fix it
- Compare offered, completed, and failed counts and inspect the generator.
- Prevent it next time
- Monitor the generator and document its workload model.
20 practice exercises
1. Mean latency improved but errors doubled. Was the goal met?
Show hint
Compare errors and the distribution against the same success criteria.
Show worked solution
The mean alone is insufficient. Compare errors and the latency distribution against the same success criteria and establish user impact before rollout.
A better mean is insufficient when errors double. Compare outcome counts, tail latency, offered demand, and user impact against the contract before any rollout.
Check your solution
- Record the improved mean and doubled errors.
- Compare latency distribution and errors with success criteria.
2. Why can offered requests fall when a closed-loop service becomes slow?
Show hint
Trace when the client sends its next request.
Show worked solution
The generator waits for a response before issuing the next request, so increased waiting reduces its send rate. Measure offered and completed requests explicitly.
A closed-loop generator waits for a response before its next request, so longer waiting reduces its send rate. Measure offered, completed, and timed-out requests explicitly.
Check your solution
- Identify waiting for the response before the next send.
- Measure sends, completions, and timeouts.
3. Baseline latencies are 10, 11, 10 ms and candidate values are 8, 14, 11 ms. Does the 8 ms sample prove a stable gain?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
No. The candidate also has a 14 ms observation and a wider range. Compare all matched repetitions, errors, and distribution rather than selecting its fastest sample. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Include the 14 ms candidate result.
- Compare all matched repetitions and outcomes.
4. A and B have the same 10 ms mean, but A is always 10 and B ranges from 8 to 12. What differs?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
B has greater observed spread even though the means match. Retain individual results and inspect the relevant tail and sample count before claiming equivalent user experience. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Calculate both means as 10 ms.
- Identify B’s wider 8–12 ms range.
5. A cold baseline is compared with a warm candidate. How should the next trial be designed?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Repeat both versions under matched cold conditions or matched warm steady conditions, with the same workload and timing boundary. Record warm-up separately and do not clear caches on a shared host.
Check your solution
- Match cache state for baseline and candidate.
- Preserve warm-up results separately.
6. Why should first-request initialization be retained even when the main question is steady-state latency?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Initialization can matter to cold-start or recovery objectives even when excluded from a steady-state summary. Label it separately so the steady comparison remains matched and the startup cost is not hidden.
Check your solution
- Separate startup from steady-state measurements.
- Retain startup evidence for cold or recovery behavior.
7. A baseline uses 1 MiB inputs while a candidate uses 100 KiB. What must be matched?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Match input-size distribution, request mix, arrival model, and completion boundary before attributing latency to the version. The smaller candidate workload may itself explain part of the difference. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Identify the input-size mismatch.
- Repeat with equivalent workload and boundaries.
8. All baseline runs precede all candidate runs, and background load rises halfway. What confound exists?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Version and time-varying background load changed together. Repeat alternating or appropriately randomized matched runs, or report the unresolved limitation if repetition is unavailable. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Identify run order and background-load drift.
- Repeat matched alternating trials or state the limitation.
9. A test offers 1000 requests, completes 940 successfully, and fails 60. How should outcomes be reported?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Report all three counts and the interval, with successful throughput calculated from 940 divided by elapsed time. Do not label all 1000 offered requests successful. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Record 940 successes and 60 failures.
- Use successful completions, not offers, for useful throughput.
10. A closed-loop generator waits longer when the service slows. Why can offered requests fall?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Each client waits for a response before issuing its next request, so a long response reduces its send rate. Measure actual sends, completions, and timeouts rather than assuming fixed offered load.
Check your solution
- Identify response-dependent request generation.
- Measure actual sends and outcomes.
11. An open-loop generator schedules 100 requests but drops 15 before sending. How many reach the server?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
The server receives 100 − 15 = 85 requests in the stated record. Report the generator drops separately; they are neither successful server completions nor necessarily server rejections. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Calculate 85 server arrivals.
- Report 15 generator drops separately.
12. Completed p99 falls from 900 to 700 ms while timeouts rise from 5 to 20. Is overall quality proven better?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
No. The improved percentile excludes requests that may have timed out. Compare equal offered demand, timeout thresholds, all outcomes, and backlog before deciding. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Record lower completed p99 and higher timeouts.
- Compare the complete outcome population.
13. Mean latency improves while errors double above the agreed limit. Has the goal been met?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
No. The latency summary improved, but the error requirement failed. Inspect the distribution and user impact under the same offered demand before considering any rollout. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Record the improved mean and failed error limit.
- Require the full service objective for acceptance.
14. A candidate accepts 100 jobs but completes only 70 reports in the window. Which number is useful completion?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
For a report-completion objective, 70 is the completed count; acceptance alone does not produce the report. Track the other 30 jobs as backlog or other outcomes. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Use 70 completed reports for useful work.
- Account for the other 30 accepted jobs.
15. A baseline measures server execution, while a candidate measures client end-to-end time. Can the values be compared directly?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
No. The client boundary can include queues, network, and transfer omitted by the server timer. Measure the same start, end, and outcome population in both runs. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Identify different timing boundaries.
- Require matching events and population.
16. A resource counter improves but client latency does not. What conclusion is justified?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
The diagnostic metric changed, but the user-facing latency objective remains unmet. Verify matching scope and workload, then investigate other stages rather than declaring a service gain. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Record the resource change separately.
- Do not claim client-latency improvement.
17. A profiler runs only during the candidate trial. Why might that affect the result?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Profiling can consume CPU or I/O, so instrumentation is another differing factor. Repeat with matching collection or quantify overhead in a bounded disposable lab. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Identify asymmetric instrumentation.
- Match or quantify profiler overhead.
18. A measurement is unavailable due to permission, but a graph displays zero. What should be recorded?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Record the failed collection and missing value, not a measured zero. Use the authorized collection process or select a documented alternative; do not lower host security to fill the graph.
Check your solution
- Mark the measurement unavailable.
- Preserve the permission error and approved collection boundary.
19. A test has a 2% error stop threshold and observes 3%. What should happen?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
Stop the bounded lab test and follow its reviewed rollback because the threshold was crossed. Preserve raw outcomes and investigate before repeating with a justified candidate. Record the observation context and identity before testing the result in an authorized lab.
Check your solution
- Compare 3% to the 2% stop threshold.
- Stop and use the documented rollback.
20. A synthetic lab omits a production network dependency and reports a gain. What limit belongs in the report?
Show hint
Identify the workload, window, outcomes, and comparison conditions described by the evidence.
Show worked solution
State that the measured gain applies to the lab path without that dependency. Do not claim the same production end-to-end gain until an authorized representative comparison includes the missing component.
Check your solution
- Identify the absent production dependency.
- Limit the claim to the tested lab path.
Key takeaways
- Compare repeatable runs and track errors and distributions.
- Document warm-up, offered load, and test-environment limits.
- The fastest single run does not establish a stable gain.
- Record warm-up, offered demand, timeouts, and complete outcomes.
- Preserve conditions, rollback, and limits on generalization.