Usearch

Latest version: v2.16.6

Safety actively analyzes 688178 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 27

0.014386892318725586

0.013957023620605469

0.12478017807006836

0.11811184883117676

$ python python/scripts/bench_exact.py --ndim 256 --n 10_000 --q 100 --k 100 --half

0.08691692352294922

Even without hardware acceleration from [SimSIMD](https://github.com/ashvardanian/SimSIMD), on the M2 Mac Book Pro:

- USearch performs 3.3x faster than FAISS on single-precision `f32` vectors.
- USearch performs 6.1x faster than FAISS on half-precision `f16` vectors.

In some settings, the difference may reach 10x. Below are samples for the 13th Gen Intel Core i9-13950HX x86 CPU:

sh
$ python python/scripts/bench_exact.py --ndim 256 --n 100_000 --q 10 --k 100

0.7565422058105469

$ python python/scripts/bench_exact.py --ndim 256 --n 10_000 --q 10 --k 100 --half

Page 16 of 27

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.