[k6] Use constant arrival rate 77/139677/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 5 Dec 2024 00:06:24 +0000 (00:06 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 5 Dec 2024 21:35:11 +0000 (21:35 +0000)
commit745386612b36f9aa33ed778887b0b5879f6598dd
tree35f19e0131f222a2cbba9234314da7983eab92cc
parent2dac434c92dfd20791eda9364783846a5da8c605
[k6] Use constant arrival rate

Currently, k6 KPI tests send requests using 'constant-vus' executor.
This continuously sends requests on different threads - as soon as
one request completes, another is sent. This leads to weird results
where improving performance of one operation ends up degrading other
test cases, due to more requests being sent per second.

This change makes KPI tests send requests at a constant rate,
making the mixed-load tests less prone to such anomalies.

- Send requests at constant rates for test cases 3, 4, 5, 6.
- Throughput tests 1, 2 & 7 still send at the fastest rate.
- Adjust expected performance timings.

Issue-ID: CPS-2519
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I641ead7d2d9d3b29116e1cf0d4bf8cd345b01a98
k6-tests/ncmp/common/utils.js
k6-tests/ncmp/config/kpi.json