Skip to content

Commit

Permalink
merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Jan 18, 2024
2 parents 7898eee + 607c160 commit 8476973
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions experiments/run-big-bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def compute_metrics(
QPS over all queries
"""
if type(index) in (flatnav.index.L2Index, flatnav.index.IPIndex):
print(f"searching with num-threads = {index.num_threads}")
is_flatnav_index = type(index) in (flatnav.index.L2Index, flatnav.index.IPIndex)
if is_flatnav_index:
start = time.time()
_, top_k_indices = index.search(
queries=queries, ef_search=ef_search, K=k, num_initializations=300
Expand Down Expand Up @@ -340,7 +340,6 @@ def parse_arguments() -> argparse.Namespace:

parser.add_argument(
"--index-type",
required=False,
default="flatnav",
help="Type of index to benchmark. Options include `flatnav` and `hnsw`.",
)
Expand All @@ -352,14 +351,12 @@ def parse_arguments() -> argparse.Namespace:
)
parser.add_argument(
"--hnsw-base-layer-filename",
required=False,
default=None,
help="Filename to save the HNSW base layer graph to. Please use the .mtx extension for clarity.",
)

parser.add_argument(
"--num-node-links",
required=False,
nargs="+",
type=int,
default=[16, 32],
Expand All @@ -368,7 +365,6 @@ def parse_arguments() -> argparse.Namespace:

parser.add_argument(
"--ef-construction",
required=False,
nargs="+",
type=int,
default=[100, 200, 300, 400, 500],
Expand All @@ -377,7 +373,6 @@ def parse_arguments() -> argparse.Namespace:

parser.add_argument(
"--ef-search",
required=False,
nargs="+",
type=int,
default=[100, 200, 300, 400, 500, 1000, 2000, 3000, 4000],
Expand Down

0 comments on commit 8476973

Please sign in to comment.