mirror of
https://github.com/typesense/typesense.git
synced 2025-05-17 12:12:35 +08:00
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:
parent
a94a85193c
commit
6e9c6c69f5
@ -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)],
|
||||
];
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user