Skip to content

Commit 82d4aeb

Browse files
committed
fix: qps calculation
1 parent 263fa28 commit 82d4aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/sift1m-ivf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main(args):
7777
t0 = time.time()
7878
all_results = index.search_batch(queries.tolist(), K)
7979
t_search = time.time() - t0
80-
qps = len(queries[0]) / t_search
80+
qps = len(queries) / t_search
8181

8282
# collect indices into numpy array
8383
results = np.zeros((len(all_results), K), dtype=np.int64)

0 commit comments

Comments
 (0)