refactor(benchmark): adjust k6 scenario load testing parameters

- increase gap between test scenarios from 1s to 5s for better isolation
- update first virtual user stage from 10 to 50 for more realistic load
- rename scenario keys to reflect new 50vu configuration
This commit is contained in:
Fanis Tharropoulos 2025-01-17 14:37:43 +02:00
parent a94a85193c
commit 6e9c6c69f5
No known key found for this signature in database

@ -312,11 +312,11 @@ export const options: K6Options = {
scenarios: Object.fromEntries(
searchScenarios.flatMap((scenario, index) => {
const durationInSeconds = parseDuration(DURATION);
const gap = 1; // 1-second gap between scenarios
const startTime10vu = index * (durationInSeconds + gap) * 2;
const startTime100vu = startTime10vu + durationInSeconds + gap;
const gap = 5; // 5-second gap between scenarios
const startTime50vu = index * (durationInSeconds + gap) * 2;
const startTime100vu = startTime50vu + durationInSeconds + gap;
return [
[`${scenario.name}_10vu`, createScenarioConfig(scenario, 10, startTime10vu)],
[`${scenario.name}_50vu`, createScenarioConfig(scenario, 50, startTime50vu)],
[`${scenario.name}_100vu`, createScenarioConfig(scenario, 100, startTime100vu)],
];
}),