Like unit testing, for performance
https://github.com/loadimpact/k6
留坑
$ docker pull loadimpact/k6
$ cat script.js
import { check } from "k6";
import http from "k6/http";
export default function() {
let res = http.get("https://httpbin.org/");
check(res, {
"is status 200": (r) => r.status === 200
});
};
$ docker run -i loadimpact/k6 run --vus 10 --duration 30s - <script.js