docker pull loadimpact/k6
cat script.js
import { check } from "k6";
import http from "k6/http";
export default function() {
let res = http.get("https://test.loadimpact.com/");
check(res, {
"is status 200": (r) => r.status === 200
});
};
docker run -i loadimpact/k6 run -u 10 -d 30s -< script.js
k6 is a developer centric open source load and performance regression testing tool for testing the performance of your cloud native backend infrastructure: APIs, microservices, serverless, containers and websites. It’s built to integrate well into your development workflow and CI/CD automation pipelines.
Written in Go and JavaScript, built to integrate well into the modern developer workflow and automation pipelines.
Primarily for load testing, k6 also works for functional testing of APIs and microservices with its powerful JS ES6 based scripting API.
Straightforward CLI, sharing many UX aspects with the DevOps tools you already use and love.
A short demo recording showing a simple k6 test script, test execution and summary results.

Types of questions and where to ask.
How do I? -- StackOverflow (use tags: k6, javascript, load-testing) or the Discourse forum at community.k6.io
I got this error, why? -- StackOverflow or community.k6.io
I got this error and I'm sure it's a bug -- file an issue
I have an idea/request -- file an issue
Why do you? -- Slack
When will you? -- Slack
I want to contribute/help with development — Start here, then Slack and issues