From 6e9c6c69f5370956c105561edd0e8ad0bb5d5bfd Mon Sep 17 00:00:00 2001 From: Fanis Tharropoulos Date: Fri, 17 Jan 2025 14:37:43 +0200 Subject: [PATCH] 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 --- benchmark/src/benchmarks/search.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/src/benchmarks/search.ts b/benchmark/src/benchmarks/search.ts index ee9881b5..b7a01820 100644 --- a/benchmark/src/benchmarks/search.ts +++ b/benchmark/src/benchmarks/search.ts @@ -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)], ]; }),