e01.org

K6 (software)

K6 is an open-source load testing tool developed by Grafana Labs. 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 in Go and using the goja embedded JavaScript interpreter for test scripting purposes. Tests are written in ECMAScript 6 using the Babel transpiler. There is support for HTTP/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 a Jenkins plugin that can be combined with thresholds (global pass/fail criteria).

K6 is an open-source load testing tool developed by Grafana Labs. 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 in Go and using the goja embedded JavaScript interpreter for test scripting purposes. Tests are written in ECMAScript 6 using the Babel transpiler. There is support for HTTP/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 a Jenkins plugin that can be combined with thresholds (global pass/fail criteria). 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. import http from "k6/http"; import { check } from "k6"; export default function() { 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 where http_2.js is the filename in which the test case is saved in.

References

  1. ^ "Grafana k6 | Grafana k6 documentation" . Grafana Labs . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  2. ^ "Release v2.0.0 · grafana/k6" . GitHub . Grafana Labs. 2026-05-11 . Retrieved 2026-07-22 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1784674800.0
  3. ^ "Load testing for engineering teams | Grafana k6" . k6.io . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  4. ^ "An... other load testing tool?" . k6.io . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  5. ^ "Load Impact is now k6" . loadimpact.com . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  6. ^ "LoadImpact is rebranding to k6" . k6.io . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  7. ^ Wiggers, Kyle (2021-06-17). "Grafana Labs acquires load-testing startup K6" . VentureBeat . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  8. ^ "Testing Tools - Ranking | OSS Insight" . ossinsight.io . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
  9. ^ "Reliable, predictable, and scalable performance testing: Grafana k6 1.0 is here" . grafana.com . Grafana Labs. 2025-05-07 . Retrieved 2025-10-03 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1759446000.0
  10. ^ a b "Create Wikipedia page for K6 · Issue #104 · grafana/k6-docs" . GitHub . Retrieved 2024-10-07 . Wikipedia revision 1365388836, retrieved 2026-11-19 · 1728255600.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"K6 (software)". 1784680837. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1365388836

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·