Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import http from "k6/http"
import { check } from "k6"
import { Trend } from "k6/metrics"
var httpReqDurationNoFunc = new Trend("http_req_duration_no_func", true)
var httpReqWaitingNoFunc = new Trend("http_req_waiting_no_func", true)
export let options = {
// unlimited
rps: 0,
tags: {
"component": "serverless",
"revision": `${__ENV.REVISION}`
},
// ramp up #virtual users (VU) over time to get maximum throughput
stages: [
{ duration: "90s", target: 2 ** 3 },
{ duration: "90s", target: 2 ** 4 },
{ duration: "90s", target: 2 ** 5 },
],
}
import http from "k6/http"
import { check } from "k6"
import { Trend } from "k6/metrics"
var httpReqDurationNoFunc = new Trend("http_req_duration_no_func", true)
var httpReqWaitingNoFunc = new Trend("http_req_waiting_no_func", true)
export let options = {
// unlimited
rps: 0,
tags: {
"component": "serverless",
"revision": `${__ENV.REVISION}`
},
// ramp up #virtual users (VU) over time to get maximum throughput
stages: [
{ duration: "90s", target: 2 ** 3 },
{ duration: "90s", target: 2 ** 4 },
{ duration: "90s", target: 2 ** 5 },
],
}