Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: min.tian <min.tian.cn@gmail.com>
  • Loading branch information
alwayslove2013 committed Jan 9, 2025
1 parent 300739b commit 5408c80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vectordb_bench/backend/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def assemble_all(
_ = k.init_cls

# sort by dataset size
for k, _ in db2runner:
for k in db2runner:
db2runner[k].sort(key=lambda x: x.ca.dataset.data.size)

all_runners = []
Expand Down
2 changes: 1 addition & 1 deletion vectordb_bench/backend/runner/mp_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _run_by_dur(self, duration: int) -> tuple[float, float]:

qps = round(all_success_count / cost, 4)
log.info(
f"End search in concurrency {conc}: dur={cost}s, failed_rate={failed_rate}"
f"End search in concurrency {conc}: dur={cost}s, failed_rate={failed_rate}, "
f"all_success_count={all_success_count}, all_failed_count={all_failed_count}, qps={qps}",
)
if qps > max_qps:
Expand Down
2 changes: 1 addition & 1 deletion vectordb_bench/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _clear_running_task(self):

def _run_async(self, conn: Connection) -> bool:
log.info(
f"task submitted: id={self.running_task.run_id}, {self.running_task.task_label}, ",
f"task submitted: id={self.running_task.run_id}, {self.running_task.task_label}, "
f"case number: {len(self.running_task.case_runners)}",
)
global global_result_future
Expand Down

0 comments on commit 5408c80

Please sign in to comment.