Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
miclegr committed Aug 2, 2024
1 parent 6d9f17e commit f793fbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion benchmarks/index_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class IndexCreationSuite:
params = (
[256],
[1024],
[voyager.Space.Euclidean, voyager.Space.Cosine],
[voyager.Space.Euclidean, voyager.Space.InnerProduct, voyager.Space.Cosine],
[voyager.StorageDataType.E4M3, voyager.StorageDataType.Float8, voyager.StorageDataType.Float32],
[24],
)
Expand All @@ -50,6 +50,7 @@ def setup(
ef_construction=ef_construction,
M=20,
storage_data_type=storage_data_type,
random_seed=4321,
)

self.input_data = input_data
Expand Down
7 changes: 4 additions & 3 deletions benchmarks/index_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class IndexQuerySuite:
repeat = (1, 10, 30.0)
params = (
[256],
[1024],
[voyager.Space.Euclidean, voyager.Space.Cosine],
[4096],
[voyager.Space.Euclidean, voyager.Space.InnerProduct, voyager.Space.Cosine],
[voyager.StorageDataType.E4M3, voyager.StorageDataType.Float8, voyager.StorageDataType.Float32],
[24],
)
Expand All @@ -54,8 +54,9 @@ def setup_cache(self) -> Dict:
ef_construction=ef_construction,
M=20,
storage_data_type=storage_data_type,
random_seed=4321,
)
index.add_items(input_data)
index.add_items(input_data, num_threads=1)

data[param_combination] = (index.as_bytes(), input_data)

Expand Down

0 comments on commit f793fbb

Please sign in to comment.