← All Learning Paths

Performance Testing Engineer

A performance testing path covering profiling, load and soak tests, regression triage, latency injection, and percentile analysis.

roleintermediate9 nodes12.58h total

Path overview

性能测试的价值在于用可复现的负载与指标发现回归,而不是一次性跑分。本路径从性能优化与剖析出发,覆盖浸泡与尖峰测试、负载削减与背压、超时预算,配合负载测试场景编写、性能预算门禁、延迟注入与百分位直方图。

This path makes performance measurable and repeatable: profiling and optimization, soak and spike tests, load shedding and backpressure, timeout budgets, realistic load scenarios, a CI performance budget, latency injection, and percentile histograms.

  1. Read "Performance Optimization: From Profiling to Deployment" for the "Caching: The Multiplier" argument, then name the decision in performance work it would change.

    Completion criteria: Attach a one-page summary that quotes "Caching: The Multiplier", lists two trade-offs, and links the commit where you applied it.

    Next step: Load Test Before Launch

    ⏱ 1h

  2. Follow "Load Test Before Launch" and record "Model real traffic: Identify the critical user journeys, their request mix, payload sizes," at the step where it should appear, using "The system is healthy at baseline and the test itself is not the bottleneck." as the check.

    Completion criteria: Produce a run log for "Load Test Before Launch" that ends at "Model real traffic: Identify the critical user journeys, their request mix, payload sizes," and mark every step where "The system is healthy at baseline and the test itself is not the bottleneck." was checked.

    Next step: Triage a Performance Regression

    ⏱ 1h

  3. Carry out "Triage a Performance Regression" on a performance project, pausing at the "The regression has a metric, a magnitude, and a start time." step to verify "Define the regression precisely: Identify the affected route, percentile, time window, and".

    Prerequisites: Load Test Before Launch

    Completion criteria: Deliver a transcript of "Triage a Performance Regression" with each step's command and observed state, ending at "The regression has a metric, a magnitude, and a start time.".

    Next step: Write a Realistic Load Test Scenario

    ⏱ 1.5h

  4. Execute "Write a Realistic Load Test Scenario" end to end, then repeat the last step with one parameter changed and compare "200 requests per second for five minutes; the run fails if p95 exceeds 300 ms or errors".

    Prerequisites: Triage a Performance Regression

    Completion criteria: Deliver a transcript of "Write a Realistic Load Test Scenario" with each step's command and observed state, ending at "200 requests per second for five minutes; the run fails if p95 exceeds 300 ms or errors".

    Next step: Add a Performance Budget to CI

    ⏱ 0.5h

  5. Run "Prevent a pull request from silently shipping a significantly larger JavaScript bundle." from "Add a Performance Budget to CI" and confirm the documented result "The config fails when a matched asset exceeds its gzip budget.".

    Prerequisites: Write a Realistic Load Test Scenario

    Completion criteria: Run "Add a Performance Budget to CI" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Add Latency Fault Injection for Resilience Tests

    ⏱ 0.5h

  6. Apply "Add Latency Fault Injection for Resilience Tests" to a performance task, checking that "The request returns the documented timeout response within the configured budget." appears after the "Add a latency injection middleware guarded by an environment flag and a secret test header." step.

    Prerequisites: Add a Performance Budget to CI

    Completion criteria: Run the steps through "Add a latency injection middleware guarded by an environment flag and a secret test header.", paste the command output, and mark the line that matches "The request returns the documented timeout response within the configured budget."; then rerun with one parameter changed.

    Next step: Summarize Percentiles with a Fixed Histogram

    ⏱ 0.5h

  7. Execute "Summarize Percentiles with a Fixed Histogram", change one constant, and describe how the output diverges from "Bucket observations into a fixed histogram and estimate p50, p90, and p99 without keeping".

    Prerequisites: Add Latency Fault Injection for Resilience Tests

    Completion criteria: Save two runs of "Summarize Percentiles with a Fixed Histogram" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Report Latency Percentiles from Raw Samples

    ⏱ 0.75h

  8. Turn JSON object: { latencies: number[] } (milliseconds) into {p50:50,p95:100,p99:100,mean:55} by completing "Report Latency Percentiles from Raw Samples" with a reproducible script and a failing-case note.

    Prerequisites: Summarize Percentiles with a Fixed Histogram

    Completion criteria: Attach the solution file for "Performance Testing Engineer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Performance Testing Engineer

    ⏱ 0.33h

  9. Ship "Benchmark loader" from "Build a Benchmark Runner CLI", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Summarize Percentiles with a Fixed Histogram, Report Latency Percentiles from Raw Samples

    Completion criteria: Run the project's test command for "Build a Benchmark Runner CLI", paste the passing output, and attach the acceptance note for "Benchmark loader" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h