Skip to content

Commit 211b560

Browse files
Fix microservice level benchmark issue (#86)
* Fix microservice level benchmark issue Signed-off-by: lvliang-intel <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: lvliang-intel <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9ccb179 commit 211b560

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

evals/benchmark/benchmark.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ def create_and_save_run_yaml(example, deployment_type, service_type, service_nam
8787
for user_queries in test_suite_config["user_queries"]:
8888
concurrency = max(1, user_queries // test_suite_config["concurrent_level"])
8989

90-
bench_target = (
91-
f"{example}{'bench' if service_type == 'e2e' and test_suite_config['random_prompt'] else 'fixed'}"
92-
)
90+
if service_type == "e2e":
91+
bench_target = f"{example}{'bench' if test_suite_config['random_prompt'] else 'fixed'}"
92+
else:
93+
bench_target = f"{service_type}{'bench' if test_suite_config['random_prompt'] else 'fixed'}"
9394
run_yaml_content = create_run_yaml_content(
9495
service_name, base_url, bench_target, concurrency, user_queries, test_suite_config
9596
)

0 commit comments

Comments
 (0)