This post is with reference to a solution described in : When parameterizing data, how do I not use the same data more than once in a test?
I have an array of data for ex., array length is 1000 and when i run the test with this command
k6 run -u 5 -i 1000 test.js
var maxIter = 200; var data = [1000 elements]; var uniqueNum = ((__VU * maxIter) - (maxIter) + (__ITER)); console.log(data[uniqueNum]);
qn 1: how likely is that all 1000 elements in the array will be used ?
qn 2: how likely is that value of uniqueNum will not get value more than 999 ?
qn 3: does the command mean than each user will execute 200 iterations ? or it is dependant on the iteration duration? ex., VU1 completes 200 iterations but VU2 has completed 150 iterations at a time, shall VU1 proceed to run the next iteration until the maximum iteration is reached ?