Slide 8 of 9

Baseline learning path

Learning path: Establish a performance baseline with k6

StepWhat you’ll doOutcome
1. Design load profileConfigure ramp-up, steady state, and ramp-downRealistic traffic shape
2. Add checksAssertions on response correctnessPer-request validation
3. ObserveRun without thresholdsMeasured p95, errors, throughput
4. Set thresholdsPass or fail from observed values plus headroomQuality gate in the script
5. ValidateRe-run until stableTrusted baseline
6. Review in CloudDashboards in Grafana Cloud k6History and comparison

Context

Extends the Module 2 script and Cloud setup, with no restart from zero.

Optional — help with the script: Use Grafana Assistant in k6 Script Authoring mode in Grafana Cloud to refine stages, checks, or thresholds. Refer to Use k6 Script Authoring mode and the Prerequisites slide for access notes.

Learning path

Establish a k6 baseline

Welcome to the Grafana learning path that shows you how to establish a performance baseline with k6, from understanding key metrics to enforcing thresholds and sharing results.

19 min
Beginner
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.

Script

Now you’ll put the baseline concepts into practice. This learning path walks you through the entire process: designing a realistic load profile, adding checks for correctness, running the test to observe actual performance, setting thresholds based on what you measure, and validating that everything passes.

By the end, you’ll have a test that passes or fails automatically based on your system’s actual performance characteristics. That’s the foundation of a testing practice you can build on.