Skip to content

Commit

Permalink
Merge pull request #53 from unum-cloud/main-dev
Browse files Browse the repository at this point in the history
Replacing mutexes with concurrent bitset
  • Loading branch information
ashvardanian authored May 25, 2023
2 parents 75af659 + 1b18637 commit e528307
Show file tree
Hide file tree
Showing 11 changed files with 628 additions and 323 deletions.
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
},
{
"label": "MacOS Build C++ Bench Debug",
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_BUILD_TYPE=Debug -B ./build_debug && make bench -C ./build_debug",
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_BUILD_TYPE=Debug -B ./build_debug && make -C ./build_debug",
"args": [],
"type": "shell",
},
{
"label": "MacOS Build C++ Bench Release",
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo -B ./build_release && make bench -C ./build_release",
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo -B ./build_release && make -C ./build_release",
"args": [],
"type": "shell"
}
Expand Down
14 changes: 12 additions & 2 deletions docs/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,28 @@ Benchmarking:

```sh
pip install -e .
pytest python/test.py
pytest python/scripts/test.py
```

Benchmarking:

```sh
python python/bench.py \
pip install faiss-cpu
python python/scripts/bench.py \
--vectors datasets/wiki_1M/base.1M.fbin \
--queries datasets/wiki_1M/query.public.100K.fbin \
--neighbors datasets/wiki_1M/groundtruth.public.100K.ibin
```

> Optional parameters include `connectivity`, `expansion_add`, `expansion_search`.
Checking the effect of different embedding dimensions on construction speed:

```sh
python python/scripts/bench_params.py dimensions
python python/scripts/bench_params.py connectivity
```

## JavaScript

```sh
Expand Down
Loading

0 comments on commit e528307

Please sign in to comment.