Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

K6 (software)

From Wikipedia, the free encyclopedia
Open-source load testing software
k6
DeveloperGrafana Labs
Initial releaseJanuary 18, 2017; 8 years ago (2017-01-18)
Stable release
1.3.0 / September 23, 2025; 2 months ago (2025-09-23)
Repositorygithub.com/grafana/k6
Written inJavaScript,Go
Operating systemCross-platform
TypeLoad testing
LicenseAGPL 3
Websitek6.io

K6 is an open-source load testing tool developed by Grafana Labs.[1][2] It is designed to help developers and engineers test the performance and reliability of their systems, particularly APIs, microservices, and websites. K6 is both an HTTP load and functional test tool, written inGo and using thegoja embeddedJavaScript interpreter for test scripting purposes. Tests are written inECMAScript 6 using the Babel transpiler. There is support forHTTP/2,TLS, test assertions, ramp up and down, duration, number of iterations etc. Standard metrics include reports to standard out but can include collectors that report to time-series databases which can be visualized in real-time. There is aJenkins plugin that can be combined with thresholds (global pass/fail criteria).[3]

Features

[edit]
  • Developer-friendly: Uses JavaScript for scripting.
  • Extensible: Can be extended with various modules and integrations.[4]
  • Performance testing: Supports stress, spike, and soak tests.
  • Automation-friendly: Integrates with CI/CD pipelines for continuous testing.

History

[edit]

K6 was initially released by LoadImpact[5][6] in 2017. LoadImpact was later rebranded into k6 in 2020.[7] K6 was then acquired by Grafana Labs in 2021.[8] It has since become a popular tool for performance testing in the developer community.[9]

Grafana k6 1.0 was released on 2025-05-07 at GrafanaCON 2025.[10]

Example and usage

[edit]

The below script executes a GET request on the Wikipedia homepage, checks whether the HTTP status code is 200 and if we are using the HTTP/2 protocol.[3]

importhttpfrom"k6/http";import{check}from"k6";exportdefaultfunction(){check(http.get("https://www.wikipedia.org/"),{"status is 200":(r)=>r.status==200,"protocol is HTTP/2":(r)=>r.proto=="HTTP/2.0",});}

The above test case can be run with the command$ k6 run http_2.js wherehttp_2.js is the filename in which the test case is saved in.

See also

[edit]

References

[edit]
  1. ^"Grafana k6 | Grafana k6 documentation".Grafana Labs. Retrieved2024-10-07.
  2. ^"Load testing for engineering teams | Grafana k6".k6.io. Retrieved2024-10-07.
  3. ^ab"Create Wikipedia page for K6 · Issue #104 · grafana/k6-docs".GitHub. Retrieved2024-10-07.
  4. ^grafana/xk6, Grafana Labs, 2024-10-04, retrieved2024-10-07
  5. ^"An... other load testing tool?".k6.io. Retrieved2024-10-07.
  6. ^"Load Impact is now k6".loadimpact.com. Retrieved2024-10-07.
  7. ^"LoadImpact is rebranding to k6".k6.io. Retrieved2024-10-07.
  8. ^Wiggers, Kyle (2021-06-17)."Grafana Labs acquires load-testing startup K6".VentureBeat. Retrieved2024-10-07.
  9. ^"Testing Tools - Ranking | OSS Insight".ossinsight.io. Retrieved2024-10-07.
  10. ^"Reliable, predictable, and scalable performance testing: Grafana k6 1.0 is here".grafana.com. Retrieved2025-10-03.

External links

[edit]


Stub icon

Thisprogramming-tool-related article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=K6_(software)&oldid=1314751613"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp