Skip to content

Commit

Permalink
test: adjust the load scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbas committed Oct 26, 2023
1 parent 61c82ab commit b36e0c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/load/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export function chat(baseUrl, stream = true) {
const latencyMetric = stream ? chatStreamLatency : chatNoStreamLatency;
latencyMetric.add(response.timings.duration, { type: 'API' });

sleep(between(5, 20));
sleep(between(5, 20)); // wait between 5 and 20 seconds between each user iteration
});
}
6 changes: 3 additions & 3 deletions tests/load/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export const thresholdsSettings = {
'http_req_duration{type:content}': ['p(99)<200'], // 99% of the content requests must complete below 200ms
};

// 5.00 iterations/s for 1m0s (maxVUs: 50-100, gracefulStop: 30s)
// 5.00 iterations/s for 1m0s (maxVUs: 100-200, gracefulStop: 30s)
export const standardWorkload = {
executor: 'constant-arrival-rate',
rate: 5,
timeUnit: '1s',
duration: '1m',
preAllocatedVUs: 50,
maxVUs: 100,
preAllocatedVUs: 100,
maxVUs: 200,
};

0 comments on commit b36e0c2

Please sign in to comment.