How to calculate the iteration duration time without the setup function time?
The document wrote that:
The time it took to complete one full iteration of the default/main function.
But it doesn’t work in my case. The duration of the iteration includes the duration of the “SETUP” function.
My script
import { sleep } from "k6"
export const options = {
scenarios: {
checks: {
executor: "per-vu-iterations",
vus: 1,
iterations: 1,
maxDuration: "1m",
},
}
}
export function setup() {
sleep(10);
}
export default function () {
sleep(1);
}
Report:
k6 version: loadimpact/k6:latest