Hello,
Can someone please help me understand how the VUs and Iterations work when running a single scenario. I have a csv data file with 5 rows of data. My first use case is as below
export const options = {
scenarios: {
login: {
executor: 'per-vu-iterations',
vus: data.length,
iterations: 1,
maxDuration: '5s',
},
},
};
When I log the individual response time for each POST request to the API, I see that the later requests have the response time very high.
INFO[0002] Individual API Response Time (ms): HTN MostRecent 99.7327 source=console
INFO[0003] Individual API Response Time (ms): HTN OnThiazide 1501.4011 source=console
INFO[0003] Individual API Response Time (ms): HTN PriorBlood 1618.4642 source=console
INFO[0004] Individual API Response Time (ms): HTN HasEssential 1875.9909 source=console
INFO[0004] Individual API Response Time (ms): HTN HasOsteo 1934.0077 source=console
Any idea why the response time for the fourth request is almost 2000 ms compared to the first one which is 99 ms. The API is the same in both the requests.
My second use case
export const options = {
scenarios: {
login: {
executor: 'per-vu-iterations',
vus: data.length,
iterations: data.length,
maxDuration: '5s',
},
},
};
Below is the response time
INFO[0002] Individual API Response Time (ms): HTN MostRecentWeight 111.5304 source=console
INFO[0003] Individual API Response Time (ms): HTN OnThiazideOrThiazideTypeDiuretic 1259.0893 source=console
INFO[0003] Individual API Response Time (ms): HTN MostRecentWeight 66.1254 source=console
INFO[0003] Individual API Response Time (ms): HTN HasEssentialTremor 1616.3457 source=console
INFO[0003] Individual API Response Time (ms): HTN PriorBlood 1702.0189 source=console
INFO[0004] Individual API Response Time (ms): HTN HasOsteo 2019.2183 source=console
INFO[0004] Individual API Response Time (ms): HTN MostRecent61.5539 source=console
INFO[0004] Individual API Response Time (ms): HTN OnThiazide 229.8114 source=console
INFO[0005] Individual API Response Time (ms): HTN HasEssential 462.7554 source=console
INFO[0005] Individual API Response Time (ms): HTN HasOsteo 280.4483 source=console
INFO[0005] Individual API Response Time (ms): HTN PriorBlood 713.5124 source=console
INFO[0005] Individual API Response Time (ms): HTN MostRecent 67.969 source=console
INFO[0006] Individual API Response Time (ms): HTN OnThiazide 193.0096 source=console
INFO[0006] Individual API Response Time (ms): HTN HasEssential 449.4907 source=console
INFO[0007] Individual API Response Time (ms): HTN HasOsteo 480.4304 source=console
INFO[0007] Individual API Response Time (ms): HTN PriorBlood 479.7807 source=console
As you can see all the requests have low response time but since the iteration matches the data length, my report has multiple response time for the same data set.
How can I modify the second use case to have my report record the response time only once with the low response time?
Thanks in advance.