Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix: cost time should be removed from the results of the serial_search #423

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions vectordb_bench/backend/task_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,16 @@ def _load_train_data(self):
finally:
runner = None

def _serial_search(self) -> tuple[float, float]:
def _serial_search(self) -> tuple[float, float, float]:
"""Performance serial tests, search the entire test data once,
calculate the recall, serial_latency_p99
Returns:
tuple[float, float]: recall, serial_latency_p99
"""
try:
return self.serial_search_runner.run()
results, _ = self.serial_search_runner.run()
return results
except Exception as e:
log.warning(f"search error: {str(e)}, {e}")
self.stop()
Expand Down
Loading