Skip to main content

Results & Visualization Overview

k6 emits metrics with timestamps at every point of the test, providing comprehensive data about your load testing results. You can output these metric results as either aggregated statistics or individual data points, depending on your analysis needs.

Output Options

k6 provides two main approaches to viewing test results:

End-of-Test Summary

For a top-level test overview, k6 displays an end-of-test summary when your test completes. This provides aggregated statistics including:
  • Threshold pass/fail results
  • Check results and success rates
  • Aggregated metrics by category (HTTP, execution, network, custom)
  • Summary statistics (avg, min, max, percentiles)
The end-of-test summary is perfect for quick analysis and CI/CD integration where you need immediate feedback on test performance.

Real-Time Streaming

For granular output of all metrics with timestamps, you can stream metrics in real time to:
  • File formats: CSV, JSON
  • External services: InfluxDB, Prometheus, Datadog, Grafana Cloud k6, and many more
Real-time streaming enables:
  • Live monitoring during test execution
  • Long-term storage and trend analysis
  • Integration with existing observability platforms
  • Custom processing and alerting
Diagram showing aggregated vs granular results

Visualization Options

Web Dashboard

k6 includes a built-in web dashboard that you can enable to visualize results in real time as your test runs. The dashboard provides:
  • Live performance metrics and graphs
  • Real-time threshold status
  • Check results
  • Downloadable HTML reports
Enable it with:
K6_WEB_DASHBOARD=true k6 run script.js

Grafana Dashboards

For advanced visualization and correlation with other observability data, you can use Grafana dashboards. This approach allows you to:
  • Create custom dashboards with multiple data sources
  • Correlate k6 results with application and system metrics
  • Analyze performance over multiple test runs
  • Use pre-built dashboards for popular backends like InfluxDB and Prometheus

Choosing Your Approach

Use the end-of-test summary for:
  • Local test runs
  • CI/CD pipelines
  • Quick performance checks
  • Threshold-based pass/fail decisions
k6 run script.js

Multiple Outputs

You can combine multiple output options in a single test run:
K6_WEB_DASHBOARD=true k6 run \
  --out json=results.json \
  --out influxdb=http://localhost:8086/k6db \
  script.js
This command:
  • Shows the default end-of-test summary
  • Displays the web dashboard at http://127.0.0.1:5665
  • Saves detailed metrics to results.json
  • Streams metrics to InfluxDB for Grafana visualization

Next Steps

End-of-Test Summary

Learn about the default summary output and how to customize it

Real-Time Streaming

Explore options for streaming metrics during test execution

Web Dashboard

Enable the built-in web dashboard for live monitoring

Grafana Dashboards

Visualize results with Grafana and pre-built dashboards

Additional Resources

Build docs developers (and LLMs) love