Add benchmark script (#666)

This commit is contained in:
Ta-Ching Chen
2018-05-05 12:42:16 +08:00
committed by GitHub
parent 08c7f1ca25
commit 58260d3f1f
10 changed files with 601 additions and 2 deletions
@@ -0,0 +1,10 @@
import http from "k6/http";
import { check } from "k6";
export default function() {
let params = { timeout: 30 }
let res = http.get(`${__ENV.FN_ENDPOINT}`)
check(res, {
"status is 200": (r) => r.status === 200
});
};