From bbc547ad8de76398d625253a3b25d097b88fff48 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 26 Apr 2024 15:39:00 +0200 Subject: [PATCH] 2nd round of benchmark modifications (tiny adjustements to avoid overloading the host). (#1816) # What does this PR do? Fixes # (issue) ## Before submitting - [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case). - [ ] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#start-contributing-pull-requests), Pull Request section? - [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link to it if that's the case. - [ ] Did you make sure to update the documentation with your changes? Here are the [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation). - [ ] Did you write any new necessary tests? ## Who can review? Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR. --- load_tests/common.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/load_tests/common.js b/load_tests/common.js index 80728214..e0a10595 100644 --- a/load_tests/common.js +++ b/load_tests/common.js @@ -26,23 +26,23 @@ export function get_options() { // }], }, scenarios: { - single_user: { + // single_user: { + // executor: 'constant-arrival-rate', + // duration: '60s', + // preAllocatedVUs: 1, + // rate: 20, + // timeUnit: '1s', + // }, + load_test: { executor: 'constant-arrival-rate', duration: '60s', - preAllocatedVUs: 1, + preAllocatedVUs: 100, rate: 1, timeUnit: '1s', }, - // load_test: { - // executor: 'constant-arrival-rate', - // duration: '60s', - // preAllocatedVUs: 100, - // rate: 1, - // timeUnit: '1s', - // }, // breakpoint: { // executor: 'ramping-arrival-rate', //Assure load increase if the system slows - // preAllocatedVUs: 1000, + // preAllocatedVUs: 300, // stages: [ // { duration: '60s', target: 100 }, // just slowly ramp-up to a HUGE load // ],