Section 2 · Your first performance test

When to run k6 tests locally versus on Grafana Cloud k6

Estimated time: 1 min

When to reach for each

You ran both k6 run and k6 cloud run in the path. Most teams use both: iterate locally, then promote to Grafana Cloud k6 when a script is ready to keep around. The table below is the cheat sheet for choosing between them next time.

Local execution vs Grafana Cloud k6 comparison

Local executionGrafana Cloud k6
Commandk6 run test.jsk6 cloud run test.js
Where load runsYour machineGrafana Cloud k6 infrastructure
ResultsTerminal summary (session-only unless you add an output)Stored in Grafana Cloud with dashboards
HistoryNone by defaultCompare runs over time
CollaborationShare logs manuallyShare dashboards and links
Best forScript development, quick checksTeam baselines, CI artifacts, trend analysis

For optional output modes (for example streaming a local run to Grafana Cloud), refer to k6 results output and Grafana Cloud k6.