# k6

[BASE product page](<https://base.akulich.dev/en/library/k6/>) · [Resource](<https://github.com/grafana/k6>)

ID: k6 · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A load\-testing tool with scripts and metrics: it helps model API load and check performance thresholds in CI\.

## Type

Test automation

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/k6/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/k6/#resource-access>)

Code and local use under AGPL\-3\.0\.

## [Paid features and costs](<https://base.akulich.dev/en/library/k6/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/k6/#resource-access>)

Code and local use under AGPL\-3\.0\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/k6/#resource-tasks>)

- Test API performance under load
- Define load and performance thresholds, then run a test in a test environment

## Category IDs

- quality

## Subcategory IDs

- quality\.testing

## Tags

- k6
- test
- Development

## Also known as

- grafana/k6
- load\-test\-k6
- grafana\-k6
- k6\-load\-testing

## [Selection purpose](<https://base.akulich.dev/en/library/k6/#resource-selection>)

Test API performance under load

## [Choose this when](<https://base.akulich.dev/en/library/k6/#resource-selection>)

- Test API performance under load
- Define load and performance thresholds, then run a test in a test environment

## [Requirements](<https://base.akulich.dev/en/library/k6/#resource-selection>)

- Group a metric's conditions in a thresholds array rather than repeating the property name in a JavaScript object\.

## [Limitations](<https://base.akulich.dev/en/library/k6/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.
- Duplicate thresholds keys can silently override an earlier condition and lose some pass criteria\.

## [Questions before use](<https://base.akulich.dev/en/library/k6/#resource-faq>)

### What can you use for free in k6?

Code and local use under AGPL\-3\.0\.

### What additional costs might arise with k6?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for k6?

AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.

### How do you get started with k6?

Define a user HTTP scenario and input dataset\. Define load and performance thresholds, then run a test in a test environment\. Run the check locally and save the report in CI\.

### How does k6 check multiple thresholds for one metric?

Set an array of expressions under one metric name, such as limits for different percentiles\. The documentation warns against duplicate keys: JavaScript retains the last entry\. A breached threshold makes the test exit with a nonzero code\.

## Sources for the selection guide

- [https://github\.com/grafana/k6](<https://github.com/grafana/k6>)
- [https://raw\.githubusercontent\.com/grafana/k6/HEAD/README\.md](<https://raw.githubusercontent.com/grafana/k6/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/grafana/k6/HEAD/LICENSE\.md](<https://raw.githubusercontent.com/grafana/k6/HEAD/LICENSE.md>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://raw\.githubusercontent\.com/grafana/k6/master/README\.md](<https://raw.githubusercontent.com/grafana/k6/master/README.md>)
- [https://raw\.githubusercontent\.com/grafana/k6/master/LICENSE\.md](<https://raw.githubusercontent.com/grafana/k6/master/LICENSE.md>)
- [https://grafana\.com/docs/k6/latest/using\-k6/thresholds/](<https://grafana.com/docs/k6/latest/using-k6/thresholds/>)

## [Possible workflow](<https://base.akulich.dev/en/library/k6/#resource-scenario>)

Test API performance under load\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- One important workflow and its expected result\.
- A test environment with controlled data\.

## Steps

1. Define a user HTTP scenario and input dataset\.
2. Define load and performance thresholds, then run a test in a test environment\.
3. Run the check locally and save the report in CI\.

## Check your result

- The check detects a deliberately broken workflow\.
- The result can be reproduced without depending on a personal session\.

## [License](<https://base.akulich.dev/en/library/k6/#resource-license>)

AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.

## License explanations for the specified scope

### AGPL 3\.0 — copyleft with a network\-service condition

Use, modification, and commercial use cases are permitted\. GPL obligations apply to distribution\. If you modify an AGPL\-covered program and let users interact with it over a network, you must offer them the corresponding source code for that version\. This applies to the covered program, not automatically to all your data or independent applications\.

[License terms](<https://opensource.org/license/agpl-3.0>)

## [Sources](<https://base.akulich.dev/en/library/k6/#resource-sources>)

- [Official source](<https://github.com/grafana/k6>)
- [Official source](<https://raw.githubusercontent.com/grafana/k6/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/grafana/k6/HEAD/LICENSE.md>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://raw.githubusercontent.com/grafana/k6/master/README.md>)
- [Official source](<https://raw.githubusercontent.com/grafana/k6/master/LICENSE.md>)
- [Official source](<https://grafana.com/docs/k6/latest/using-k6/thresholds/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
