k6

Version 25 options

Hi,
have you updated the below options in version 25?(is there any documentation link other than this pr(https://github.com/loadimpact/k6/pull/1007/) 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});
}

Hi @ravi_k6, those options are not in version 25 yet.

Those features are expected to be in v1.0.0 release.

@cuonglm – thank you… is there any approximate date for v1.0.0 release?

These features will be officially available in the next few months, and it’s not fully decided if we’ll call that k6 version v1.0.0 or something like v0.27.0. Follow this pull request to be informed when the features would land in master: https://github.com/loadimpact/k6/pull/1007