Hi,
have you updated the below options in version 25?(is there any documentation link other than this pr(New executors by na-- · Pull Request #1007 · grafana/k6 · GitHub) for these options)
import { sleep } from "k6";
export let options = {
execution: {
stages_up_down: {
type: "variable-looping-vus",
startVUs: 0,
stages: [
{ duration: "10s", target: 20 },
{ duration: "10s", target: 0 },
],
gracefulRampDown: "0s",
gracefulStop: "0s",
},
stages_down_up: {
type: "variable-looping-vus",
startVUs: 20,
stages: [
{ duration: "10s", target: 0 },
{ duration: "10s", target: 20 },
],
gracefulRampDown: "0s",
gracefulStop: "0s",
},
const_loop_vus: {
type: "constant-looping-vus",
vus: 20,
duration: "20s",
gracefulStop: "0s",
},
constant_arr_rate: {
type: "constant-arrival-rate",
rate: 20,
timeUnit: "1s",
duration: "10s",
preAllocatedVUs: 10,
maxVUs: 20,
startTime: "20s",
gracefulStop: "0s",
},
variable_arr_rate: {
type: "variable-arrival-rate",
startRate: 20,
timeUnit: "1s",
preAllocatedVUs: 10,
maxVUs: 20,
startTime: "20s",
stages: [
{ target: 0, duration: "5s" },
{ target: 20, duration: "5s" },
],
gracefulStop: "0s",
},
per_vu_iters: {
type: "per-vu-iterations",
vus: 20,
iterations: 10,
startTime: "30s",
maxDuration: "10s",
gracefulStop: "10s",
},
shared_iters: {
type: "shared-iterations",
vus: 20,
iterations: 200,
startTime: "30s",
maxDuration: "10s",
gracefulStop: "10s",
},
adjustable_at_will: {
type: "externally-controlled",
vus: 5,
maxVUs: 10,
duration: "40s",
},
},
};
export default function () {
console.log(`Start VU ${__VU} ITER ${__ITER}`);
sleep(0.5 + Math.random() * 0.5);
console.log(`Done VU ${__VU} ITER ${__ITER}`);
}