Overview
k6, now called Grafana k6, is an open-source tool for load and performance testing. You write a test as a JavaScript file describing what virtual users should do, run it from the command line, and k6 reports response times, error rates and other metrics in the terminal. The core is built in Go and released under the AGPL-3.0 licence.
The same script can be used for different kinds of test: a short smoke test, a steady load test, a stress or spike test that pushes past normal traffic, or a long soak test. k6 speaks HTTP, WebSockets and gRPC, and a browser module drives a real browser so you can measure front-end performance alongside API calls. Thresholds let a test pass or fail automatically, which makes it practical to run in a CI pipeline.
Extensions add further protocols and targets such as Kafka, Prometheus and Kubernetes, and results can be exported to outside services for dashboards. Grafana Labs also sells Grafana Cloud k6, a hosted service that runs tests from multiple regions; the Grafana Cloud free tier includes a small monthly allowance. It suits developers, testers and site reliability engineers who prefer tests kept as code.
Categories
Features
- Tests written as JavaScript and run from a command-line tool
- Load, stress, spike, soak and smoke testing from the same scripts
- HTTP, WebSockets and gRPC support
- Browser module for testing real page performance
- Thresholds that pass or fail a test automatically
- Extensions for Kafka, Prometheus, Kubernetes and other systems
- Metrics export to outside monitoring services
- Packages for Linux, macOS and Windows plus an official Docker image
- k6 Studio desktop app for recording scripts
Privacy
See the official privacy policy. The open-source tool runs on your own machine; the marketing site loads Google Tag Manager and Hotjar.
Pros & Cons
Pros
- Free and open source under AGPL-3.0
- Tests live in version control and fit into CI pipelines
- One tool covers API and browser performance
- Runs on Linux, macOS, Windows and Docker
- No account needed to run tests locally
Cons
- Scripted in JavaScript, so it needs some coding
- Command-line first, with no built-in graphical dashboard for results
- Large distributed or multi-region tests point towards the paid cloud service
- AGPL licensing may need a check before embedding it in commercial products
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Load Testing · Apache JMeter
Load tests web applications and APIs.
Open Source No Signup Windows Linux -
Load tests applications with a code-based scripting approach.
Open Source No Signup Web -
Load tests applications using Python scripts.
Open Source No Signup Web