Blog IOAI

USearch: 10x - 100x Faster than Meta's FAISS

Scaling Retrieval Augmented Generation with the USearch vector search engine on Intel Sapphire Rapids CPUs on Gcore, outperforming Meta's FAISS library by 10x - 100x on a scale of 100M to 1B vectors.

By
Ash Vardanian
Published
Nov 7, 2023

In 2023, the use of AI in daily applications grew, with OpenAI’s ChatGPT being a key example. This trend highlights ongoing efforts to build stable AI infrastructure, expected to support many future AI applications.

Disclaimer: We’ve recorded performance gains over 1’000x in some workloads. This comes as a surprise, even after we’ve previously accelerated similarity metrics down to the Assembly level, achieving 2’500x speed gains over Python and 15x over C. So we’ve repeated the benchmarks several times but got the same results. Those benchmarks are open-source, and we encourage everyone to replicate them. Those versed in Vector Search and HNSW can skip the introductory details.

Technologies like Vector Search, Vector Stores, and “Retrieval Augmentation” lie at the core of this growth. Simply, these tools aid conversational AI by fetching information from external sources. For instance, ChatGPT integrates with Microsoft Bing to gather up-to-date data from the Internet. At the same time, most commercial database products also provide search functionality. That way, a “Retrieval Augmented Product” can simultaneously query both private and public datasets, providing reasonable context for a Large Language Models (LLMs) drastically increasing their accuracy and business value.

Fig. 1A retrieval-augmented product searches before the model answers

Retrieval-augmented generation: before the language model sees a request, the product searches private and public data for context.

Recognizing the importance of this and other search applications, we’ve partnered with Intel and Gcore, a global Cloud and CDN, with over 150 points of presence and 25 cloud regions, to benchmark Unum’s open-source USearch against Meta’s FAISS, the most common Vector Search engine with over 1.5 million monthly downloads. By optimizing USearch for Intel Sapphire Rapids, we provide:

  • a free upgrade path for FAISS users and
  • efficiency gains for existing users, including databases like ClickHouse and countless AI applications written in C, C++, Python, JavaScript, Rust, GoLang, Java, C#, Objective-C, Swift, and other languages.

§ Vector Search Technology

“Vector Search” is a specialized “Search” technology designed to determine if an object or similar ones exist in a dataset. In Vector Search, these objects are vectors, a concept familiar to many from high school math. To determine if two vectors are alike or close, we measure the distance between them:

  1. L2 (Euclidean) distance measures proximity.
  2. Cosine (Angular) distance compares the direction.

A direct approach would involve measuring these distances between every pair in our dataset. However, this becomes resource-intensive when examining billions of vectors.


The beauty of Vector Search is its efficiency. It compares only a tiny fraction of entries — perhaps 0.0001% — but can still pinpoint the “K” nearest objects with 90% to 99% accuracy. This efficiency is achieved using structures for “K Approximate Nearest Neighbors Search” (KANN). With some added metadata, these structures enable more efficient navigation through the dataset.

Fig. 2Each layer of the graph narrows the search for the next

A search enters the sparse top layer, greedily hops toward the query, then drops a layer and repeats until it settles on the nearest neighbor in the full bottom layer.

Sources: Malkov & Yashunin, 2016

Traditional KANN methods included K-Dimensional Trees (KDT) and Locality Sensitive Hashing (LSH). Today, the preferred approach is based on various “Small World” proximity graphs, with the Hierarchical Navigable Small World Graphs (HNSW) from 2016 being widely used. It offers advantages over KDT and LSH:

  • More flexibility in non-vector representations for any similarity search.
  • Stable construction even when data changes.

Both FAISS and USearch are implementing the HNSW structure. This framework can be combined with other methods for enhanced results. Today, we’ll delve into the main features of this data structure. While both tools are developed in C++ with Python interfaces, they have different attributes:

FAISSUSearch
Implementation84 K lines of code3 K lines of code
Supported metrics9 metricsuser-defined metrics
Supported languagesC++, PythonC++, Python, JS, Rust, C#, Swift, etc.
DependenciesBLAS, OpenMPNone

FAISS and USearch are openly available on GitHub, encouraging developers to learn, modify, and enhance Vector Search technology. For benchmarks, the most recent “1.7.4” version of FAISS was used, complemented by the most recent Math Kernels Library.

conda install -c pytorch faiss-cpu=1.7.4 mkl=2021 blas=1.0=mkl

§ Benchmark Results

Benchmarking plays a crucial role in assessing the efficiency of Vector Search systems.

  • A notable tool in this field is “ann-benchmarks”. While valuable, it primarily suits smaller datasets and functions in a single-threaded mode. This doesn’t fully reflect the usual deployment scenarios of these systems.
  • For broader search benchmarks, “big-ann-benchmarks” stands out. However, their recent trend leans towards handling datasets in the tens of millions rather than a billion, to promote more participation.

Our emphasis remains on addressing large-scale enterprise needs. Surprisingly, benchmarking in this area can be pretty straightforward. Even synthetic data can be handled with just a few lines of Python code:

$ pip install numpy usearch

import numpy as np                              # for random vector generation
from usearch.index import Index                 # also: MetricKind, Matches, BatchMatches

index = Index(ndim=1536)                        # optionally pass metric, dtype, connectivity...
keys = np.arange(100_000_000)                   # keys are optional, typically: {0, 1, 2, ...}
vectors = np.random.rand(100_000_000, 1536)     # for double-precision OpenAI-like 1536d vectors
index.add(keys, vectors)                        # will take a few minutes ;)

This code creates 100 million vectors, each with 1536 dimensions, akin to the OpenAI Ada offering. When converted to single-precision vectors, this amounts to a data size of 600 Gigabytes. While this might seem extensive, it’s manageable for our equipment:

  • Dual Intel Xeon 8480+ Platinum CPUs with 56 cores, totaling 224 vCPUs.
  • 1 TB DDR5 memory distributed across 16 channels with a 4.8 GHz clock speed.

This, however, is very far from how much further the Sapphire Rapids platform can scale. Using the higher-end Xeon Platinum 8490H, one can connect up to 4 TB of RAM per socket and 32 TB per node. It is enough to scale to over 200 billion vectors on 1 machine, as will be described in our future articles.

§ Dataset and Settings

For an in-depth analysis, our benchmarks employed the Deep1B dataset, introduced at the CVPR 2016 conference. This dataset encompasses 1 billion 96-dimensional image representations produced by the GoogLeNet AI model.

  • Insertions were performed in batches of 100,000 vectors.
  • Searches were performed for 10,000 vectors, with the top 1 result returned.
  • Search results were compared against the precomputed ground-truth set.
  • Close to default connectivity was used for both implementations to align recall curves.

Our evaluations spanned three configurations: full 32-bit floating-point precision, 16-bit half-precision, and an 8-bit integer quantized variant. Little-known, FAISS also supports those two latter modes, but they’re not widely known due to poor documentation.

import faiss

index = faiss.IndexHNSWFlat(96, connectivity)                                   # full 32-bit floating-point precision
index = faiss.IndexHNSWSQ(96, faiss.ScalarQuantizer.QT_fp16, connectivity)      # 16-bit half-precision
index = faiss.IndexHNSWSQ(96, faiss.ScalarQuantizer.QT_8bit, connectivity)      # 8-bit integer quantized

§ Analyzing the Initial 100 Million Vectors

We examined the first 100 million vectors from the 1 billion dataset. Interestingly, FAISS showed a notable reduction in indexing speed as the dataset grew.

Fig. 3FAISS indexing slows past 5 M vectors

Indexing speed vectors per second

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
0100K200K300K20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K124K133K135K260K219K162K
1M120K129K132K165K214K189K
1.5M117K126K130K145K165K164K
2M114K124K127K129K139K135K
2.5M113K123K125K120K128K119K
3M113K123K125K108K117K109K
3.5M112K122K125K100K109K102K
4M110K119K122K95.8K102K94.6K
4.5M109K119K121K90.0K96.1K87.5K
5M111K121K123K87.8K96.3K84.4K
5.5M110K120K123K83.7K92.6K81.5K
6M110K120K123K79.9K89.2K78.2K
6.5M109K120K123K71.4K79.7K73.2K
7M109K120K122K67.8K73.2K70.2K
7.5M109K120K122K67.7K71.8K67.0K
8M105K116K118K64.9K69.3K63.9K
8.5M105K116K116K64.5K68.5K63.7K
9M109K120K119K62.8K66.2K61.9K
9.5M108K120K119K60.7K63.7K59.8K
10M109K120K119K58.9K61.9K57.9K
10.5M108K120K119K57.1K60.2K56.3K
11M108K120K119K55.5K58.2K54.7K
11.5M108K120K119K53.9K56.6K53.1K
12M108K119K119K52.4K54.9K51.8K
12.5M108K119K119K48.1K51.0K49.0K
13M108K119K119K45.5K49.2K47.7K
13.5M108K119K118K46.4K50.1K47.8K
14M108K119K118K46.1K49.4K46.6K
14.5M108K119K119K45.3K48.8K45.5K
15M107K119K119K44.5K48.5K44.5K
15.5M107K119K118K42.2K45.7K42.1K
16M107K119K118K41.2K44.3K41.0K
16.5M102K113K113K41.5K44.2K41.0K
17M101K113K112K40.4K42.9K40.2K
17.5M105K117K118K39.8K42.6K39.9K
18M105K117K118K39.2K42.3K39.1K
18.5M105K117K118K38.4K41.6K38.2K
19M105K117K118K37.7K40.7K37.5K
19.5M105K118K118K37.0K39.6K36.9K
20M105K118K118K36.3K38.7K36.1K
20.5M105K117K118K35.7K38.4K35.5K
21M105K117K118K35.2K37.6K34.8K
21.5M105K117K118K34.6K36.9K34.1K
22M105K117K118K34.0K36.4K33.6K
22.5M105K117K118K33.5K35.7K33.1K
23M105K117K118K33.0K35.0K32.6K
23.5M105K117K118K32.5K34.3K32.1K
24M105K117K118K32.0K33.8K31.6K
24.5M105K117K118K31.5K32.9K31.1K
25M105K117K118K31.0K32.5K30.6K
25.5M105K118K118K28.3K30.5K29.1K
26M105K117K118K27.2K29.3K28.6K
26.5M104K117K118K28.4K30.1K29.2K
27M104K117K118K28.3K29.7K28.9K
27.5M104K117K118K28.1K29.3K28.5K
28M104K117K118K27.9K29.1K28.0K
28.5M105K117K118K27.7K28.8K27.7K
29M104K117K118K27.3K28.1K27.4K
29.5M104K117K118K27.0K27.3K27.0K
30M104K117K118K26.7K27.1K26.7K
30.5M104K117K118K26.3K27.0K26.4K
31M104K118K118K26.1K26.7K26.1K
31.5M104K117K118K24.7K25.3K24.8K
32M104K117K118K24.2K25.1K24.5K
32.5M104K118K118K24.8K24.3K25.2K
33M104K118K118K24.4K21.6K24.9K
33.5M96.9K108K109K20.2K18.1K20.3K
34M95.6K106K106K15.3K15.1K15.0K
34.5M101K112K113K14.3K14.6K14.0K
35M101K113K112K14.1K14.3K13.8K
35.5M101K113K112K13.9K14.1K13.6K
36M101K113K113K13.7K14.0K13.4K
36.5M101K112K113K13.4K13.8K13.2K
37M101K113K113K13.2K13.5K13.0K
37.5M101K113K113K13.1K13.4K12.9K
38M101K113K112K13.0K13.2K12.7K
38.5M101K113K112K12.8K13.1K12.5K
39M101K113K113K12.7K12.9K12.4K
39.5M101K113K112K12.5K12.8K12.2K
40M101K113K112K12.4K12.6K12.1K
40.5M101K113K112K12.3K12.4K12.0K
41M101K113K112K12.0K12.3K11.9K
41.5M101K113K113K11.9K12.3K11.7K
42M101K113K112K11.9K12.1K11.6K
42.5M102K113K112K11.7K12.0K11.6K
43M101K113K113K11.6K11.8K11.4K
43.5M101K113K113K11.5K11.7K11.3K
44M102K113K113K11.5K11.6K11.1K
44.5M101K113K113K11.4K11.4K10.9K
45M101K113K113K11.3K11.3K10.8K
45.5M101K113K113K11.2K11.2K10.7K
46M101K113K113K11.1K11.1K10.6K
46.5M101K113K113K10.9K11.0K10.5K
47M101K113K113K10.8K10.9K10.4K
47.5M101K113K113K10.8K10.8K10.4K
48M101K113K113K10.5K10.7K10.4K
48.5M101K113K113K10.3K10.6K10.4K
49M101K113K113K10.2K10.5K10.3K
49.5M101K113K113K10.1K10.3K10.2K
50M101K113K113K9.95K10.2K10.0K
50.5M101K113K114K9.83K10.1K9.94K
51M101K113K114K9.22K9.67K9.65K
51.5M101K113K113K9.01K9.55K9.47K
52M101K113K113K9.37K9.78K9.58K
52.5M101K113K113K9.32K9.68K9.55K
53M101K113K114K9.27K9.65K9.48K
53.5M101K113K113K9.20K9.56K9.38K
54M101K113K114K9.13K9.45K9.33K
54.5M102K113K114K9.09K9.39K9.25K
55M102K113K114K9.01K9.29K9.16K
55.5M102K113K113K8.92K9.20K9.10K
56M102K113K114K8.88K9.15K9.05K
56.5M102K113K114K8.82K9.09K9.00K
57M101K113K114K8.73K9.00K8.93K
57.5M101K113K114K8.67K8.91K8.85K
58M101K113K114K8.62K8.83K8.79K
58.5M102K113K114K8.49K8.77K8.76K
59M102K113K114K8.41K8.74K8.72K
59.5M102K113K114K8.43K8.68K8.64K
60M102K113K114K8.38K8.60K8.51K
60.5M102K112K114K8.28K8.49K8.43K
61M102K112K114K8.18K8.43K8.43K
61.5M102K112K114K8.14K8.42K8.37K
62M102K112K114K8.11K8.33K8.27K
62.5M102K112K114K8.06K8.25K8.19K
63M102K112K114K7.80K7.99K7.89K
63.5M102K112K114K7.74K8.01K7.80K
64M102K112K114K7.94K8.22K7.98K
64.5M102K112K114K7.90K8.16K7.97K
65M102K112K114K7.87K8.12K7.92K
65.5M102K112K114K7.85K8.04K7.88K
66M102K112K114K7.76K7.99K7.81K
66.5M102K112K114K7.67K7.96K7.72K
67M93.0K102K104K7.57K7.86K7.66K
67.5M90.0K99.4K102K7.54K7.77K7.62K
68M96.1K106K109K7.55K7.76K7.60K
68.5M96.2K106K109K7.50K7.72K7.54K
69M96.8K107K109K7.44K7.69K7.51K
69.5M97.5K107K109K7.39K7.64K7.47K
70M97.7K108K110K7.35K7.59K7.41K
70.5M97.4K108K111K7.30K7.51K7.32K
71M97.2K108K110K7.25K7.43K7.25K
71.5M96.7K108K109K7.23K7.39K7.18K
72M96.5K107K109K7.20K7.35K7.13K
72.5M96.6K107K109K7.11K7.28K7.12K
73M96.7K107K109K7.04K7.22K7.07K
73.5M97.3K107K110K7.00K7.17K7.01K
74M97.1K108K109K6.92K7.04K6.97K
74.5M97.1K108K108K6.89K7.03K6.91K
75M97.0K107K109K6.87K7.06K6.87K
75.5M97.0K107K110K6.83K7.05K6.83K
76M97.0K107K110K6.81K7.07K6.79K
76.5M97.2K107K110K6.73K7.01K6.77K
77M98.0K108K110K6.65K6.94K6.76K
77.5M97.6K108K109K6.66K6.89K6.71K
78M97.1K108K109K6.66K6.86K6.63K
78.5M97.2K108K110K6.59K6.80K6.58K
79M97.4K108K110K6.52K6.73K6.55K
79.5M97.4K108K110K6.48K6.69K6.54K
80M97.5K108K110K6.45K6.66K6.52K
80.5M97.5K108K110K6.42K6.64K6.48K
81M97.5K107K110K6.39K6.58K6.47K
81.5M97.8K108K110K6.36K6.51K6.45K
82M97.8K108K110K6.31K6.48K6.40K
82.5M97.5K108K110K6.24K6.45K6.36K
83M97.7K109K110K6.22K6.46K6.35K
83.5M98.0K108K110K6.19K6.46K6.31K
84M97.7K108K111K6.17K6.39K6.23K
84.5M97.4K108K111K6.19K6.36K6.16K
85M97.6K108K110K6.17K6.33K6.13K
85.5M98.0K108K110K6.15K6.30K6.11K
86M97.9K108K110K6.13K6.26K6.09K
86.5M97.7K108K110K6.09K6.21K6.06K
87M98.0K108K110K6.08K6.17K6.03K
87.5M98.4K108K110K6.07K6.14K6.00K
88M98.3K108K110K6.10K6.07K5.97K
88.5M97.8K109K110K6.12K6.03K5.95K
89M97.7K109K110K6.08K6.01K5.95K
89.5M98.1K109K111K6.02K5.99K5.93K
90M98.0K109K111K5.99K5.98K5.88K
90.5M97.5K108K111K5.97K5.95K5.83K
91M97.5K108K110K5.95K5.90K5.80K
91.5M98.1K108K110K5.92K5.87K5.77K
92M98.1K108K110K5.85K5.87K5.73K
92.5M97.9K108K111K5.79K5.84K5.69K
93M98.2K108K111K5.77K5.82K5.65K
93.5M98.3K108K111K5.75K5.78K5.61K
94M97.9K108K111K5.74K5.73K5.58K
94.5M97.7K109K111K5.72K5.69K5.54K
95M97.9K109K111K5.62K5.66K5.50K
95.5M98.2K109K111K5.55K5.63K5.47K
96M98.2K109K111K5.58K5.59K5.46K
96.5M97.9K109K111K5.57K5.58K5.43K
97M97.9K109K111K5.54K5.56K5.41K
97.5M98.1K109K111K5.51K5.52K5.40K
98M98.3K109K111K5.49K5.49K5.37K
98.5M98.3K109K111K5.47K5.45K5.34K
99M97.9K109K111K5.47K5.44K5.32K
99.5M98.0K109K111K5.44K5.43K5.30K
100M98.0K109K111K5.43K5.42K5.29K

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

Fig. 4USearch searches 189x faster at 100 M

Search speed queries per second, log scale

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
1001K10K100K1M20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K117K119K114K368K506K404K
1M121K123K115K203K460K394K
1.5M125K125K119K194K346K302K
2M126K127K121K197K297K253K
2.5M128K128K125K181K265K214K
3M127K132K129K168K227K188K
3.5M127K135K130K154K214K180K
4M127K136K128K145K192K168K
4.5M125K135K125K135K164K152K
5M120K134K122K130K176K142K
5.5M119K134K123K128K173K140K
6M120K135K124K122K164K137K
6.5M119K136K124K116K161K131K
7M120K136K124K110K156K126K
7.5M120K134K124K108K152K122K
8M119K134K125K105K143K118K
8.5M120K133K131K102K136K114K
9M120K134K137K98.4K131K110K
9.5M119K137K138K95.4K124K104K
10M122K137K138K91.6K124K101K
10.5M121K137K137K88.9K121K101K
11M120K137K137K87.0K118K98.0K
11.5M123K137K138K84.2K114K92.6K
12M122K137K138K81.0K109K90.1K
12.5M121K137K137K78.5K108K90.0K
13M120K137K137K74.6K108K87.6K
13.5M119K135K139K72.4K106K84.9K
14M117K134K140K72.9K97.5K83.1K
14.5M118K136K139K71.8K87.9K82.2K
15M120K138K139K70.8K90.6K79.3K
15.5M121K138K139K68.9K94.6K77.6K
16M121K132K139K67.5K91.2K77.2K
16.5M121K133K137K66.3K87.6K74.9K
17M125K138K133K64.9K86.6K73.3K
17.5M129K139K128K63.7K87.4K72.4K
18M129K139K125K62.1K87.8K71.0K
18.5M129K138K126K60.9K85.9K69.6K
19M129K139K128K60.1K83.6K68.1K
19.5M127K139K127K59.4K82.0K66.4K
20M136K138K131K59.0K78.9K65.5K
20.5M136K138K132K59.2K78.3K64.4K
21M127K138K128K58.9K78.9K62.5K
21.5M130K139K127K58.2K80.4K61.6K
22M130K139K128K57.2K81.4K61.8K
22.5M132K139K128K57.2K78.2K60.7K
23M132K139K128K57.6K78.4K59.9K
23.5M129K139K127K56.9K77.1K60.3K
24M128K139K128K55.2K71.6K59.3K
24.5M127K140K129K55.9K68.8K59.1K
25M127K138K129K58.4K70.5K59.7K
25.5M129K139K129K56.4K71.0K58.0K
26M129K139K130K54.0K67.1K57.0K
26.5M129K139K130K54.4K63.2K57.4K
27M128K139K129K53.6K61.6K56.9K
27.5M128K139K129K54.4K61.0K56.7K
28M129K140K130K56.7K61.0K56.7K
28.5M129K140K130K55.3K61.7K55.2K
29M130K139K130K55.6K61.3K54.4K
29.5M130K138K130K55.8K60.4K54.9K
30M130K139K130K55.1K58.8K53.6K
30.5M141K138K129K55.4K56.0K53.2K
31M152K137K126K53.5K54.6K56.6K
31.5M140K138K126K49.3K55.7K58.9K
32M129K160K129K46.4K57.0K59.2K
32.5M129K162K130K46.1K56.5K59.3K
33M129K140K128K45.6K55.9K58.4K
33.5M129K139K130K28.0K34.0K34.7K
34M127K140K133K6.35K7.23K6.69K
34.5M124K140K131K1.99K1.97K1.88K
35M125K139K131K1.96K1.94K1.86K
35.5M125K140K131K1.93K1.91K1.83K
36M125K138K130K1.91K1.88K1.81K
36.5M126K139K130K1.88K1.85K1.79K
37M125K139K131K1.85K1.80K1.77K
37.5M125K139K131K1.83K1.78K1.75K
38M124K141K130K1.81K1.78K1.73K
38.5M123K141K150K1.78K1.77K1.71K
39M124K140K150K1.76K1.75K1.69K
39.5M123K139K131K1.74K1.73K1.67K
40M122K141K131K1.72K1.70K1.65K
40.5M123K141K131K1.70K1.69K1.63K
41M129K141K131K1.68K1.67K1.61K
41.5M130K140K131K1.65K1.65K1.59K
42M124K139K131K1.64K1.62K1.57K
42.5M124K138K132K1.64K1.60K1.56K
43M124K135K131K1.65K1.58K1.54K
43.5M126K134K131K1.62K1.57K1.52K
44M126K139K130K1.60K1.55K1.50K
44.5M124K139K129K1.59K1.54K1.47K
45M123K140K132K1.58K1.53K1.46K
45.5M122K141K127K1.56K1.52K1.45K
46M125K140K128K1.54K1.50K1.43K
46.5M126K139K133K1.52K1.49K1.43K
47M125K139K132K1.51K1.47K1.43K
47.5M125K140K133K1.49K1.46K1.44K
48M126K140K132K1.45K1.44K1.44K
48.5M125K140K132K1.39K1.42K1.44K
49M121K140K133K1.36K1.40K1.43K
49.5M123K140K132K1.33K1.38K1.42K
50M123K141K133K1.31K1.37K1.41K
50.5M120K141K133K1.30K1.36K1.39K
51M120K140K132K1.29K1.35K1.37K
51.5M122K143K131K1.27K1.34K1.34K
52M124K144K132K1.25K1.33K1.32K
52.5M124K140K132K1.26K1.32K1.31K
53M123K138K131K1.26K1.30K1.30K
53.5M119K139K131K1.25K1.28K1.30K
54M120K140K132K1.24K1.27K1.29K
54.5M134K139K132K1.23K1.26K1.28K
55M137K139K132K1.22K1.25K1.27K
55.5M126K140K132K1.21K1.24K1.26K
56M124K139K132K1.19K1.23K1.25K
56.5M126K138K133K1.17K1.22K1.24K
57M130K139K133K1.15K1.21K1.23K
57.5M143K140K132K1.14K1.20K1.22K
58M141K140K132K1.13K1.19K1.21K
58.5M135K139K132K1.12K1.17K1.20K
59M139K138K132K1.11K1.17K1.19K
59.5M136K139K133K1.11K1.16K1.17K
60M144K136K134K1.09K1.15K1.15K
60.5M141K134K134K1.08K1.14K1.14K
61M129K137K133K1.07K1.13K1.14K
61.5M134K138K132K1.08K1.12K1.14K
62M140K139K132K1.01K1.04K1.07K
62.5M129K145K127K911940966
63M121K144K127K891923933
63.5M121K139K133K891932914
64M121K140K132K887932902
64.5M123K141K132K879924893
65M131K139K133K873918885
65.5M131K139K132K867912879
66M123K135K133K855906871
66.5M127K135K133K841901865
67M126K140K151K833895864
67.5M117K140K150K828889861
68M117K141K131K825884856
68.5M117K142K131K820879850
69M117K143K132K817873846
69.5M117K161K129K813868841
70M115K160K129K812858830
70.5M115K139K132K816845812
71M116K139K131K817836801
71.5M116K142K131K813830794
72M115K141K131K805822792
72.5M127K142K132K790810789
73M126K142K132K775800779
73.5M116K142K139K766793780
74M117K141K139K758793781
74.5M117K142K131K752806778
75M117K142K130K748814775
75.5M115K142K131K744809769
76M113K142K133K741803764
76.5M114K141K133K738790760
77M126K141K132K735780755
77.5M126K142K132K732776742
78M114K160K132K723770729
78.5M115K159K132K711763723
79M115K141K132K703757722
79.5M114K141K132K699754726
80M115K140K135K694749726
80.5M116K141K135K691747724
81M115K141K143K689745724
81.5M115K142K144K686740721
82M124K142K133K681734717
82.5M121K141K151K682733711
83M112K141K148K685734706
83.5M115K142K130K686731703
84M117K142K132K684723690
84.5M117K160K130K681718678
85M115K159K130K677714675
85.5M112K141K132K675708674
86M113K142K133K673704674
86.5M115K141K134K670699676
87M114K141K132K667694674
87.5M113K142K132K673690671
88M114K142K133K683688668
88.5M115K157K133K687684665
89M114K156K133K682679661
89.5M114K141K131K675677657
90M115K142K133K674673651
90.5M126K142K135K672669645
91M126K140K135K667659641
91.5M115K139K152K663654637
92M115K140K151K661656633
92.5M115K139K134K655651628
93M116K139K134K649648623
93.5M117K140K129K648645618
94M116K140K129K646641615
94.5M115K141K133K644637614
95M115K140K134K631633610
95.5M115K141K134K619629607
96M115K145K147K618625605
96.5M131K146K148K616623602
97M131K145K137K614621599
97.5M115K146K136K612617596
98M115K145K133K610614591
98.5M126K147K147K611610588
99M124K145K148K613607587
99.5M113K145K134K614603585
100M113K145K134K613602584

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

While FAISS started with quick indexing for the early millions of entries, its performance started to taper beyond the 5 million mark. In comparison, USearch maintained consistent performance. By the time both tools reached 100 million entries:

  • FAISS was indexing at ~5,500 vectors per second.
  • USearch achieved ~105,000 vectors per second, resulting in a 19x speed advantage.

Consistent with its indexing trend, FAISS’s search performance decreased, with a noticeable dip around the 35 million entry point. By 100 million entries:

  • FAISS was searching at ~600 vectors per second.
  • USearch was searching at ~115,000 vectors per second, marking a 189x speed advantage.

Interestingly, there have been observations of FAISS’s diminishing performance with larger datasets. For instance, increasing the input size by a factor of two could lead to a slowdown of over 30x:

  • 10 million entries took 0.63 seconds for search queries.
  • 20 million entries took 1.87 seconds.
  • 40 million entries took over 60 seconds.

Our analysis closely tracked vital metrics such as memory usage and insertion times. Ensuring our faster speeds did not compromise search quality or increase memory consumption was essential.

Fig. 5Both engines keep comparable recall

Top-1 recall percent

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
90%95%100%20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K99.8%99.9%99.8%99.9%99.9%99.8%
1M99.7%99.7%99.7%99.7%99.7%99.7%
1.5M99.6%99.5%99.4%99.6%99.6%99.6%
2M99.4%99.4%99.3%99.5%99.4%99.4%
2.5M99.3%99.3%99.1%99.4%99.3%99.3%
3M99.2%99.2%99.0%99.2%99.1%99.1%
3.5M99.1%99.0%98.8%99.1%99.0%99.0%
4M98.9%98.9%98.7%99.0%99.0%99.0%
4.5M98.8%98.8%98.7%98.9%98.9%98.8%
5M98.6%98.6%98.5%98.8%98.8%98.8%
5.5M98.5%98.5%98.4%98.7%98.8%98.7%
6M98.4%98.4%98.3%98.5%98.7%98.6%
6.5M98.3%98.3%98.3%98.4%98.5%98.5%
7M98.2%98.2%98.3%98.3%98.4%98.4%
7.5M98.2%98.1%98.2%98.2%98.3%98.3%
8M98.1%98.0%98.1%98.1%98.2%98.2%
8.5M98.0%98.0%98.0%98.0%98.1%98.1%
9M97.8%97.9%97.8%97.9%98.0%98.1%
9.5M97.7%97.8%97.7%97.7%98.0%98.0%
10M97.6%97.8%97.6%97.7%98.0%98.0%
10.5M97.5%97.7%97.6%97.6%98.0%98.0%
11M97.4%97.6%97.5%97.5%97.9%97.9%
11.5M97.3%97.5%97.5%97.4%97.8%97.9%
12M97.3%97.5%97.3%97.3%97.7%97.8%
12.5M97.2%97.4%97.3%97.3%97.7%97.7%
13M97.2%97.4%97.2%97.2%97.7%97.6%
13.5M97.1%97.3%97.1%97.2%97.6%97.6%
14M97.0%97.3%96.9%97.1%97.6%97.5%
14.5M97.0%97.2%96.9%97.0%97.5%97.4%
15M97.0%97.1%96.9%96.8%97.5%97.3%
15.5M96.9%97.0%96.9%96.7%97.4%97.3%
16M96.8%96.9%96.9%96.7%97.3%97.3%
16.5M96.7%96.9%96.8%96.7%97.2%97.2%
17M96.8%96.9%96.8%96.6%97.1%97.2%
17.5M96.8%96.9%96.6%96.5%97.1%97.1%
18M96.7%96.8%96.5%96.3%97.0%97.1%
18.5M96.6%96.7%96.4%96.3%96.9%97.0%
19M96.6%96.6%96.3%96.2%96.8%97.0%
19.5M96.5%96.5%96.2%96.3%96.8%96.9%
20M96.5%96.5%96.2%96.3%96.8%96.8%
20.5M96.4%96.5%96.2%96.3%96.9%96.7%
21M96.3%96.5%96.2%96.3%96.9%96.6%
21.5M96.3%96.4%96.0%96.2%96.8%96.5%
22M96.2%96.3%96.0%96.2%96.8%96.5%
22.5M96.2%96.3%96.0%96.2%96.8%96.5%
23M96.1%96.2%95.9%96.1%96.7%96.5%
23.5M96.1%96.1%95.8%96.0%96.7%96.4%
24M96.1%96.0%95.8%96.0%96.6%96.4%
24.5M96.0%95.9%95.7%95.9%96.6%96.3%
25M95.9%95.9%95.7%95.8%96.5%96.3%
25.5M95.8%95.8%95.6%95.8%96.5%96.3%
26M95.8%95.8%95.6%95.6%96.4%96.3%
26.5M95.8%95.8%95.5%95.6%96.4%96.2%
27M95.8%95.8%95.4%95.6%96.4%96.3%
27.5M95.8%95.8%95.3%95.6%96.4%96.3%
28M95.7%95.8%95.3%95.6%96.4%96.2%
28.5M95.7%95.8%95.3%95.5%96.3%96.1%
29M95.6%95.7%95.3%95.5%96.2%96.0%
29.5M95.6%95.6%95.3%95.4%96.2%95.9%
30M95.5%95.5%95.3%95.3%96.1%95.9%
30.5M95.4%95.5%95.2%95.2%96.0%95.8%
31M95.3%95.5%95.2%95.1%96.0%95.8%
31.5M95.3%95.4%95.2%95.1%96.0%95.7%
32M95.3%95.4%95.1%95.1%95.9%95.7%
32.5M95.3%95.4%95.1%95.1%95.9%95.6%
33M95.3%95.3%95.0%95.0%95.8%95.6%
33.5M95.3%95.3%95.0%95.0%95.8%95.6%
34M95.3%95.3%94.9%94.9%95.8%95.5%
34.5M95.3%95.3%94.9%94.9%95.7%95.5%
35M95.2%95.3%94.9%94.9%95.6%95.4%
35.5M95.2%95.2%94.8%94.8%95.6%95.4%
36M95.2%95.2%94.8%94.7%95.5%95.4%
36.5M95.2%95.2%94.8%94.7%95.5%95.4%
37M95.1%95.1%94.8%94.7%95.5%95.4%
37.5M95.1%95.0%94.8%94.5%95.5%95.4%
38M95.0%95.0%94.7%94.4%95.4%95.3%
38.5M95.0%95.0%94.7%94.3%95.4%95.3%
39M94.9%95.0%94.7%94.3%95.4%95.2%
39.5M94.9%95.0%94.7%94.3%95.3%95.2%
40M94.8%94.9%94.7%94.3%95.4%95.2%
40.5M94.8%94.8%94.7%94.3%95.4%95.2%
41M94.8%94.8%94.6%94.3%95.3%95.1%
41.5M94.8%94.8%94.5%94.2%95.3%95.1%
42M94.8%94.8%94.4%94.2%95.3%95.1%
42.5M94.8%94.8%94.4%94.2%95.2%95.1%
43M94.8%94.7%94.4%94.2%95.2%95.1%
43.5M94.8%94.6%94.4%94.2%95.2%95.2%
44M94.8%94.5%94.3%94.1%95.2%95.2%
44.5M94.7%94.5%94.3%94.1%95.2%95.2%
45M94.7%94.5%94.3%94.1%95.1%95.2%
45.5M94.7%94.5%94.3%94.1%95.1%95.2%
46M94.7%94.5%94.3%94.1%95.1%95.1%
46.5M94.7%94.4%94.3%94.1%95.2%95.1%
47M94.6%94.3%94.3%94.0%95.1%95.1%
47.5M94.6%94.3%94.3%93.9%95.1%95.1%
48M94.5%94.3%94.2%93.9%95.0%95.0%
48.5M94.5%94.3%94.2%94.0%95.0%94.9%
49M94.5%94.2%94.2%94.0%94.9%94.9%
49.5M94.5%94.2%94.1%93.9%94.9%94.8%
50M94.5%94.3%94.0%93.9%94.9%94.8%
50.5M94.4%94.3%94.0%93.9%95.0%94.8%
51M94.4%94.3%93.9%94.0%94.9%94.8%
51.5M94.3%94.3%93.8%94.0%95.0%94.8%
52M94.2%94.3%93.8%94.0%95.0%94.9%
52.5M94.2%94.3%93.8%94.0%95.0%94.9%
53M94.2%94.2%93.7%93.9%94.9%94.9%
53.5M94.2%94.2%93.7%93.9%94.9%94.8%
54M94.2%94.1%93.7%93.9%94.9%94.8%
54.5M94.2%94.1%93.6%93.8%94.9%94.8%
55M94.3%94.1%93.6%93.8%94.9%94.8%
55.5M94.3%94.1%93.6%93.9%94.9%94.8%
56M94.3%94.0%93.6%93.8%94.9%94.8%
56.5M94.2%94.1%93.5%93.8%94.9%94.7%
57M94.1%94.1%93.5%93.8%94.9%94.7%
57.5M94.1%94.1%93.5%93.7%94.9%94.7%
58M94.1%94.0%93.4%93.7%94.9%94.7%
58.5M94.0%94.0%93.3%93.7%94.9%94.7%
59M93.9%94.0%93.3%93.7%94.9%94.6%
59.5M93.9%93.9%93.3%93.8%94.9%94.6%
60M93.8%93.8%93.3%93.7%94.9%94.6%
60.5M93.8%93.8%93.3%93.7%94.8%94.6%
61M93.8%93.8%93.4%93.6%94.8%94.6%
61.5M93.8%93.8%93.3%93.6%94.8%94.5%
62M93.7%93.7%93.3%93.6%94.8%94.4%
62.5M93.7%93.7%93.2%93.5%94.7%94.4%
63M93.6%93.6%93.2%93.5%94.7%94.4%
63.5M93.6%93.6%93.1%93.5%94.6%94.4%
64M93.6%93.6%93.1%93.5%94.6%94.5%
64.5M93.6%93.6%93.1%93.5%94.5%94.4%
65M93.6%93.5%93.1%93.4%94.5%94.4%
65.5M93.6%93.6%93.1%93.4%94.5%94.4%
66M93.7%93.6%93.2%93.4%94.5%94.4%
66.5M93.7%93.5%93.2%93.4%94.5%94.4%
67M93.7%93.5%93.2%93.3%94.5%94.4%
67.5M93.7%93.4%93.1%93.3%94.4%94.3%
68M93.7%93.4%93.0%93.2%94.4%94.3%
68.5M93.6%93.4%93.0%93.2%94.4%94.3%
69M93.6%93.4%93.0%93.2%94.4%94.3%
69.5M93.6%93.3%93.0%93.2%94.3%94.2%
70M93.6%93.4%93.0%93.2%94.3%94.2%
70.5M93.6%93.4%93.0%93.2%94.3%94.2%
71M93.6%93.4%92.9%93.2%94.2%94.2%
71.5M93.7%93.4%92.9%93.2%94.2%94.1%
72M93.7%93.4%93.0%93.2%94.1%94.0%
72.5M93.7%93.3%93.0%93.2%94.1%94.0%
73M93.7%93.2%93.0%93.2%94.1%94.0%
73.5M93.6%93.2%93.0%93.2%94.1%94.0%
74M93.6%93.2%93.0%93.1%94.1%94.0%
74.5M93.6%93.1%93.0%93.1%94.1%94.0%
75M93.6%93.2%93.0%93.1%94.1%94.0%
75.5M93.5%93.2%93.0%93.1%94.1%94.0%
76M93.5%93.2%92.9%93.0%94.1%94.0%
76.5M93.5%93.1%92.8%93.0%94.1%94.0%
77M93.4%93.1%92.8%93.0%94.0%93.9%
77.5M93.4%93.1%92.8%93.0%94.0%94.0%
78M93.3%93.0%92.7%93.0%94.0%94.0%
78.5M93.3%93.0%92.6%93.0%93.9%93.9%
79M93.3%93.0%92.6%93.0%93.9%93.9%
79.5M93.2%93.0%92.6%93.0%93.9%93.9%
80M93.2%92.9%92.7%93.0%93.8%93.9%
80.5M93.3%92.9%92.6%92.9%93.8%93.9%
81M93.2%92.8%92.6%92.8%93.8%93.9%
81.5M93.2%92.8%92.6%92.8%93.8%93.9%
82M93.2%92.8%92.6%92.8%93.8%93.8%
82.5M93.2%92.8%92.5%92.8%93.8%93.8%
83M93.2%92.8%92.5%92.8%93.8%93.8%
83.5M93.2%92.8%92.4%92.8%93.8%93.8%
84M93.2%92.8%92.4%92.8%93.7%93.7%
84.5M93.2%92.8%92.4%92.8%93.7%93.8%
85M93.2%92.8%92.5%92.8%93.7%93.8%
85.5M93.2%92.8%92.5%92.8%93.7%93.8%
86M93.1%92.7%92.4%92.8%93.6%93.7%
86.5M93.1%92.7%92.4%92.8%93.6%93.7%
87M93.0%92.7%92.4%92.7%93.6%93.7%
87.5M93.0%92.7%92.3%92.7%93.6%93.7%
88M93.0%92.7%92.3%92.7%93.6%93.6%
88.5M93.0%92.7%92.4%92.6%93.5%93.6%
89M93.0%92.6%92.4%92.6%93.5%93.6%
89.5M93.0%92.5%92.4%92.6%93.5%93.6%
90M93.0%92.5%92.4%92.6%93.5%93.6%
90.5M93.0%92.5%92.4%92.6%93.5%93.6%
91M93.0%92.5%92.4%92.6%93.5%93.7%
91.5M93.0%92.5%92.4%92.6%93.5%93.7%
92M92.9%92.5%92.3%92.6%93.5%93.7%
92.5M92.9%92.6%92.3%92.6%93.5%93.7%
93M92.9%92.6%92.3%92.6%93.5%93.6%
93.5M92.9%92.6%92.3%92.5%93.4%93.6%
94M92.9%92.6%92.3%92.5%93.4%93.6%
94.5M92.9%92.6%92.2%92.5%93.4%93.6%
95M92.8%92.5%92.2%92.5%93.3%93.5%
95.5M92.8%92.5%92.2%92.5%93.3%93.5%
96M92.7%92.4%92.2%92.5%93.3%93.5%
96.5M92.7%92.4%92.1%92.5%93.3%93.4%
97M92.7%92.4%92.1%92.4%93.3%93.4%
97.5M92.7%92.3%92.0%92.4%93.3%93.3%
98M92.8%92.3%92.0%92.4%93.3%93.3%
98.5M92.7%92.3%92.0%92.4%93.2%93.3%
99M92.7%92.3%92.0%92.4%93.2%93.4%
99.5M92.7%92.3%92.0%92.4%93.3%93.3%
100M92.7%92.3%92.0%92.4%93.3%93.3%

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

Fig. 6FAISS needs less memory, except in f16

Memory gigabytes

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
0 GB20 GB40 GB60 GB20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K0.0 GB0.2 GB0.1 GB0.3 GB0.3 GB0.2 GB
1M0.3 GB0.4 GB0.3 GB0.5 GB0.5 GB0.3 GB
1.5M0.6 GB0.7 GB0.5 GB0.8 GB0.8 GB0.4 GB
2M0.8 GB0.9 GB0.6 GB1.1 GB1.1 GB0.5 GB
2.5M1.3 GB1.2 GB0.9 GB1.3 GB1.5 GB0.6 GB
3M1.5 GB1.4 GB1.0 GB1.6 GB1.7 GB0.8 GB
3.5M1.8 GB1.5 GB1.2 GB1.8 GB2.1 GB0.9 GB
4M2.1 GB1.7 GB1.3 GB2.0 GB2.4 GB1.0 GB
4.5M2.5 GB2.1 GB1.6 GB2.3 GB2.7 GB1.1 GB
5M2.8 GB2.3 GB1.8 GB2.5 GB3.0 GB1.2 GB
5.5M3.1 GB2.4 GB1.9 GB2.8 GB3.3 GB1.3 GB
6M3.3 GB2.6 GB2.0 GB3.0 GB3.7 GB1.4 GB
6.5M3.6 GB2.8 GB2.2 GB3.3 GB3.9 GB1.5 GB
7M3.9 GB3.0 GB2.3 GB3.5 GB4.2 GB1.6 GB
7.5M4.1 GB3.2 GB2.4 GB3.8 GB4.5 GB1.7 GB
8M4.4 GB3.4 GB2.6 GB4.0 GB4.8 GB1.9 GB
8.5M5.1 GB3.9 GB3.1 GB4.2 GB5.1 GB1.9 GB
9M5.3 GB4.1 GB3.2 GB4.4 GB5.5 GB2.0 GB
9.5M5.6 GB4.3 GB3.4 GB4.7 GB5.8 GB2.1 GB
10M5.9 GB4.4 GB3.5 GB4.9 GB6.0 GB2.3 GB
10.5M6.2 GB4.6 GB3.6 GB5.2 GB6.3 GB2.4 GB
11M6.4 GB4.8 GB3.8 GB5.4 GB6.7 GB2.5 GB
11.5M6.7 GB5.0 GB3.9 GB5.7 GB7.0 GB2.6 GB
12M7.0 GB5.2 GB4.1 GB5.9 GB7.2 GB2.7 GB
12.5M7.2 GB5.4 GB4.2 GB6.2 GB7.5 GB2.8 GB
13M7.5 GB5.5 GB4.3 GB6.4 GB7.8 GB2.9 GB
13.5M7.8 GB5.7 GB4.5 GB6.7 GB8.1 GB3.0 GB
14M8.1 GB5.9 GB4.6 GB6.9 GB8.3 GB3.1 GB
14.5M8.3 GB6.1 GB4.7 GB7.2 GB8.7 GB3.3 GB
15M8.6 GB6.3 GB4.9 GB7.4 GB9.0 GB3.4 GB
15.5M8.9 GB6.4 GB5.0 GB7.6 GB9.3 GB3.5 GB
16M9.1 GB6.6 GB5.1 GB7.9 GB9.5 GB3.6 GB
16.5M9.4 GB6.8 GB5.3 GB8.1 GB9.8 GB3.7 GB
17M10.4 GB7.7 GB6.2 GB8.4 GB10.5 GB3.8 GB
17.5M10.7 GB7.9 GB6.3 GB8.6 GB10.7 GB3.9 GB
18M11.0 GB8.1 GB6.5 GB8.9 GB11.0 GB4.0 GB
18.5M11.2 GB8.3 GB6.6 GB9.1 GB11.4 GB4.2 GB
19M11.5 GB8.5 GB6.7 GB9.4 GB11.7 GB4.3 GB
19.5M11.8 GB8.6 GB6.9 GB9.6 GB11.9 GB4.4 GB
20M12.0 GB8.8 GB7.0 GB9.9 GB12.2 GB4.5 GB
20.5M12.3 GB9.0 GB7.1 GB10.1 GB12.6 GB4.6 GB
21M12.6 GB9.2 GB7.3 GB10.4 GB12.8 GB4.7 GB
21.5M12.8 GB9.4 GB7.4 GB10.6 GB13.1 GB4.8 GB
22M13.1 GB9.6 GB7.5 GB10.8 GB13.4 GB5.0 GB
22.5M13.4 GB9.7 GB7.7 GB11.1 GB13.7 GB5.1 GB
23M13.7 GB9.9 GB7.8 GB11.3 GB13.9 GB5.2 GB
23.5M13.9 GB10.1 GB8.0 GB11.6 GB14.2 GB5.3 GB
24M14.2 GB10.3 GB8.1 GB11.8 GB14.6 GB5.4 GB
24.5M14.5 GB10.4 GB8.2 GB12.1 GB14.9 GB5.5 GB
25M14.7 GB10.6 GB8.4 GB12.3 GB15.1 GB5.6 GB
25.5M15.0 GB10.8 GB8.5 GB12.6 GB15.4 GB5.7 GB
26M15.3 GB11.0 GB8.6 GB12.8 GB15.8 GB5.8 GB
26.5M15.6 GB11.2 GB8.8 GB13.1 GB16.0 GB6.0 GB
27M15.8 GB11.4 GB8.9 GB13.3 GB16.3 GB6.1 GB
27.5M16.1 GB11.5 GB9.0 GB13.6 GB16.6 GB6.2 GB
28M16.4 GB11.7 GB9.2 GB13.8 GB16.9 GB6.3 GB
28.5M16.6 GB11.9 GB9.3 GB14.1 GB17.1 GB6.4 GB
29M16.9 GB12.1 GB9.5 GB14.3 GB17.4 GB6.5 GB
29.5M17.2 GB12.3 GB9.6 GB14.6 GB17.8 GB6.6 GB
30M17.4 GB12.4 GB9.7 GB14.8 GB18.1 GB6.8 GB
30.5M17.7 GB12.6 GB9.9 GB15.0 GB18.3 GB6.9 GB
31M18.0 GB12.8 GB10.0 GB15.3 GB18.6 GB7.0 GB
31.5M18.3 GB13.0 GB10.1 GB15.5 GB19.0 GB7.1 GB
32M18.5 GB13.2 GB10.3 GB15.8 GB19.2 GB7.2 GB
32.5M18.8 GB13.3 GB10.4 GB16.0 GB19.4 GB7.3 GB
33M19.1 GB13.5 GB10.5 GB16.3 GB20.1 GB7.4 GB
33.5M19.3 GB13.7 GB10.7 GB16.5 GB20.4 GB7.5 GB
34M21.1 GB15.4 GB12.3 GB16.8 GB21.3 GB7.7 GB
34.5M21.4 GB15.6 GB12.5 GB17.0 GB21.5 GB7.8 GB
35M21.7 GB15.8 GB12.6 GB17.3 GB21.7 GB7.9 GB
35.5M21.9 GB15.9 GB12.7 GB17.5 GB21.9 GB8.0 GB
36M22.2 GB16.1 GB12.9 GB17.8 GB22.0 GB8.1 GB
36.5M22.5 GB16.3 GB13.0 GB18.0 GB22.2 GB8.2 GB
37M22.7 GB16.5 GB13.1 GB18.2 GB22.4 GB8.3 GB
37.5M23.0 GB16.7 GB13.3 GB18.5 GB22.6 GB8.4 GB
38M23.3 GB16.9 GB13.4 GB18.7 GB22.8 GB8.5 GB
38.5M23.6 GB17.0 GB13.6 GB19.0 GB22.9 GB8.6 GB
39M23.8 GB17.2 GB13.7 GB19.2 GB23.1 GB8.8 GB
39.5M24.1 GB17.4 GB13.8 GB19.5 GB23.3 GB8.9 GB
40M24.4 GB17.6 GB14.0 GB19.7 GB23.5 GB9.0 GB
40.5M24.6 GB17.8 GB14.1 GB20.0 GB23.7 GB9.1 GB
41M24.9 GB17.9 GB14.2 GB20.2 GB23.9 GB9.2 GB
41.5M25.2 GB18.1 GB14.4 GB20.5 GB24.1 GB9.3 GB
42M25.4 GB18.3 GB14.5 GB20.7 GB24.3 GB9.4 GB
42.5M25.7 GB18.5 GB14.6 GB21.0 GB24.4 GB9.6 GB
43M26.0 GB18.6 GB14.8 GB21.2 GB24.6 GB9.7 GB
43.5M26.3 GB18.8 GB14.9 GB21.4 GB24.8 GB9.8 GB
44M26.5 GB19.0 GB15.0 GB21.7 GB25.0 GB9.9 GB
44.5M26.8 GB19.2 GB15.2 GB21.9 GB25.2 GB10.0 GB
45M27.1 GB19.4 GB15.3 GB22.2 GB25.4 GB10.1 GB
45.5M27.3 GB19.6 GB15.4 GB22.4 GB25.6 GB10.2 GB
46M27.6 GB19.7 GB15.6 GB22.7 GB25.7 GB10.3 GB
46.5M27.9 GB19.9 GB15.7 GB22.9 GB25.9 GB10.4 GB
47M28.1 GB20.1 GB15.9 GB23.2 GB26.1 GB10.5 GB
47.5M28.4 GB20.3 GB16.0 GB23.4 GB26.3 GB10.7 GB
48M28.7 GB20.5 GB16.1 GB23.7 GB26.5 GB10.8 GB
48.5M28.9 GB20.6 GB16.3 GB23.9 GB26.6 GB10.9 GB
49M29.2 GB20.8 GB16.4 GB24.1 GB26.8 GB11.0 GB
49.5M29.5 GB21.0 GB16.5 GB24.4 GB27.0 GB11.1 GB
50M29.8 GB21.2 GB16.7 GB24.6 GB27.2 GB11.2 GB
50.5M30.0 GB21.4 GB16.8 GB24.9 GB27.4 GB11.3 GB
51M30.3 GB21.5 GB16.9 GB25.1 GB27.6 GB11.4 GB
51.5M30.6 GB21.7 GB17.1 GB25.4 GB27.8 GB11.5 GB
52M30.9 GB21.9 GB17.2 GB25.6 GB28.0 GB11.7 GB
52.5M31.1 GB22.1 GB17.4 GB25.9 GB28.1 GB11.8 GB
53M31.4 GB22.3 GB17.5 GB26.1 GB28.3 GB11.9 GB
53.5M31.7 GB22.4 GB17.6 GB26.4 GB28.5 GB12.0 GB
54M31.9 GB22.6 GB17.8 GB26.6 GB28.7 GB12.1 GB
54.5M32.2 GB22.8 GB17.9 GB26.9 GB28.9 GB12.2 GB
55M32.5 GB23.0 GB18.0 GB27.1 GB29.1 GB12.3 GB
55.5M32.7 GB23.1 GB18.1 GB27.3 GB29.3 GB12.4 GB
56M33.0 GB23.4 GB18.3 GB27.6 GB29.4 GB12.6 GB
56.5M33.3 GB23.5 GB18.4 GB27.8 GB29.6 GB12.6 GB
57M33.5 GB23.7 GB18.6 GB28.1 GB29.8 GB12.8 GB
57.5M33.8 GB23.9 GB18.7 GB28.3 GB30.0 GB12.9 GB
58M34.1 GB24.1 GB18.9 GB28.6 GB30.2 GB13.0 GB
58.5M34.4 GB24.3 GB19.0 GB28.8 GB30.4 GB13.1 GB
59M34.6 GB24.4 GB19.1 GB29.1 GB30.6 GB13.2 GB
59.5M34.9 GB24.6 GB19.3 GB29.3 GB30.7 GB13.3 GB
60M35.2 GB24.8 GB19.4 GB29.5 GB30.9 GB13.4 GB
60.5M35.5 GB25.0 GB19.5 GB29.8 GB31.1 GB13.5 GB
61M35.7 GB25.1 GB19.7 GB30.0 GB31.3 GB13.7 GB
61.5M36.0 GB25.3 GB19.8 GB30.3 GB31.5 GB13.8 GB
62M36.3 GB25.5 GB19.9 GB30.5 GB31.6 GB13.9 GB
62.5M36.5 GB25.7 GB20.1 GB30.8 GB31.9 GB14.0 GB
63M36.8 GB25.9 GB20.2 GB31.0 GB32.0 GB14.1 GB
63.5M37.1 GB26.1 GB20.3 GB31.3 GB32.2 GB14.2 GB
64M37.3 GB26.3 GB20.5 GB31.5 GB32.4 GB14.3 GB
64.5M37.6 GB26.4 GB20.6 GB31.8 GB32.6 GB14.4 GB
65M37.9 GB26.6 GB20.8 GB32.0 GB32.9 GB14.5 GB
65.5M38.1 GB26.8 GB20.9 GB32.3 GB33.0 GB14.6 GB
66M38.4 GB27.0 GB21.0 GB32.5 GB33.1 GB14.8 GB
66.5M38.7 GB27.1 GB21.2 GB32.7 GB33.3 GB14.9 GB
67M39.0 GB27.3 GB21.3 GB33.0 GB33.5 GB15.0 GB
67.5M42.3 GB30.5 GB24.5 GB33.2 GB35.1 GB15.1 GB
68M42.5 GB30.7 GB24.6 GB33.5 GB35.3 GB15.2 GB
68.5M42.8 GB30.9 GB24.7 GB33.8 GB35.5 GB15.3 GB
69M43.1 GB31.1 GB24.9 GB34.0 GB35.6 GB15.4 GB
69.5M43.3 GB31.3 GB25.0 GB34.2 GB35.8 GB15.5 GB
70M43.6 GB31.4 GB25.1 GB34.5 GB36.0 GB15.6 GB
70.5M43.9 GB31.6 GB25.3 GB34.7 GB36.2 GB15.8 GB
71M44.1 GB31.8 GB25.4 GB35.0 GB36.4 GB15.9 GB
71.5M44.4 GB32.0 GB25.6 GB35.2 GB36.6 GB16.0 GB
72M44.7 GB32.1 GB25.7 GB35.4 GB36.8 GB16.1 GB
72.5M45.0 GB32.3 GB25.8 GB35.7 GB37.0 GB16.2 GB
73M45.2 GB32.5 GB26.0 GB35.9 GB37.1 GB16.3 GB
73.5M45.5 GB32.7 GB26.1 GB36.2 GB37.3 GB16.4 GB
74M45.8 GB32.9 GB26.2 GB36.4 GB37.5 GB16.5 GB
74.5M46.0 GB33.1 GB26.4 GB36.7 GB37.7 GB16.7 GB
75M46.3 GB33.2 GB26.5 GB36.9 GB37.9 GB16.8 GB
75.5M46.6 GB33.4 GB26.6 GB37.1 GB38.0 GB17.0 GB
76M46.9 GB33.6 GB26.8 GB37.4 GB38.3 GB17.0 GB
76.5M47.1 GB33.8 GB26.9 GB37.7 GB38.5 GB17.1 GB
77M47.4 GB34.0 GB27.1 GB37.9 GB38.6 GB17.2 GB
77.5M47.7 GB34.1 GB27.2 GB38.2 GB38.8 GB17.3 GB
78M47.9 GB34.3 GB27.3 GB38.4 GB39.0 GB17.4 GB
78.5M48.2 GB34.5 GB27.5 GB38.6 GB39.2 GB17.5 GB
79M48.5 GB34.7 GB27.6 GB38.9 GB39.4 GB17.7 GB
79.5M48.8 GB34.9 GB27.8 GB39.1 GB39.6 GB17.8 GB
80M49.0 GB35.0 GB27.9 GB39.4 GB39.8 GB17.9 GB
80.5M49.3 GB35.2 GB28.0 GB39.6 GB40.0 GB18.0 GB
81M49.5 GB35.4 GB28.1 GB39.9 GB40.1 GB18.1 GB
81.5M49.8 GB35.6 GB28.3 GB40.1 GB40.3 GB18.2 GB
82M50.1 GB35.8 GB28.4 GB40.4 GB40.5 GB18.3 GB
82.5M50.4 GB36.0 GB28.6 GB40.6 GB40.7 GB18.4 GB
83M50.6 GB36.1 GB28.7 GB40.8 GB40.9 GB18.6 GB
83.5M50.9 GB36.3 GB28.8 GB41.1 GB41.1 GB18.7 GB
84M51.2 GB36.5 GB29.0 GB41.3 GB41.2 GB18.8 GB
84.5M51.5 GB36.7 GB29.1 GB41.6 GB41.4 GB18.9 GB
85M51.7 GB36.8 GB29.3 GB41.9 GB41.6 GB19.0 GB
85.5M52.0 GB37.0 GB29.4 GB42.1 GB41.8 GB19.1 GB
86M52.3 GB37.2 GB29.5 GB42.3 GB42.0 GB19.3 GB
86.5M52.5 GB37.4 GB29.6 GB42.6 GB42.2 GB19.3 GB
87M52.8 GB37.6 GB29.8 GB42.8 GB42.4 GB19.4 GB
87.5M53.1 GB37.8 GB29.9 GB43.1 GB42.5 GB19.6 GB
88M53.3 GB37.9 GB30.1 GB43.3 GB42.7 GB19.7 GB
88.5M53.6 GB38.1 GB30.2 GB43.6 GB42.9 GB19.8 GB
89M53.9 GB38.3 GB30.3 GB43.8 GB43.1 GB19.9 GB
89.5M54.1 GB38.5 GB30.5 GB44.1 GB43.3 GB20.0 GB
90M54.4 GB38.7 GB30.6 GB44.3 GB43.5 GB20.1 GB
90.5M54.7 GB38.9 GB30.7 GB44.5 GB43.7 GB20.2 GB
91M55.0 GB39.0 GB30.9 GB44.8 GB43.9 GB20.3 GB
91.5M55.2 GB39.2 GB31.0 GB45.0 GB44.0 GB20.5 GB
92M55.5 GB39.4 GB31.1 GB45.3 GB44.2 GB20.6 GB
92.5M55.8 GB39.6 GB31.3 GB45.5 GB44.4 GB20.7 GB
93M56.0 GB39.8 GB31.4 GB45.8 GB44.6 GB20.8 GB
93.5M56.3 GB39.9 GB31.6 GB46.0 GB44.8 GB20.9 GB
94M56.6 GB40.1 GB31.7 GB46.3 GB45.0 GB21.0 GB
94.5M56.9 GB40.3 GB31.8 GB46.5 GB45.2 GB21.1 GB
95M57.1 GB40.5 GB32.0 GB46.7 GB45.4 GB21.2 GB
95.5M57.4 GB40.7 GB32.1 GB47.0 GB45.5 GB21.4 GB
96M57.7 GB40.8 GB32.2 GB47.3 GB45.7 GB21.5 GB
96.5M57.9 GB41.0 GB32.4 GB47.5 GB45.9 GB21.6 GB
97M58.2 GB41.2 GB32.5 GB47.8 GB46.1 GB21.7 GB
97.5M58.5 GB41.4 GB32.6 GB48.0 GB46.3 GB21.8 GB
98M58.8 GB41.6 GB32.8 GB48.2 GB46.5 GB21.9 GB
98.5M59.0 GB41.7 GB32.9 GB48.5 GB46.7 GB22.0 GB
99M59.3 GB41.9 GB33.0 GB48.7 GB46.8 GB22.1 GB
99.5M59.6 GB42.1 GB33.2 GB49.0 GB47.0 GB22.2 GB
100M59.8 GB42.3 GB33.3 GB49.2 GB47.2 GB22.4 GB

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

The accuracy of the Approximate Nearest Neighbors Search is assessed through Recall, which measures how often the approximate results match the outcomes of a comprehensive, exact search. While Recall needs can differ per application, HNSW can be tweaked for the desired accuracy, mainly using the “connectivity” parameter, ℳ in the original paper. Maintaining similar recall levels between systems for a fair speed comparison is crucial.

Regarding memory consumption, FAISS showed lower memory use for 32-bit floats and 8-bit integers but lagged with 16-bit floats. Interestingly, 16-bit floats are a popular choice for kANN.

DescriptionFAISSUSearchSpeedup
Indexing 32-bit floating-point vectors157.6 minutes16.4 minutes9.6x
Indexing 16-bit floating-point vectors154.0 minutes14.8 minutes10.4x
Indexing 8-bit integer vectors157.9 minutes14.6 minutes10.8x

While FAISS consistently took 2.5 hours for each vector type during the construction phase, USearch averaged a mere 15 minutes.

§ Handling 1 Billion Vectors

As USearch excelled with 100 million vectors, we’ve continued with the rest of the dataset, dropping FAISS for now to study the scaling behavior of USearch.

Fig. 7Indexing holds above 50 K per second at 1 B

Indexing speed vectors per second

050K100K150K200K200M400M600M800M1B112K f16112K i879.4K f32

index size, vectors

VectorsUSearch f32USearch f16USearch i8
4M119K151K163K
8M115K146K159K
12M110K146K153K
16M107K144K150K
20M107K144K151K
24M106K144K149K
28M104K145K149K
32M101K142K145K
36M101K141K147K
40M100K141K147K
44M99.0K141K147K
48M98.6K141K147K
52M98.3K141K147K
56M98.0K142K145K
60M97.7K141K145K
64M97.5K141K146K
68M93.3K134K136K
72M93.3K135K136K
76M93.3K135K136K
80M92.7K135K137K
84M92.6K136K137K
88M92.7K136K135K
92M92.5K136K136K
96M92.5K137K136K
100M92.4K137K136K
104M92.5K137K136K
108M92.4K137K136K
112M92.6K138K136K
116M92.8K138K136K
120M92.6K138K137K
124M92.6K138K137K
128M92.6K138K137K
132M92.5K139K138K
136M83.8K120K121K
140M85.0K121K121K
144M86.0K123K121K
148M85.6K123K122K
152M85.6K123K121K
156M85.6K124K121K
160M85.6K123K122K
164M86.2K123K122K
168M85.9K123K121K
172M86.5K126K121K
176M86.3K125K122K
180M86.4K125K123K
184M86.2K126K123K
188M86.1K126K123K
192M86.2K126K124K
196M86.4K126K124K
200M86.4K126K124K
204M86.5K126K123K
208M86.7K127K124K
212M86.6K128K124K
216M87.1K128K125K
220M87.1K128K125K
224M87.4K128K126K
228M87.4K129K126K
232M87.5K129K126K
236M87.9K129K126K
240M87.5K130K127K
244M87.7K130K127K
248M87.8K130K127K
252M88.2K131K128K
256M88.4K131K128K
260M88.6K131K128K
264M88.6K132K128K
268M81.8K119K117K
272M75.7K104K104K
276M76.0K105K104K
280M76.4K104K104K
284M75.6K105K104K
288M75.7K105K105K
292M76.1K105K106K
296M75.9K105K106K
300M76.2K104K105K
304M76.3K104K105K
308M77.0K104K105K
312M76.6K105K106K
316M78.3K106K106K
320M78.2K107K106K
324M76.4K106K106K
328M77.5K108K107K
332M77.4K107K108K
336M76.9K107K106K
340M77.3K108K108K
344M78.4K109K108K
348M77.7K110K107K
352M79.0K110K107K
356M78.4K111K109K
360M79.0K112K110K
364M79.0K112K110K
368M78.7K111K110K
372M78.8K110K109K
376M79.1K112K110K
380M79.3K110K110K
384M79.4K113K111K
388M79.8K113K111K
392M80.2K116K113K
396M80.4K113K112K
400M79.8K114K112K
404M80.3K114K112K
408M80.2K116K113K
412M80.2K113K113K
416M80.7K114K112K
420M80.8K115K114K
424M80.9K117K114K
428M80.9K116K115K
432M81.2K116K115K
436M81.6K117K115K
440M81.3K116K115K
444M80.9K119K115K
448M81.0K118K117K
452M81.4K115K116K
456M81.4K119K117K
460M81.8K116K117K
464M81.7K120K117K
468M82.1K121K117K
472M82.3K121K119K
476M82.0K119K118K
480M82.6K121K119K
484M82.5K120K119K
488M82.7K123K120K
492M83.0K124K120K
496M82.9K123K120K
500M83.3K125K121K
504M83.3K124K121K
508M83.6K122K122K
512M83.7K122K122K
516M83.7K124K122K
520M83.9K124K122K
524M84.3K126K123K
528M84.2K127K123K
532M84.3K126K124K
536M77.9K113K111K
540M64.1K86.1K85.1K
544M63.9K86.9K81.5K
548M64.9K86.9K84.2K
552M63.6K85.1K84.8K
556M65.0K86.4K82.8K
560M64.3K85.4K82.7K
564M63.9K85.5K82.8K
568M65.2K86.5K85.1K
572M65.1K85.6K86.3K
576M65.5K85.9K86.2K
580M64.3K86.0K86.3K
584M64.5K85.7K85.6K
588M65.1K87.3K87.0K
592M66.1K87.4K84.4K
596M65.2K86.9K86.2K
600M65.3K87.7K87.5K
604M66.5K89.6K85.3K
608M65.5K88.4K88.8K
612M66.1K89.0K86.0K
616M66.6K86.3K87.8K
620M65.4K86.9K86.6K
624M65.6K89.1K87.2K
628M67.3K90.9K89.1K
632M67.5K90.3K87.0K
636M66.3K90.0K86.8K
640M67.0K90.7K89.2K
644M66.5K88.7K89.5K
648M66.9K90.6K89.8K
652M67.0K89.9K88.1K
656M67.3K90.8K88.6K
660M68.6K90.5K88.3K
664M67.7K93.4K89.8K
668M67.4K93.6K89.3K
672M66.8K90.3K89.4K
676M68.7K90.8K91.7K
680M67.9K93.5K90.4K
684M68.6K93.6K92.6K
688M68.3K94.0K90.4K
692M67.3K93.0K90.8K
696M67.8K93.1K91.9K
700M68.5K91.5K91.9K
704M68.3K92.0K92.4K
708M68.4K94.6K90.7K
712M68.8K94.2K92.8K
716M68.7K93.3K92.9K
720M68.1K94.9K94.8K
724M69.9K93.4K94.5K
728M69.6K95.4K92.7K
732M69.1K96.6K93.6K
736M70.0K96.9K94.4K
740M69.2K95.9K95.1K
744M70.5K98.3K95.3K
748M69.7K96.4K95.6K
752M70.4K98.0K95.1K
756M70.7K99.3K94.3K
760M70.1K96.5K95.8K
764M71.1K98.8K96.6K
768M70.6K98.8K95.0K
772M70.3K99.4K96.0K
776M71.2K98.5K95.0K
780M70.9K99.6K97.0K
784M71.0K98.6K97.3K
788M71.9K99.5K97.2K
792M71.2K97.8K96.9K
796M71.8K98.8K97.3K
800M73.3K100K97.0K
804M72.4K98.5K98.1K
808M71.8K98.0K97.5K
812M71.7K100K99.9K
816M72.3K101K98.6K
820M72.0K104K98.3K
824M72.9K101K100K
828M72.7K103K99.6K
832M73.5K104K101K
836M73.7K104K100K
840M73.5K104K99.9K
844M74.3K104K102K
848M73.8K96.8K102K
852M74.0K105K101K
856M74.3K102K102K
860M74.2K105K103K
864M74.6K104K103K
868M74.1K107K101K
872M74.1K104K103K
876M75.2K104K103K
880M74.7K104K102K
884M75.8K102K102K
888M75.3K105K103K
892M75.7K106K104K
896M75.6K107K105K
900M76.1K107K105K
904M76.2K103K104K
908M76.4K105K105K
912M76.5K107K106K
916M76.8K107K107K
920M76.9K108K104K
924M76.7K108K107K
928M76.9K105K107K
932M77.4K106K107K
936M77.1K109K107K
940M77.8K111K107K
944M76.9K111K108K
948M76.6K112K108K
952M76.9K113K109K
956M76.4K113K109K
960M77.1K113K109K
964M77.3K110K109K
968M77.6K108K110K
972M78.2K110K110K
976M78.6K105K109K
980M79.0K109K110K
984M78.4K105K110K
988M79.1K109K111K
992M79.0K110K111K
996M79.3K110K111K
1B79.4K112K112K

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

Fig. 8Search holds 150–225 K queries per second

Search speed queries per second

0100K200K300K200M400M600M800M1B225K i8147K f16140K f32

index size, vectors

VectorsUSearch f32USearch f16USearch i8
4M111K130K120K
8M112K136K125K
12M112K135K127K
16M106K136K131K
20M100K134K150K
24M118K133K150K
28M139K132K158K
32M145K131K167K
36M148K134K141K
40M147K130K149K
44M147K129K152K
48M159K130K171K
52M158K133K163K
56M164K130K165K
60M168K130K165K
64M146K128K155K
68M170K135K151K
72M181K145K143K
76M179K134K142K
80M181K134K142K
84M180K135K150K
88M176K135K154K
92M176K135K145K
96M176K136K141K
100M172K136K135K
104M169K144K135K
108M163K139K135K
112M167K135K134K
116M168K135K134K
120M167K136K146K
124M169K140K215K
128M163K137K196K
132M159K141K206K
136M162K141K228K
140M162K138K220K
144M160K140K215K
148M161K146K235K
152M161K149K238K
156M161K146K241K
160M161K138K229K
164M159K148K244K
168M160K140K247K
172M158K137K242K
176M158K144K245K
180M158K148K251K
184M160K160K246K
188M157K151K249K
192M157K146K251K
196M165K172K228K
200M172K188K217K
204M172K181K210K
208M171K197K210K
212M170K185K200K
216M170K194K219K
220M170K173K216K
224M170K188K230K
228M169K193K207K
232M170K186K216K
236M169K190K227K
240M169K185K225K
244M167K191K227K
248M168K204K228K
252M168K209K224K
256M167K202K216K
260M165K200K231K
264M166K211K234K
268M167K204K229K
272M167K195K218K
276M166K177K216K
280M168K198K213K
284M167K191K213K
288M168K193K208K
292M167K207K214K
296M169K193K210K
300M168K194K211K
304M167K193K213K
308M168K194K220K
312M166K205K218K
316M167K205K210K
320M169K191K217K
324M168K200K207K
328M168K185K219K
332M160K162K177K
336M161K161K161K
340M161K158K178K
344M160K167K183K
348M160K172K184K
352M162K162K189K
356M161K165K179K
360M162K157K187K
364M160K160K186K
368M160K158K187K
372M159K163K190K
376M160K153K176K
380M160K157K181K
384M158K161K186K
388M159K167K177K
392M159K163K192K
396M159K157K193K
400M157K160K195K
404M157K145K189K
408M158K153K190K
412M157K156K189K
416M158K161K194K
420M158K160K188K
424M157K159K187K
428M158K158K192K
432M156K156K192K
436M157K153K186K
440M157K159K188K
444M155K165K190K
448M157K147K229K
452M156K154K226K
456M156K149K225K
460M154K147K227K
464M155K148K235K
468M154K146K232K
472M153K153K227K
476M155K153K224K
480M154K137K229K
484M152K152K226K
488M154K148K222K
492M153K158K227K
496M154K142K229K
500M153K155K225K
504M152K146K229K
508M153K145K233K
512M152K145K221K
516M152K151K226K
520M152K142K229K
524M151K153K226K
528M152K154K234K
532M151K152K230K
536M152K148K230K
540M154K161K239K
544M154K163K241K
548M154K155K235K
552M154K155K236K
556M154K157K237K
560M153K149K238K
564M155K159K239K
568M155K142K238K
572M155K156K238K
576M154K155K240K
580M155K158K237K
584M154K154K239K
588M153K156K238K
592M153K157K239K
596M154K160K236K
600M151K208K231K
604M150K209K232K
608M152K197K230K
612M149K204K229K
616M150K203K229K
620M150K209K230K
624M150K185K230K
628M150K207K226K
632M151K202K227K
636M149K201K231K
640M151K202K229K
644M150K199K230K
648M150K203K229K
652M148K211K227K
656M148K194K229K
660M151K196K231K
664M150K211K230K
668M151K201K232K
672M150K201K232K
676M150K203K231K
680M149K189K231K
684M148K197K229K
688M146K193K232K
692M149K206K229K
696M150K196K228K
700M149K190K229K
704M148K202K227K
708M149K212K229K
712M149K200K226K
716M149K209K235K
720M150K185K235K
724M147K187K237K
728M148K189K238K
732M147K182K237K
736M148K180K237K
740M149K184K235K
744M149K194K237K
748M148K178K233K
752M147K201K236K
756M148K186K237K
760M148K183K237K
764M148K171K236K
768M148K175K236K
772M148K160K236K
776M147K165K235K
780M147K150K236K
784M147K158K234K
788M147K159K235K
792M147K150K235K
796M147K153K235K
800M147K153K235K
804M148K172K236K
808M148K154K235K
812M148K156K235K
816M147K163K235K
820M148K161K235K
824M148K152K234K
828M147K156K233K
832M147K166K234K
836M147K163K235K
840M147K175K234K
844M147K159K234K
848M146K173K234K
852M145K154K232K
856M146K158K232K
860M144K154K231K
864M144K145K229K
868M143K149K227K
872M145K146K229K
876M144K147K228K
880M142K145K228K
884M142K146K228K
888M143K146K230K
892M143K145K228K
896M144K144K228K
900M144K144K229K
904M145K142K226K
908M146K139K228K
912M145K142K227K
916M145K145K225K
920M144K140K228K
924M144K141K225K
928M144K138K226K
932M144K149K226K
936M144K145K227K
940M143K142K223K
944M144K141K227K
948M143K142K225K
952M142K146K225K
956M144K149K226K
960M144K137K227K
964M143K150K227K
968M141K154K226K
972M142K144K223K
976M142K144K226K
980M142K141K226K
984M141K148K226K
988M142K147K227K
992M141K143K225K
996M140K155K225K
1B140K147K225K

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

The construction speed showcases a consistent behavior. Each time the index size doubles, we observe a slight decrease in speed. Such behavior is characteristic of high-performance software that uses flat data structures, such as flat hash-tables with linear probing, that expand by powers of two for efficient lookups. For instance, after reaching 1 million entries, the capacity increases to 2 million. USearch employs several of these structures. Notably, even with a dataset of 1 billion entries, its indexing speed remains above 50,000 insertions per second, faster than a FAISS setup with a dataset one-tenth the size.

Search speeds are even more impressive. On average, USearch handles 150,000 queries per second for the 32-bit floating-point vectors. With 8-bit values, the rate is around 225,000 queries per second.

Fig. 9Top-1 recall eases from 92% to 82% at 1 B

Top-1 recall percent

80%85%90%95%100%200M400M600M800M1B83.7% f3283.6% i883.5% f16

index size, vectors

VectorsUSearch f32USearch f16USearch i8
4M98.9%98.9%98.8%
8M98.0%98.0%98.0%
12M97.4%97.4%97.3%
16M96.8%96.9%96.7%
20M96.4%96.4%96.0%
24M95.9%95.9%95.4%
28M95.5%95.6%94.9%
32M95.1%95.2%94.8%
36M94.9%94.8%94.5%
40M94.7%94.7%94.3%
44M94.5%94.6%94.1%
48M94.3%94.4%94.0%
52M94.0%94.2%93.9%
56M93.9%94.0%93.6%
60M93.6%93.7%93.4%
64M93.4%93.4%93.2%
68M93.3%93.4%93.0%
72M93.2%93.3%92.8%
76M93.1%93.2%92.8%
80M93.0%92.9%92.5%
84M93.0%92.9%92.4%
88M92.8%92.8%92.3%
92M92.7%92.6%92.1%
96M92.7%92.4%92.0%
100M92.5%92.3%91.8%
104M92.5%92.3%91.8%
108M92.3%92.1%91.6%
112M92.1%91.9%91.5%
116M92.0%91.6%91.3%
120M91.9%91.5%91.4%
124M91.8%91.4%91.2%
128M91.7%91.3%91.1%
132M91.5%91.3%91.1%
136M91.4%91.3%90.9%
140M91.4%91.1%90.7%
144M91.2%91.0%90.7%
148M91.0%90.9%90.7%
152M91.0%90.7%90.7%
156M90.8%90.6%90.6%
160M90.8%90.5%90.4%
164M90.8%90.5%90.4%
168M90.8%90.4%90.4%
172M90.8%90.3%90.2%
176M90.7%90.4%90.1%
180M90.6%90.3%90.0%
184M90.6%90.3%89.9%
188M90.5%90.1%89.8%
192M90.2%90.0%89.8%
196M90.2%90.0%89.8%
200M90.2%89.8%89.8%
204M90.1%89.8%89.6%
208M90.0%89.7%89.4%
212M89.9%89.6%89.4%
216M89.8%89.6%89.4%
220M89.8%89.6%89.3%
224M89.7%89.5%89.3%
228M89.6%89.3%89.2%
232M89.5%89.2%89.2%
236M89.4%89.2%89.3%
240M89.5%89.2%89.2%
244M89.4%89.1%89.1%
248M89.3%89.1%89.0%
252M89.3%89.0%88.9%
256M89.2%88.9%89.0%
260M89.1%88.7%88.9%
264M89.0%88.6%88.9%
268M89.0%88.6%88.9%
272M89.0%88.6%88.8%
276M88.9%88.5%88.6%
280M88.7%88.4%88.5%
284M88.6%88.4%88.3%
288M88.5%88.3%88.3%
292M88.5%88.4%88.3%
296M88.5%88.4%88.2%
300M88.5%88.4%88.2%
304M88.5%88.3%88.2%
308M88.5%88.2%88.2%
312M88.5%88.2%88.1%
316M88.4%88.2%88.0%
320M88.3%88.2%88.0%
324M88.3%88.1%88.0%
328M88.1%88.0%87.9%
332M88.0%87.7%87.8%
336M88.0%87.6%87.8%
340M87.8%87.6%87.8%
344M87.8%87.7%87.8%
348M87.8%87.7%87.7%
352M87.8%87.6%87.6%
356M87.7%87.6%87.5%
360M87.6%87.6%87.5%
364M87.7%87.5%87.6%
368M87.7%87.5%87.6%
372M87.7%87.5%87.5%
376M87.6%87.3%87.4%
380M87.6%87.2%87.3%
384M87.5%87.2%87.4%
388M87.5%87.2%87.3%
392M87.5%87.2%87.2%
396M87.4%87.1%87.2%
400M87.3%87.0%87.1%
404M87.3%86.8%87.1%
408M87.2%86.8%87.1%
412M87.2%86.9%87.0%
416M87.1%86.8%86.9%
420M87.2%86.8%86.8%
424M87.1%86.8%86.8%
428M87.0%86.7%86.8%
432M87.0%86.7%86.6%
436M87.0%86.6%86.6%
440M87.0%86.7%86.5%
444M86.8%86.7%86.6%
448M86.8%86.8%86.6%
452M86.9%86.8%86.5%
456M86.8%86.8%86.5%
460M86.7%86.8%86.4%
464M86.7%86.7%86.4%
468M86.7%86.7%86.4%
472M86.7%86.6%86.3%
476M86.7%86.6%86.2%
480M86.6%86.5%86.2%
484M86.6%86.5%86.1%
488M86.6%86.5%86.1%
492M86.5%86.3%86.2%
496M86.5%86.2%86.1%
500M86.4%86.2%86.1%
504M86.4%86.2%86.0%
508M86.3%86.1%86.0%
512M86.3%86.1%86.0%
516M86.2%86.0%86.0%
520M86.2%85.9%86.0%
524M86.2%85.8%86.1%
528M86.1%85.8%86.1%
532M86.0%85.8%86.1%
536M86.0%85.8%86.0%
540M85.9%85.8%85.9%
544M85.9%85.9%86.0%
548M85.9%85.9%85.9%
552M85.9%85.8%85.9%
556M85.9%85.9%85.8%
560M85.8%85.8%85.8%
564M85.7%85.8%85.9%
568M85.6%85.7%85.9%
572M85.6%85.6%85.9%
576M85.6%85.6%85.9%
580M85.7%85.6%85.9%
584M85.7%85.7%85.9%
588M85.6%85.7%85.9%
592M85.7%85.7%85.9%
596M85.8%85.7%85.9%
600M85.7%85.5%85.9%
604M85.6%85.4%85.8%
608M85.7%85.4%85.7%
612M85.6%85.5%85.6%
616M85.5%85.4%85.6%
620M85.5%85.4%85.6%
624M85.4%85.4%85.6%
628M85.4%85.3%85.5%
632M85.4%85.2%85.5%
636M85.4%85.2%85.4%
640M85.4%85.1%85.4%
644M85.4%85.1%85.3%
648M85.4%85.1%85.4%
652M85.4%85.1%85.3%
656M85.4%85.1%85.3%
660M85.4%85.0%85.3%
664M85.4%85.0%85.3%
668M85.4%85.0%85.3%
672M85.3%85.1%85.2%
676M85.2%85.1%85.1%
680M85.2%85.0%85.0%
684M85.2%85.0%85.1%
688M85.1%85.0%85.0%
692M85.1%85.0%85.0%
696M85.2%84.9%84.9%
700M85.2%84.9%84.8%
704M85.2%84.8%84.8%
708M85.2%84.8%84.8%
712M85.1%84.7%84.8%
716M85.1%84.7%84.8%
720M85.2%84.6%84.8%
724M85.2%84.5%84.7%
728M85.2%84.5%84.7%
732M85.1%84.5%84.7%
736M85.1%84.5%84.8%
740M85.2%84.5%84.8%
744M85.2%84.5%84.9%
748M85.2%84.5%84.9%
752M85.2%84.6%84.9%
756M85.1%84.6%84.8%
760M85.0%84.5%84.8%
764M85.0%84.4%84.8%
768M85.0%84.3%84.8%
772M85.0%84.3%84.8%
776M84.9%84.2%84.8%
780M84.9%84.3%84.7%
784M84.8%84.2%84.6%
788M84.8%84.2%84.6%
792M84.8%84.3%84.6%
796M84.7%84.2%84.6%
800M84.7%84.2%84.6%
804M84.7%84.2%84.6%
808M84.8%84.2%84.6%
812M84.8%84.2%84.6%
816M84.7%84.3%84.7%
820M84.7%84.2%84.6%
824M84.7%84.1%84.5%
828M84.6%84.0%84.5%
832M84.5%84.0%84.5%
836M84.5%83.9%84.4%
840M84.5%83.9%84.4%
844M84.5%83.8%84.4%
848M84.4%83.8%84.4%
852M84.5%83.8%84.3%
856M84.5%83.9%84.2%
860M84.6%83.9%84.0%
864M84.6%84.0%83.9%
868M84.6%83.9%83.8%
872M84.6%83.9%83.8%
876M84.6%83.9%83.8%
880M84.5%83.9%83.8%
884M84.5%83.8%83.8%
888M84.4%83.8%83.9%
892M84.4%83.7%83.9%
896M84.3%83.7%83.9%
900M84.3%83.7%83.9%
904M84.3%83.8%84.0%
908M84.4%83.7%83.9%
912M84.4%83.7%83.9%
916M84.5%83.7%83.9%
920M84.5%83.7%83.9%
924M84.5%83.7%83.9%
928M84.5%83.7%83.9%
932M84.5%83.7%83.9%
936M84.5%83.6%83.8%
940M84.5%83.6%83.8%
944M84.5%83.5%83.8%
948M84.4%83.5%83.7%
952M84.3%83.5%83.7%
956M84.3%83.5%83.7%
960M84.2%83.6%83.7%
964M84.1%83.6%83.7%
968M84.0%83.5%83.7%
972M83.9%83.5%83.6%
976M83.9%83.5%83.7%
980M83.7%83.6%83.7%
984M83.6%83.6%83.7%
988M83.7%83.6%83.7%
992M83.7%83.5%83.6%
996M83.7%83.5%83.6%
1B83.7%83.5%83.6%

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

Fig. 10Memory grows linearly with the vectors

Memory gigabytes

0 GB200 GB400 GB600 GB200M400M600M800M1B589 GB f32410 GB f16321 GB i8

index size, vectors

VectorsUSearch f32USearch f16USearch i8
4M2.2 GB1.4 GB1.3 GB
8M4.6 GB3.1 GB2.6 GB
12M7.1 GB5.0 GB4.1 GB
16M9.3 GB6.4 GB5.2 GB
20M12.1 GB8.5 GB7.0 GB
24M14.3 GB10.0 GB8.1 GB
28M16.4 GB11.4 GB9.2 GB
32M18.6 GB12.8 GB10.3 GB
36M22.3 GB15.8 GB12.9 GB
40M24.4 GB17.2 GB14.0 GB
44M26.6 GB18.7 GB15.1 GB
48M28.7 GB20.1 GB16.1 GB
52M30.9 GB21.6 GB17.2 GB
56M33.0 GB23.0 GB18.3 GB
60M35.2 GB24.4 GB19.4 GB
64M37.3 GB25.9 GB20.5 GB
68M42.5 GB30.4 GB24.6 GB
72M44.7 GB31.8 GB25.7 GB
76M46.9 GB33.3 GB26.8 GB
80M49.0 GB34.7 GB27.9 GB
84M51.2 GB36.1 GB29.0 GB
88M53.3 GB37.6 GB30.1 GB
92M55.5 GB39.0 GB31.2 GB
96M57.7 GB40.5 GB32.3 GB
100M59.8 GB41.9 GB33.3 GB
104M62.0 GB43.4 GB34.4 GB
108M64.2 GB44.8 GB35.5 GB
112M66.3 GB46.3 GB36.6 GB
116M68.5 GB47.7 GB37.7 GB
120M70.6 GB49.2 GB38.8 GB
124M72.8 GB50.6 GB39.9 GB
128M75.0 GB52.1 GB41.0 GB
132M77.1 GB53.5 GB42.0 GB
136M85.3 GB61.0 GB49.2 GB
140M87.5 GB62.5 GB50.3 GB
144M89.7 GB63.9 GB51.3 GB
148M91.8 GB65.4 GB52.4 GB
152M94.0 GB66.8 GB53.5 GB
156M96.2 GB68.3 GB54.6 GB
160M98.3 GB69.7 GB55.7 GB
164M100 GB71.2 GB56.8 GB
168M103 GB72.6 GB57.9 GB
172M105 GB74.0 GB59.0 GB
176M107 GB75.5 GB60.0 GB
180M109 GB76.9 GB61.1 GB
184M111 GB78.4 GB62.2 GB
188M113 GB79.8 GB63.3 GB
192M116 GB81.3 GB64.4 GB
196M118 GB82.7 GB65.5 GB
200M120 GB84.2 GB66.6 GB
204M122 GB85.6 GB67.7 GB
208M124 GB87.0 GB68.8 GB
212M126 GB88.5 GB69.8 GB
216M129 GB89.9 GB70.9 GB
220M131 GB91.4 GB72.0 GB
224M133 GB92.8 GB73.1 GB
228M135 GB94.3 GB74.2 GB
232M137 GB95.7 GB75.3 GB
236M139 GB97.2 GB76.4 GB
240M142 GB98.6 GB77.5 GB
244M144 GB100 GB78.6 GB
248M146 GB102 GB79.6 GB
252M148 GB103 GB80.7 GB
256M150 GB104 GB81.8 GB
260M152 GB106 GB82.9 GB
264M155 GB107 GB84.0 GB
268M157 GB109 GB85.1 GB
272M171 GB122 GB98.3 GB
276M173 GB124 GB99.4 GB
280M175 GB125 GB101 GB
284M178 GB127 GB102 GB
288M180 GB128 GB103 GB
292M182 GB130 GB104 GB
296M184 GB131 GB105 GB
300M186 GB132 GB106 GB
304M188 GB134 GB107 GB
308M190 GB135 GB108 GB
312M193 GB137 GB109 GB
316M195 GB138 GB110 GB
320M197 GB140 GB111 GB
324M199 GB141 GB112 GB
328M201 GB143 GB114 GB
332M203 GB144 GB115 GB
336M206 GB145 GB116 GB
340M208 GB147 GB117 GB
344M210 GB148 GB118 GB
348M212 GB150 GB119 GB
352M214 GB151 GB120 GB
356M216 GB153 GB121 GB
360M219 GB154 GB122 GB
364M221 GB156 GB123 GB
368M223 GB157 GB124 GB
372M225 GB159 GB126 GB
376M227 GB160 GB127 GB
380M229 GB161 GB128 GB
384M232 GB163 GB129 GB
388M234 GB164 GB130 GB
392M236 GB166 GB131 GB
396M238 GB167 GB132 GB
400M240 GB169 GB133 GB
404M242 GB170 GB134 GB
408M245 GB172 GB135 GB
412M247 GB173 GB136 GB
416M249 GB174 GB138 GB
420M251 GB176 GB139 GB
424M253 GB177 GB140 GB
428M255 GB179 GB141 GB
432M257 GB180 GB142 GB
436M260 GB182 GB143 GB
440M262 GB183 GB144 GB
444M264 GB185 GB145 GB
448M266 GB186 GB146 GB
452M268 GB187 GB147 GB
456M270 GB189 GB148 GB
460M273 GB190 GB150 GB
464M275 GB192 GB151 GB
468M277 GB193 GB152 GB
472M279 GB195 GB153 GB
476M281 GB196 GB154 GB
480M283 GB198 GB155 GB
484M286 GB199 GB156 GB
488M288 GB200 GB157 GB
492M290 GB202 GB158 GB
496M292 GB203 GB159 GB
500M294 GB205 GB160 GB
504M296 GB206 GB161 GB
508M299 GB208 GB163 GB
512M301 GB209 GB164 GB
516M303 GB211 GB165 GB
520M305 GB212 GB166 GB
524M307 GB213 GB167 GB
528M309 GB215 GB168 GB
532M312 GB216 GB169 GB
536M314 GB218 GB170 GB
540M340 GB244 GB196 GB
544M342 GB245 GB197 GB
548M344 GB246 GB198 GB
552M347 GB248 GB199 GB
556M349 GB249 GB200 GB
560M351 GB251 GB201 GB
564M353 GB252 GB202 GB
568M355 GB254 GB203 GB
572M357 GB255 GB204 GB
576M360 GB257 GB205 GB
580M362 GB258 GB206 GB
584M364 GB259 GB208 GB
588M366 GB261 GB209 GB
592M368 GB262 GB210 GB
596M370 GB264 GB211 GB
600M373 GB265 GB212 GB
604M375 GB267 GB213 GB
608M377 GB268 GB214 GB
612M379 GB270 GB215 GB
616M381 GB271 GB216 GB
620M383 GB273 GB217 GB
624M386 GB274 GB218 GB
628M388 GB275 GB220 GB
632M390 GB277 GB221 GB
636M392 GB278 GB222 GB
640M394 GB280 GB223 GB
644M396 GB281 GB224 GB
648M398 GB283 GB225 GB
652M401 GB284 GB226 GB
656M403 GB286 GB227 GB
660M405 GB287 GB228 GB
664M407 GB288 GB229 GB
668M409 GB290 GB230 GB
672M411 GB291 GB232 GB
676M414 GB293 GB233 GB
680M416 GB294 GB234 GB
684M418 GB296 GB235 GB
688M420 GB297 GB236 GB
692M422 GB299 GB237 GB
696M424 GB300 GB238 GB
700M427 GB301 GB239 GB
704M429 GB303 GB240 GB
708M431 GB304 GB241 GB
712M433 GB306 GB242 GB
716M435 GB307 GB243 GB
720M437 GB309 GB245 GB
724M440 GB310 GB246 GB
728M442 GB312 GB247 GB
732M444 GB313 GB248 GB
736M446 GB314 GB249 GB
740M448 GB316 GB250 GB
744M450 GB317 GB251 GB
748M453 GB319 GB252 GB
752M455 GB320 GB253 GB
756M457 GB322 GB254 GB
760M459 GB323 GB255 GB
764M461 GB325 GB257 GB
768M463 GB326 GB258 GB
772M466 GB327 GB259 GB
776M468 GB329 GB260 GB
780M470 GB330 GB261 GB
784M472 GB332 GB262 GB
788M474 GB333 GB263 GB
792M476 GB335 GB264 GB
796M478 GB336 GB265 GB
800M481 GB338 GB266 GB
804M483 GB339 GB267 GB
808M485 GB340 GB269 GB
812M487 GB342 GB270 GB
816M489 GB343 GB271 GB
820M491 GB345 GB272 GB
824M494 GB346 GB273 GB
828M496 GB348 GB274 GB
832M498 GB349 GB275 GB
836M500 GB351 GB276 GB
840M502 GB352 GB277 GB
844M504 GB353 GB278 GB
848M507 GB355 GB279 GB
852M509 GB356 GB281 GB
856M511 GB358 GB282 GB
860M513 GB359 GB283 GB
864M515 GB361 GB284 GB
868M517 GB362 GB285 GB
872M520 GB364 GB286 GB
876M522 GB365 GB287 GB
880M524 GB367 GB288 GB
884M526 GB368 GB289 GB
888M528 GB369 GB290 GB
892M530 GB371 GB291 GB
896M533 GB372 GB293 GB
900M535 GB374 GB294 GB
904M537 GB375 GB295 GB
908M539 GB377 GB296 GB
912M541 GB378 GB297 GB
916M543 GB380 GB298 GB
920M546 GB381 GB299 GB
924M548 GB382 GB300 GB
928M550 GB384 GB301 GB
932M552 GB385 GB302 GB
936M554 GB387 GB303 GB
940M556 GB388 GB304 GB
944M558 GB390 GB306 GB
948M561 GB391 GB307 GB
952M563 GB393 GB308 GB
956M565 GB394 GB309 GB
960M567 GB395 GB310 GB
964M569 GB397 GB311 GB
968M571 GB398 GB312 GB
972M574 GB400 GB313 GB
976M576 GB401 GB314 GB
980M578 GB403 GB315 GB
984M580 GB404 GB316 GB
988M582 GB405 GB318 GB
992M584 GB407 GB319 GB
996M587 GB408 GB320 GB
1B589 GB410 GB321 GB

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks · Deep1B

However, as the dataset grows, there’s a minor trade-off in search accuracy. From a notable 92% Top-1 recall with 100 million vectors, it decreases to 82% with 1 billion. Adjusting the “connectivity” parameter can counter this decrease. By making the proximity graph denser at every hierarchical level, we can establish more connections, enhancing accuracy, though it might use more memory.

Memory consumption for the HNSW structure linearly correlates with the number of vectors. For context, using single precision, the dataset alone occupies around 400 GB.

1 billion vectors × 96 dimensions × 4 bytes/dimension = 400 GB

Considering the complete index is less than 600 GB (including the vectors), it suggests that it uses an additional 200 bytes per entry. This extra storage aids in faster navigation in sub-linear time frames. As vector dimensions increase, this additional space becomes less significant, a topic we will delve into in the subsequent benchmarks.

§ Scaling to 1536 Dimensions

In standard high-school math, 96 dimensions might seem extensive. However, in the realm of modern AI models, dimensions can reach up to 1536. Surprisingly, many benchmarks don’t address the complexities that come with these higher-dimensional representations.

Fig. 11At 1536 dimensions, indexing is 2–4x faster

Indexing speed vectors per second

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
020K40K60K20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K21.0K37.0K47.9K16.2K27.9K37.4K
1M17.9K31.9K42.4K13.9K21.4K30.1K
1.5M17.0K29.9K40.3K11.9K19.5K27.2K
2M16.4K28.9K39.1K11.3K18.5K25.5K
2.5M16.0K28.2K38.6K11.7K19.6K25.4K
3M15.7K27.8K38.4K10.8K18.7K24.4K
3.5M15.5K27.5K38.4K9.98K17.3K23.5K
4M15.3K27.1K38.5K10.4K17.2K23.0K
4.5M15.2K26.9K38.8K11.7K17.1K22.4K
5M15.1K26.8K38.8K13.4K17.0K22.3K
5.5M14.9K26.6K38.4K14.4K16.8K22.6K
6M14.9K26.6K38.3K14.5K16.6K23.1K
6.5M14.8K26.5K38.0K10.7K14.2K20.7K
7M14.7K26.4K37.7K8.39K13.8K19.2K
7.5M14.7K26.3K37.6K11.6K16.1K20.0K
8M14.5K25.9K36.9K13.2K17.1K19.8K
8.5M14.5K25.8K36.6K12.8K17.8K19.8K
9M14.5K26.0K36.8K12.8K18.2K19.5K
9.5M14.4K25.9K36.6K13.2K18.5K19.2K
10M14.4K25.8K36.5K13.3K18.8K19.0K
10.5M14.3K25.8K36.4K13.2K19.0K18.7K
11M14.3K25.7K36.2K13.1K19.1K18.6K
11.5M14.3K25.7K36.1K12.9K19.1K18.3K
12M14.2K25.7K36.0K12.7K19.2K18.1K
12.5M14.1K25.6K35.7K11.5K17.5K16.7K
13M14.0K25.5K35.4K8.69K13.7K15.9K
13.5M14.0K25.5K35.4K7.09K11.7K16.8K
14M14.0K25.5K35.3K7.18K12.2K17.0K
14.5M14.0K25.6K35.3K7.28K12.5K16.9K
15M13.9K25.5K35.2K7.36K12.8K16.7K
15.5M13.9K25.4K35.1K7.36K12.8K16.2K
16M13.8K25.4K35.0K7.43K13.0K16.1K
16.5M13.7K24.9K34.1K7.51K13.2K16.2K
17M13.7K24.8K34.0K7.53K13.2K16.0K
17.5M13.8K25.2K34.7K7.56K13.2K15.9K
18M13.7K25.1K34.5K7.58K13.2K15.8K
18.5M13.8K25.1K34.6K7.58K13.4K15.7K
19M13.8K25.1K34.6K7.59K13.5K15.6K
19.5M13.7K25.1K34.4K7.58K13.6K15.5K
20M13.7K25.1K34.4K7.57K13.5K15.3K
20.5M13.7K25.1K34.4K7.58K13.5K15.2K
21M13.6K25.0K34.3K7.57K13.4K15.1K
21.5M13.5K24.8K34.0K7.55K13.2K15.0K
22M13.5K24.8K33.9K7.52K13.1K15.0K
22.5M13.6K24.9K34.0K7.50K13.0K15.0K
23M13.6K24.9K34.1K7.49K12.9K15.0K
23.5M13.5K24.9K33.9K7.47K12.8K14.9K
24M13.5K24.8K33.8K7.44K12.7K14.9K
24.5M13.5K24.8K33.9K7.40K12.6K14.9K
25M13.5K24.8K33.9K7.38K12.5K14.9K
25.5M13.5K24.8K33.8K6.38K10.8K13.3K
26M13.5K24.8K33.7K5.68K9.38K12.3K
26.5M13.4K24.7K33.6K6.06K9.67K13.1K
27M13.4K24.7K33.6K6.16K9.80K13.3K
27.5M13.4K24.7K33.4K6.21K9.88K13.4K
28M13.4K24.6K33.5K6.22K9.91K13.4K
28.5M13.4K24.7K33.5K6.26K9.95K13.4K
29M13.4K24.6K33.5K6.32K9.97K13.3K
29.5M13.4K24.6K33.4K6.39K9.98K13.2K
30M13.4K24.6K33.4K6.48K9.99K13.2K
30.5M13.4K24.6K33.4K6.56K9.98K13.0K
31M13.3K24.5K33.3K6.64K10.0K12.9K
31.5M13.3K24.5K33.3K6.63K9.83K12.5K
32M13.3K24.6K33.3K6.71K9.84K12.4K
32.5M13.3K24.6K33.3K6.75K10.0K12.6K
33M13.3K24.5K33.3K6.57K10.0K12.5K
33.5M13.0K23.7K32.0K6.24K9.02K11.0K
34M13.0K23.7K31.9K6.01K7.80K9.21K
34.5M13.2K24.3K32.9K6.14K7.60K8.81K
35M13.2K24.3K32.9K6.38K7.59K8.72K
35.5M13.2K24.4K32.9K6.62K7.49K8.68K
36M13.2K24.3K32.9K6.81K7.48K8.64K
36.5M13.2K24.3K32.9K6.91K7.47K8.56K
37M13.2K24.3K32.9K6.96K7.46K8.49K
37.5M13.2K24.3K32.8K6.95K7.46K8.43K
38M13.1K24.2K32.6K6.88K7.43K8.35K
38.5M13.1K24.2K32.6K6.78K7.41K8.25K
39M13.1K24.3K32.6K6.72K7.43K8.16K
39.5M13.1K24.2K32.6K6.69K7.43K8.11K
40M13.2K24.2K32.6K6.67K7.45K8.05K
40.5M13.1K24.1K32.5K6.62K7.44K7.99K
41M13.1K24.2K32.5K6.60K7.44K7.94K
41.5M13.1K24.2K32.5K6.60K7.43K7.85K
42M13.1K24.1K32.5K6.56K7.42K7.81K
42.5M13.1K24.1K32.4K6.53K7.38K7.77K
43M13.1K24.2K32.3K6.49K7.36K7.73K
43.5M13.1K24.1K32.4K6.44K7.35K7.74K
44M13.0K24.1K32.4K6.43K7.33K7.80K
44.5M13.0K24.0K32.2K6.43K7.28K7.85K
45M13.0K24.0K32.2K6.37K7.24K7.81K
45.5M13.0K24.0K32.2K6.32K7.24K7.72K
46M13.0K24.0K32.2K6.30K7.24K7.62K
46.5M13.0K24.1K32.2K6.27K7.28K7.43K
47M13.0K24.1K32.2K6.25K7.35K7.43K
47.5M13.0K24.0K32.2K6.24K7.39K7.52K
48M13.0K24.0K32.2K6.19K7.36K7.44K
48.5M13.0K24.0K32.2K6.14K7.32K7.38K
49M13.0K24.0K32.1K6.10K7.30K7.30K
49.5M13.0K24.0K32.1K6.02K7.24K7.21K
50M13.0K24.0K32.1K5.98K7.18K7.14K
50.5M13.0K24.0K32.1K5.99K7.11K7.09K
51M13.0K24.0K32.1K5.38K6.29K6.43K
51.5M12.9K23.9K32.0K5.22K5.51K6.07K
52M13.0K23.9K32.0K5.67K5.46K6.42K
52.5M13.0K23.9K32.0K5.64K5.45K6.55K
53M12.9K23.9K31.9K5.62K5.49K6.68K
53.5M12.9K23.8K31.9K5.62K5.49K6.79K
54M13.0K23.9K31.9K5.59K5.49K6.83K
54.5M13.0K24.0K32.0K5.55K5.49K6.80K
55M12.9K23.9K32.0K5.53K5.49K6.76K
55.5M12.8K23.9K31.9K5.53K5.48K6.73K
56M12.8K23.9K31.9K5.52K5.47K6.61K
56.5M12.8K23.8K31.8K5.50K5.46K6.52K
57M12.8K23.8K31.7K5.47K5.44K6.52K
57.5M12.8K23.8K31.8K5.44K5.40K6.52K
58M12.9K23.8K31.8K5.42K5.39K6.52K
58.5M12.8K23.8K31.8K5.40K5.38K6.48K
59M12.8K23.7K31.7K5.35K5.33K6.43K
59.5M12.9K23.8K31.8K5.32K5.28K6.38K
60M12.8K23.9K31.9K5.31K5.31K6.37K
60.5M12.4K23.7K31.8K5.27K5.44K6.38K
61M12.1K23.7K31.6K5.25K5.63K6.35K
61.5M12.3K23.8K31.6K5.22K5.80K6.31K
62M12.4K23.8K31.7K5.17K5.95K6.25K
62.5M12.2K23.8K31.8K5.14K6.03K6.21K
63M12.2K23.7K31.7K5.01K5.82K6.02K
63.5M12.6K23.7K31.6K4.99K5.75K5.97K
64M12.6K23.7K31.7K5.09K5.86K6.09K
64.5M12.6K23.8K31.7K5.07K5.79K6.03K
65M12.8K23.8K31.7K5.04K5.72K6.00K
65.5M12.6K23.7K31.6K5.02K5.62K5.96K
66M12.6K23.6K31.6K5.00K5.54K5.89K
66.5M12.6K23.7K31.6K4.99K5.45K5.83K
67M12.0K22.6K29.8K4.96K5.35K5.78K
67.5M12.1K22.6K29.5K4.94K5.26K5.71K
68M12.5K23.7K31.1K4.94K5.24K5.72K
68.5M12.2K23.6K31.1K4.93K5.26K5.74K
69M12.2K23.6K31.2K4.90K5.28K5.71K
69.5M12.6K23.6K31.2K4.85K5.29K5.69K
70M12.4K23.6K31.2K4.78K5.27K5.66K
70.5M12.5K23.7K31.2K4.75K5.27K5.65K
71M12.8K23.6K31.2K4.74K5.26K5.63K
71.5M12.7K23.5K31.0K4.70K5.24K5.59K
72M12.5K23.4K30.9K4.66K5.23K5.56K
72.5M12.2K23.5K31.0K4.57K5.22K5.51K
73M12.1K23.6K31.1K4.44K5.23K5.49K
73.5M12.4K23.6K31.1K4.30K5.21K5.50K
74M12.3K23.4K31.0K4.22K5.20K5.49K
74.5M12.3K23.5K31.0K4.22K5.17K5.45K
75M12.5K23.5K31.1K4.26K5.16K5.42K
75.5M12.4K23.5K31.1K4.27K5.16K5.41K
76M12.2K23.5K31.1K4.27K5.14K5.38K
76.5M12.4K23.5K30.9K4.27K5.12K5.35K
77M12.4K23.4K30.9K4.27K5.15K5.31K
77.5M12.3K23.4K31.0K4.28K5.18K5.30K
78M12.6K23.4K30.9K4.28K5.17K5.26K
78.5M12.5K23.4K30.9K4.28K5.17K5.20K
79M12.5K23.4K31.0K4.28K5.15K5.18K
79.5M12.3K23.3K31.0K4.27K5.10K5.17K
80M12.3K23.3K30.9K4.28K5.06K5.16K
80.5M12.7K23.4K30.9K4.27K5.03K5.14K
81M12.5K23.4K30.9K4.24K5.01K5.12K
81.5M12.2K23.4K30.9K4.24K4.99K5.10K
82M12.1K23.4K30.9K4.24K4.98K5.07K
82.5M12.1K23.4K30.9K4.25K4.96K5.05K
83M12.0K23.4K30.9K4.25K4.94K5.02K
83.5M12.3K23.4K30.8K4.24K4.93K5.02K
84M12.4K23.4K30.8K4.24K4.91K4.98K
84.5M12.4K23.4K30.8K4.23K4.89K4.91K
85M12.2K23.3K30.8K4.22K4.85K4.88K
85.5M12.0K23.3K30.9K4.19K4.80K4.87K
86M12.2K23.3K30.8K4.18K4.78K4.86K
86.5M12.2K23.4K30.8K4.19K4.77K4.85K
87M12.1K23.3K30.7K4.15K4.75K4.83K
87.5M12.4K23.3K30.7K4.09K4.73K4.82K
88M12.6K23.4K30.8K4.10K4.70K4.79K
88.5M12.6K23.4K30.9K4.11K4.68K4.75K
89M12.2K23.4K30.8K4.10K4.67K4.76K
89.5M12.1K23.3K30.7K4.09K4.64K4.74K
90M12.5K23.3K30.7K4.07K4.60K4.69K
90.5M12.5K23.2K30.6K4.06K4.58K4.64K
91M12.6K23.2K30.6K4.07K4.55K4.63K
91.5M12.4K23.2K30.7K4.08K4.55K4.63K
92M12.2K23.3K30.6K4.08K4.55K4.60K
92.5M12.3K23.2K30.6K4.09K4.51K4.58K
93M12.3K23.3K30.7K4.11K4.50K4.52K
93.5M11.9K23.4K30.8K4.10K4.50K4.47K
94M11.8K23.3K30.6K4.09K4.50K4.44K
94.5M12.1K23.1K30.5K4.08K4.47K4.40K
95M12.0K23.2K30.6K4.09K4.42K4.37K
95.5M12.2K23.3K30.7K4.10K4.38K4.35K
96M12.4K23.3K30.7K4.12K4.34K4.26K
96.5M12.4K23.2K30.7K4.12K4.33K4.26K
97M12.1K23.2K30.6K4.10K4.32K4.35K
97.5M11.9K23.2K30.6K4.03K4.29K4.35K
98M12.4K23.3K30.8K4.00K4.30K4.34K
98.5M12.2K23.4K30.8K3.97K4.32K4.32K
99M11.9K23.3K30.6K3.94K4.28K4.30K
99.5M12.1K23.2K30.6K3.93K4.24K4.27K
100M12.2K23.2K30.6K3.93K4.24K4.26K

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks

Fig. 12At 1536 dimensions, search is 233–557x faster

Search speed queries per second, log scale

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
101001K10K100K20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K22.8K26.9K42.4K19.4K29.8K41.4K
1M26.5K28.5K46.1K15.7K23.4K31.6K
1.5M25.2K29.9K47.6K12.9K20.8K26.4K
2M20.5K27.9K53.8K11.9K17.6K23.3K
2.5M14.3K29.1K56.6K11.9K16.3K19.7K
3M17.9K27.5K54.6K10.7K15.1K17.4K
3.5M23.4K27.9K54.0K9.57K13.8K15.4K
4M23.3K31.4K53.5K9.41K13.3K13.6K
4.5M23.0K34.0K53.0K9.76K11.5K12.5K
5M22.8K35.0K52.2K10.4K11.2K11.8K
5.5M22.4K35.8K52.2K10.4K11.8K11.5K
6M22.1K34.9K52.9K10.2K10.7K11.1K
6.5M21.8K34.9K52.4K8.96K9.19K10.6K
7M21.9K35.6K51.6K7.47K8.92K9.95K
7.5M21.8K34.9K50.9K7.45K9.23K9.48K
8M21.2K34.5K51.4K7.62K9.05K9.05K
8.5M20.6K35.6K50.7K7.71K8.85K8.63K
9M20.7K35.8K50.4K7.84K8.70K8.12K
9.5M21.3K34.6K51.6K7.88K8.54K7.52K
10M21.5K33.8K51.2K7.82K8.39K7.27K
10.5M21.6K34.0K50.1K7.74K8.23K7.27K
11M21.5K34.3K50.3K7.61K8.04K6.95K
11.5M21.6K34.6K50.4K7.47K8.04K6.72K
12M21.4K34.6K48.4K7.40K8.06K6.67K
12.5M21.3K34.3K47.9K7.12K7.92K6.44K
13M21.1K33.8K48.0K5.92K7.35K6.24K
13.5M21.1K33.2K48.1K4.78K6.81K6.13K
14M21.2K33.4K48.8K4.62K6.94K6.10K
14.5M21.3K34.3K49.3K4.67K6.72K6.17K
15M20.9K34.7K49.7K4.74K6.09K6.15K
15.5M20.8K34.5K49.3K4.67K5.82K6.11K
16M21.0K34.4K49.3K4.54K5.72K6.17K
16.5M21.2K34.8K49.2K4.52K5.59K6.13K
17M21.0K34.9K49.2K4.49K5.50K6.16K
17.5M20.5K34.8K48.9K4.46K5.41K6.15K
18M20.3K35.3K48.0K4.42K5.32K6.17K
18.5M20.3K35.5K47.8K4.33K5.23K6.24K
19M20.3K35.7K48.1K4.29K5.13K6.12K
19.5M20.3K35.4K48.1K4.31K5.10K5.99K
20M20.4K35.2K47.7K4.30K5.01K5.88K
20.5M20.1K35.1K47.8K4.27K4.91K5.91K
21M20.0K35.0K48.6K4.18K4.82K5.83K
21.5M20.0K35.8K48.4K4.11K4.73K5.62K
22M20.2K35.7K47.6K4.05K4.64K5.22K
22.5M20.2K35.7K46.9K3.99K4.56K4.72K
23M19.7K35.7K47.2K3.99K4.48K4.50K
23.5M20.0K35.3K47.7K3.96K4.39K4.43K
24M20.4K35.0K47.3K3.92K4.27K4.38K
24.5M20.1K34.7K47.4K3.92K4.19K4.31K
25M19.9K35.0K47.2K3.87K4.14K4.26K
25.5M20.2K35.0K46.9K3.62K4.03K4.19K
26M20.2K35.1K46.6K3.33K3.87K4.08K
26.5M20.1K34.5K47.3K3.25K3.75K4.00K
27M20.2K34.5K47.6K3.18K3.67K3.94K
27.5M20.0K35.1K47.0K3.12K3.62K3.87K
28M19.9K34.8K46.7K3.11K3.52K3.80K
28.5M19.8K35.4K46.6K3.03K3.43K3.74K
29M19.9K35.6K46.6K2.97K3.44K3.67K
29.5M19.9K35.3K46.8K2.96K3.40K3.61K
30M19.8K35.0K47.4K2.93K3.37K3.55K
30.5M19.8K34.4K47.7K2.93K3.34K3.49K
31M19.7K34.7K47.4K2.92K3.28K3.43K
31.5M19.6K35.0K46.9K2.84K3.29K3.39K
32M19.9K35.0K46.8K2.80K3.41K3.34K
32.5M19.8K34.9K46.8K2.80K3.48K3.32K
33M19.7K35.2K47.5K2.74K3.48K3.29K
33.5M20.1K35.4K47.9K1.67K2.16K2.00K
34M20.5K35.0K47.5K379462430
34.5M20.7K35.0K46.7K116114117
35M20.9K35.0K45.8K114113115
35.5M21.0K35.2K45.9K112111114
36M21.0K35.4K46.6K111110112
36.5M20.7K35.3K46.4K109108111
37M20.8K35.1K45.3K108107109
37.5M21.0K34.6K44.7K106105108
38M20.8K34.8K45.3K105104107
38.5M20.7K35.1K45.6K104103105
39M20.7K35.0K45.5K103102104
39.5M20.8K34.8K44.9K102101103
40M20.7K34.9K44.9K100100102
40.5M20.7K35.0K46.1K99.099.0100
41M20.8K35.0K45.8K98.098.099.0
41.5M21.0K34.6K44.7K97.097.098.0
42M20.8K34.8K44.1K96.096.097.0
42.5M20.7K35.3K44.5K95.095.095.0
43M20.7K34.9K45.0K94.094.093.0
43.5M20.7K34.9K45.3K93.093.091.0
44M20.8K35.3K46.1K92.092.090.0
44.5M20.6K35.2K45.7K92.091.090.0
45M20.6K34.8K45.5K91.090.089.0
45.5M20.8K34.7K43.9K90.089.088.0
46M20.8K33.9K43.8K89.088.087.0
46.5M20.7K33.8K43.9K88.087.086.0
47M20.5K34.4K42.8K88.086.085.0
47.5M20.6K34.4K43.7K87.085.084.0
48M20.8K34.5K45.5K86.085.084.0
48.5M20.8K34.6K45.8K85.084.083.0
49M20.5K34.8K45.0K84.083.082.0
49.5M20.4K34.8K44.3K83.083.081.0
50M20.6K34.7K44.9K83.082.081.0
50.5M20.5K34.4K45.8K82.081.080.0
51M20.6K34.7K45.1K80.080.079.0
51.5M20.8K35.0K44.0K79.079.078.0
52M20.7K34.8K44.7K78.077.077.0
52.5M20.6K34.6K45.2K77.076.076.0
53M20.6K34.7K43.8K76.075.076.0
53.5M20.3K34.8K43.4K75.075.075.0
54M20.4K34.5K44.0K74.074.075.0
54.5M20.6K34.2K43.8K73.074.074.0
55M20.5K33.9K42.7K73.074.074.0
55.5M20.5K34.1K43.9K72.073.074.0
56M20.4K34.3K45.0K72.073.073.0
56.5M20.2K34.0K45.4K72.072.073.0
57M20.1K33.9K46.5K71.072.072.0
57.5M20.3K34.3K47.0K71.071.071.0
58M20.5K34.4K47.5K70.071.071.0
58.5M20.5K33.5K47.1K70.070.070.0
59M20.4K33.3K46.9K69.070.070.0
59.5M20.4K33.5K47.1K69.069.069.0
60M20.4K33.7K47.3K68.068.069.0
60.5M20.5K32.9K47.2K68.067.068.0
61M20.4K32.8K46.9K67.066.068.0
61.5M19.7K33.8K47.0K67.066.067.0
62M19.7K33.5K47.0K63.062.063.0
62.5M20.2K33.2K46.6K58.057.058.0
63M20.4K33.1K46.3K56.055.057.0
63.5M20.5K33.5K45.9K56.055.056.0
64M20.4K33.4K45.3K56.055.055.0
64.5M20.3K32.9K45.3K56.054.055.0
65M19.9K32.8K45.6K55.054.054.0
65.5M19.9K33.3K46.4K55.053.053.0
66M20.4K33.4K45.8K55.053.053.0
66.5M20.3K33.1K45.2K55.053.052.0
67M20.2K32.6K45.7K56.052.052.0
67.5M20.1K32.5K45.6K56.052.052.0
68M19.8K32.9K45.6K56.052.051.0
68.5M19.3K33.3K45.8K56.051.051.0
69M19.6K33.3K46.2K55.051.051.0
69.5M20.0K33.0K46.3K55.050.050.0
70M19.3K32.7K46.1K55.050.050.0
70.5M19.2K32.8K45.9K55.050.050.0
71M19.8K32.9K45.3K53.049.049.0
71.5M19.9K33.0K44.7K51.049.049.0
72M19.9K33.3K45.2K49.049.049.0
72.5M19.3K32.7K46.0K49.048.049.0
73M19.3K32.4K46.4K48.048.048.0
73.5M19.9K33.3K45.9K48.048.048.0
74M19.5K33.1K45.9K48.047.048.0
74.5M19.2K32.4K46.0K48.047.048.0
75M19.1K31.9K45.6K48.047.047.0
75.5M18.7K32.1K44.6K47.047.047.0
76M18.8K32.9K44.9K47.047.047.0
76.5M19.5K32.8K45.7K46.047.047.0
77M19.5K32.5K45.6K46.046.046.0
77.5M19.2K32.6K45.6K46.046.046.0
78M19.5K33.2K45.6K46.046.046.0
78.5M19.4K33.4K45.4K46.045.046.0
79M19.5K32.9K45.5K46.045.045.0
79.5M19.6K32.3K45.4K45.045.045.0
80M19.1K32.4K45.0K45.045.045.0
80.5M19.3K32.7K45.3K45.044.045.0
81M19.7K32.3K45.5K45.044.044.0
81.5M19.9K32.6K45.2K45.044.044.0
82M19.4K33.1K45.1K45.044.044.0
82.5M19.0K32.2K45.3K44.043.044.0
83M19.0K32.2K45.4K44.043.043.0
83.5M19.2K32.4K45.3K44.043.043.0
84M19.8K32.4K45.4K43.043.043.0
84.5M19.5K33.1K45.0K43.043.043.0
85M18.8K33.2K44.3K43.042.042.0
85.5M19.1K32.9K45.1K43.042.042.0
86M19.8K32.9K46.0K42.042.042.0
86.5M19.5K33.2K45.7K42.042.042.0
87M19.1K32.9K45.9K42.041.041.0
87.5M19.6K32.4K45.8K41.041.041.0
88M19.8K32.7K45.3K41.041.041.0
88.5M19.7K33.1K44.6K40.041.041.0
89M18.5K32.7K44.1K40.040.040.0
89.5M18.7K32.7K44.8K40.040.040.0
90M19.7K32.4K45.0K40.040.040.0
90.5M19.5K31.6K44.7K40.040.040.0
91M19.6K31.3K45.1K40.040.040.0
91.5M19.3K31.5K45.4K40.039.039.0
92M19.1K31.7K45.6K40.039.039.0
92.5M19.4K31.4K45.7K41.039.039.0
93M19.5K31.1K44.3K41.039.038.0
93.5M18.4K31.6K44.3K41.039.038.0
94M18.3K31.5K45.7K41.038.038.0
94.5M18.5K30.9K45.6K41.038.038.0
95M17.9K31.0K45.5K41.038.037.0
95.5M18.8K31.4K45.0K42.038.037.0
96M19.4K30.8K45.1K42.038.037.0
96.5M19.4K30.4K45.5K42.037.037.0
97M18.7K30.8K45.3K42.037.037.0
97.5M18.7K30.4K44.9K42.037.037.0
98M19.3K30.5K44.8K41.036.036.0
98.5M18.8K29.9K45.0K40.036.036.0
99M18.7K29.8K44.9K40.036.036.0
99.5M18.9K31.4K44.7K40.036.036.0
100M19.2K31.4K44.6K40.036.036.0

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks

DescriptionFAISSUSearchSpeedup
Indexing 32-bit floating-point vectors5.0 hours2.1 hours2.3x
Indexing 16-bit floating-point vectors4.1 hours1.1 hours3.6x
Indexing 8-bit integer vectors3.8 hours0.8 hours4.4x

When dealing with 1536-dimensional vectors, we observed a more evident decrease in search speed.

DescriptionFAISSUSearchSpeedup
Searching 32-bit floating-point vectors32.6 hours0.14 hours233x
Searching 16-bit floating-point vectors33.6 hours0.08 hours398x
Searching 8-bit integer vectors33.5 hours0.06 hours557x

The significant difference in performance is challenging to account for. Given the nature of the HNSW structure, the search speed should align with the construction speed since the system traverses an index every time a new entry is added.

Fig. 13Recall stays comparable at 1536 dimensions

Top-1 recall percent

  • USearch f32 f16 i8
  • FAISS f32 f16 i8
90%95%100%20M40M60M80M100M

index size, vectors

VectorsUSearch f32USearch f16USearch i8FAISS f32FAISS f16FAISS i8
500K99.9%99.8%99.9%99.9%99.9%99.9%
1M99.7%99.7%99.7%99.7%99.7%99.7%
1.5M99.5%99.5%99.5%99.6%99.6%99.6%
2M99.4%99.3%99.3%99.5%99.4%99.4%
2.5M99.3%99.2%99.2%99.3%99.3%99.3%
3M99.1%99.0%99.0%99.2%99.2%99.2%
3.5M99.0%98.9%98.9%99.0%99.1%99.1%
4M98.9%98.8%98.8%98.9%98.9%99.0%
4.5M98.8%98.7%98.6%98.8%98.8%98.9%
5M98.6%98.6%98.5%98.7%98.8%98.8%
5.5M98.5%98.5%98.3%98.7%98.7%98.8%
6M98.4%98.4%98.3%98.5%98.6%98.7%
6.5M98.3%98.3%98.2%98.3%98.5%98.5%
7M98.2%98.2%98.2%98.3%98.4%98.5%
7.5M98.1%98.1%98.1%98.2%98.3%98.4%
8M98.1%98.0%97.9%98.0%98.1%98.3%
8.5M97.9%97.9%97.8%98.0%98.0%98.2%
9M97.8%97.8%97.7%97.9%97.9%98.0%
9.5M97.7%97.6%97.6%97.7%97.8%98.0%
10M97.6%97.5%97.6%97.7%97.9%97.9%
10.5M97.5%97.5%97.5%97.7%97.9%97.8%
11M97.5%97.4%97.3%97.7%97.9%97.8%
11.5M97.4%97.3%97.2%97.5%97.8%97.7%
12M97.4%97.3%97.1%97.5%97.8%97.7%
12.5M97.3%97.2%97.0%97.4%97.7%97.6%
13M97.3%97.3%96.9%97.4%97.7%97.5%
13.5M97.3%97.2%96.9%97.4%97.6%97.5%
14M97.2%97.1%96.9%97.3%97.6%97.4%
14.5M97.1%97.0%96.8%97.1%97.5%97.3%
15M97.1%96.9%96.8%96.9%97.4%97.2%
15.5M97.0%96.9%96.7%96.9%97.3%97.1%
16M97.0%96.8%96.7%96.9%97.3%97.1%
16.5M96.9%96.7%96.6%96.9%97.2%97.1%
17M96.9%96.6%96.5%96.8%97.2%97.0%
17.5M96.9%96.7%96.5%96.7%97.2%96.9%
18M96.8%96.7%96.4%96.5%97.1%97.0%
18.5M96.7%96.6%96.4%96.4%97.0%97.0%
19M96.6%96.5%96.3%96.4%97.0%97.0%
19.5M96.5%96.4%96.3%96.3%97.0%97.0%
20M96.4%96.3%96.3%96.4%96.9%97.0%
20.5M96.4%96.3%96.2%96.3%96.9%96.9%
21M96.4%96.2%96.2%96.3%96.8%96.9%
21.5M96.4%96.1%96.2%96.2%96.8%96.8%
22M96.3%96.1%96.1%96.2%96.8%96.6%
22.5M96.3%96.0%96.0%96.1%96.7%96.5%
23M96.3%96.0%95.9%96.1%96.7%96.5%
23.5M96.2%96.0%95.8%96.1%96.7%96.5%
24M96.1%95.9%95.7%96.0%96.6%96.4%
24.5M96.0%95.8%95.7%96.0%96.5%96.4%
25M95.9%95.7%95.6%95.9%96.5%96.4%
25.5M95.8%95.7%95.6%95.8%96.4%96.3%
26M95.8%95.8%95.6%95.7%96.3%96.3%
26.5M95.7%95.8%95.6%95.7%96.3%96.3%
27M95.7%95.7%95.6%95.7%96.3%96.3%
27.5M95.6%95.7%95.6%95.7%96.3%96.3%
28M95.6%95.7%95.6%95.7%96.3%96.3%
28.5M95.5%95.7%95.6%95.6%96.3%96.2%
29M95.4%95.7%95.6%95.5%96.2%96.2%
29.5M95.4%95.6%95.6%95.5%96.1%96.2%
30M95.4%95.5%95.6%95.4%96.1%96.1%
30.5M95.3%95.5%95.5%95.3%96.1%96.1%
31M95.3%95.4%95.5%95.2%96.1%96.0%
31.5M95.2%95.3%95.4%95.1%96.0%96.0%
32M95.2%95.3%95.3%95.2%96.0%96.0%
32.5M95.2%95.3%95.2%95.1%96.0%95.9%
33M95.2%95.2%95.2%95.1%96.0%95.9%
33.5M95.1%95.2%95.2%95.0%95.9%95.8%
34M95.1%95.1%95.1%95.0%95.9%95.8%
34.5M95.0%95.0%95.0%94.9%95.9%95.8%
35M95.0%94.9%95.0%94.9%95.8%95.8%
35.5M95.0%94.9%94.9%94.9%95.7%95.7%
36M95.0%94.9%94.9%94.8%95.7%95.7%
36.5M94.9%94.9%94.9%94.8%95.6%95.7%
37M94.9%94.8%94.9%94.7%95.5%95.6%
37.5M94.9%94.9%94.9%94.6%95.5%95.6%
38M94.9%94.9%94.9%94.5%95.5%95.6%
38.5M94.9%94.8%94.8%94.5%95.4%95.6%
39M94.9%94.7%94.8%94.5%95.4%95.6%
39.5M94.9%94.7%94.7%94.5%95.4%95.5%
40M94.9%94.6%94.6%94.5%95.5%95.5%
40.5M94.9%94.6%94.6%94.5%95.5%95.5%
41M94.9%94.6%94.6%94.5%95.4%95.5%
41.5M94.9%94.5%94.5%94.4%95.3%95.5%
42M94.9%94.5%94.5%94.4%95.2%95.4%
42.5M94.8%94.5%94.5%94.4%95.2%95.4%
43M94.7%94.5%94.5%94.4%95.1%95.3%
43.5M94.7%94.5%94.5%94.3%95.1%95.3%
44M94.7%94.4%94.4%94.3%95.1%95.3%
44.5M94.6%94.4%94.3%94.3%95.0%95.3%
45M94.6%94.4%94.3%94.2%95.0%95.4%
45.5M94.6%94.4%94.2%94.2%94.9%95.3%
46M94.6%94.3%94.2%94.2%94.9%95.3%
46.5M94.6%94.3%94.2%94.2%94.9%95.2%
47M94.5%94.2%94.2%94.2%94.9%95.2%
47.5M94.5%94.2%94.1%94.1%94.9%95.2%
48M94.5%94.2%94.1%94.0%94.8%95.3%
48.5M94.4%94.2%94.1%94.0%94.8%95.3%
49M94.4%94.2%94.0%93.9%94.8%95.2%
49.5M94.3%94.2%94.0%93.9%94.8%95.1%
50M94.3%94.2%93.9%93.9%94.8%95.1%
50.5M94.2%94.2%93.9%93.9%94.8%95.1%
51M94.2%94.3%93.9%93.8%94.8%95.1%
51.5M94.1%94.3%93.8%93.8%94.8%95.0%
52M94.0%94.3%93.8%93.8%94.9%95.0%
52.5M94.0%94.2%93.7%93.8%94.9%95.0%
53M94.0%94.1%93.8%93.8%94.8%95.0%
53.5M94.0%94.0%93.8%93.8%94.8%95.0%
54M94.0%94.0%93.8%93.8%94.8%95.0%
54.5M94.0%94.0%93.8%93.9%94.8%95.0%
55M94.0%94.0%93.7%93.9%94.8%94.9%
55.5M94.0%93.9%93.7%93.8%94.8%94.9%
56M94.0%93.9%93.6%93.8%94.7%94.9%
56.5M94.0%93.9%93.5%93.8%94.7%94.8%
57M94.0%93.9%93.5%93.8%94.6%94.8%
57.5M94.0%93.9%93.4%93.8%94.6%94.8%
58M94.0%93.9%93.4%93.7%94.6%94.8%
58.5M94.0%93.8%93.4%93.7%94.5%94.7%
59M94.0%93.7%93.4%93.7%94.5%94.7%
59.5M93.9%93.7%93.4%93.8%94.5%94.7%
60M93.9%93.7%93.5%93.8%94.5%94.7%
60.5M93.9%93.7%93.4%93.8%94.5%94.7%
61M93.9%93.7%93.4%93.7%94.5%94.7%
61.5M93.8%93.7%93.4%93.7%94.5%94.7%
62M93.7%93.6%93.4%93.7%94.5%94.7%
62.5M93.7%93.5%93.3%93.7%94.5%94.7%
63M93.6%93.5%93.3%93.7%94.5%94.6%
63.5M93.6%93.4%93.3%93.7%94.4%94.6%
64M93.6%93.5%93.3%93.7%94.4%94.6%
64.5M93.6%93.5%93.3%93.6%94.3%94.5%
65M93.6%93.5%93.3%93.6%94.3%94.4%
65.5M93.7%93.5%93.3%93.5%94.3%94.3%
66M93.7%93.5%93.2%93.5%94.3%94.3%
66.5M93.7%93.5%93.2%93.5%94.3%94.3%
67M93.6%93.5%93.2%93.4%94.3%94.3%
67.5M93.6%93.4%93.1%93.4%94.3%94.3%
68M93.5%93.5%93.0%93.3%94.3%94.2%
68.5M93.5%93.5%93.0%93.3%94.3%94.3%
69M93.5%93.4%93.0%93.3%94.2%94.3%
69.5M93.5%93.4%92.9%93.3%94.2%94.3%
70M93.5%93.4%92.9%93.3%94.1%94.3%
70.5M93.4%93.4%92.9%93.3%94.0%94.3%
71M93.4%93.4%92.9%93.3%94.0%94.3%
71.5M93.4%93.4%92.9%93.2%93.9%94.2%
72M93.4%93.3%92.8%93.2%93.9%94.1%
72.5M93.4%93.3%92.8%93.2%93.9%94.1%
73M93.4%93.3%92.8%93.2%93.9%94.1%
73.5M93.3%93.3%92.7%93.2%93.9%94.1%
74M93.3%93.3%92.7%93.2%93.8%94.0%
74.5M93.3%93.3%92.7%93.2%93.8%94.0%
75M93.3%93.2%92.7%93.2%93.9%94.0%
75.5M93.3%93.2%92.6%93.2%93.9%94.0%
76M93.3%93.2%92.7%93.1%93.9%94.0%
76.5M93.2%93.1%92.6%93.1%93.8%94.0%
77M93.1%93.1%92.6%93.0%93.8%93.9%
77.5M93.1%93.0%92.6%93.0%93.8%93.9%
78M93.1%93.0%92.6%93.0%93.7%93.9%
78.5M93.1%93.0%92.6%93.0%93.7%93.9%
79M93.1%93.0%92.5%93.0%93.7%93.9%
79.5M93.1%93.0%92.5%93.0%93.7%93.8%
80M93.1%93.0%92.5%93.0%93.7%93.8%
80.5M93.1%93.0%92.5%93.0%93.7%93.8%
81M93.1%93.0%92.5%92.9%93.7%93.8%
81.5M93.1%93.0%92.5%92.9%93.7%93.7%
82M93.1%93.0%92.5%92.9%93.7%93.7%
82.5M93.1%93.0%92.4%92.9%93.7%93.7%
83M93.1%92.9%92.4%92.9%93.7%93.7%
83.5M93.1%92.9%92.4%92.9%93.8%93.6%
84M93.0%92.9%92.3%92.9%93.7%93.6%
84.5M93.0%92.8%92.4%92.9%93.7%93.5%
85M93.0%92.8%92.4%92.9%93.7%93.5%
85.5M93.0%92.8%92.3%92.9%93.6%93.5%
86M93.0%92.8%92.3%92.9%93.6%93.5%
86.5M93.0%92.8%92.3%92.9%93.6%93.5%
87M93.0%92.8%92.3%92.8%93.5%93.5%
87.5M93.0%92.7%92.3%92.8%93.5%93.4%
88M92.9%92.7%92.2%92.8%93.5%93.4%
88.5M93.0%92.7%92.2%92.8%93.5%93.4%
89M93.0%92.6%92.2%92.7%93.5%93.4%
89.5M92.9%92.5%92.2%92.6%93.5%93.4%
90M92.9%92.5%92.2%92.6%93.5%93.4%
90.5M92.9%92.5%92.2%92.6%93.4%93.4%
91M92.9%92.5%92.2%92.6%93.4%93.4%
91.5M92.9%92.5%92.2%92.6%93.3%93.4%
92M92.9%92.5%92.2%92.6%93.3%93.4%
92.5M92.8%92.4%92.2%92.6%93.3%93.4%
93M92.8%92.4%92.2%92.5%93.3%93.4%
93.5M92.8%92.4%92.1%92.5%93.3%93.3%
94M92.8%92.4%92.1%92.5%93.3%93.3%
94.5M92.8%92.3%92.0%92.5%93.3%93.3%
95M92.8%92.3%91.9%92.5%93.3%93.3%
95.5M92.8%92.3%91.8%92.5%93.3%93.3%
96M92.8%92.3%91.7%92.5%93.3%93.2%
96.5M92.8%92.3%91.7%92.5%93.3%93.2%
97M92.7%92.3%91.7%92.5%93.3%93.3%
97.5M92.7%92.3%91.7%92.5%93.3%93.3%
98M92.7%92.2%91.7%92.4%93.2%93.3%
98.5M92.7%92.2%91.7%92.4%93.2%93.3%
99M92.7%92.2%91.7%92.4%93.1%93.3%
99.5M92.7%92.2%91.7%92.4%93.1%93.2%
100M92.7%92.2%91.7%92.4%93.1%93.2%

Measured on 2× Xeon Platinum 8480+ · 224 vCPUs · 1 TB DDR5 · on Gcore · Sources: usearch-benchmarks

Consistently, the recall remains comparable across the board.

§ Analyzing the Results

While every benchmark can be influenced to favor a specific outcome with the right motivation, we’ve endeavored to ensure fairness. We conducted repeated tests under varying conditions to maintain objectivity.

To enhance FAISS’s performance, we pre-normalized the vectors. This means that the Dot Product is computed instead of calculating the Cosine Similarity. Although FAISS doesn’t natively execute this operation and instead relies on Basic Linear Algebra Subprograms (BLAS) — a well-established standard in numerical computing—our custom SimSIMD, tailored for vector distance computations, proves to be more efficient.

vectors /= numpy.linalg.norm(vectors, axis=-1, keepdims=True)

We also adjusted various settings related to connectivity and expansion factors. These tweaks had negligible effects on throughput and only minor variations in recall. We aligned the recall curves for consistency, a common practice in Approximate Nearest Neighbors Search benchmarks. Notably, prominent HNSW implementations have diverse default settings for hyper-parameters.

ImplementationConnectivityExpansion on ConstructionExpansion on Search
USearch1612864
FAISS324016
HNSWlib1620010

§ Alternative Algorithms on CPUs

FAISS employs various “learned quantization” methods to address performance issues. IVFPQ is the most common approach, combining an Inverted File Index (IVF) and Product Quantization (PQ). Despite its popularity, it’s not an elegant solution. It is based on Inverted Indexes, the most trivial design for any search system.

dimensions: int = 1536
connectivity: int = 16       # edges per graph node
number_lists: int = 8192     # Voronoi partitions
number_subspaces: int = 32   # vector sub-spaces
number_bits: int = 8         # memory per cluster ID

quantizer = faiss.IndexHNSWFlat(dimensions, connectivity)
index = faiss.IndexIVFPQ(quantizer, dimensions, number_lists, number_subspaces, number_bits)

index.train(data)
index.add(data)

We will not delve into the shortcomings of this hybrid approach, especially in scaling or under-distribution shifts. However, USearch can integrate any quantization method for those interested. Instead, we suggest considering AI Embedding Models tailored for search tasks, like MiniLM’s for text or our UForm multi-modal transformers. These generate 256-dimensional embeddings across texts and images, achieving up to 20,000 inferences per second on standard GPUs or 1 millisecond response times on typical CPUs.

§ Alternative Algorithms on GPUs

Unum has previously used GPUs for several data-processing workloads, including the development of the first GPU-accelerated Persistent Transaction Key-Value Store. USearch has no such features yet but remains competitive against existing GPU-accelerated libraries.

We evaluated Nvidia’s RAFT library, which uses a custom CAGRA algorithm, which is also the backbone of FAISS and other vector search tools. The original paper provides many benchmarks performed on the A100 GPU with 80 GB of high-end HBM2 memory. Comparing those with our dual-CPU setup isn’t apples-to-apples, but the two systems are surprisingly similar in power consumption and are fabricated on similar lithography processes.

  • RAFT took 21.8 minutes (1305.6 seconds) to index 100 million vectors.
  • USearch took 14.6 to 16.4 minutes, depending on the quantization level.

Given that GPU memory is limited and costly, datasets beyond 100 million vectors exceed VRAM capabilities and were excluded from the original CAGRA study. Additionally, our users tend to reserve GPU resources primarily for Neural Networks, allowing larger batches during inference.

§ Latency vs Throughput

Unlike indexing, most Search workloads are real-time and latency-sensitive. Recent benchmarks suggest that the latency of scheduling an arbitrary CUDA kernel varies:

  • from 3 microseconds without per-kernel synchronization,
  • to 50 microseconds with per-kernel synchronization.

That excludes any work the kernel does and represents only the scheduling cost. So, for a single stream of processing, the maximum throughput would be limited to 20,000 searches per second. At the same time, the CPU code doesn’t need any scheduling, making it easier for us to go beyond 100,000 searches per second, preserving recall at 93% on the same dataset. Despite this, we recognize the growth potential in GPU-accelerated search technologies and anticipate sharing further developments soon.

§ Enhancements in USearch

§ Bypassing Common OOP Pitfalls

HNSW incorporates multiple simpler structures to create the index. Where engines like FAISS and HNSWlib use the C++ Standard Templates Libraries for arrays and priority queues. Standard data structures can lead to unwanted memory allocations and fragmented memory. We consider it one of the most common anti-patterns of Object-Oriented Programming (OOP).

We opt for a different strategy. USearch heavily relies on “tapes” and several implicit/succinct data structures. Despite being essentially a single-file implementation, it encompasses custom implementations for bit-sets, hash-tables, arrays, and mutexes.

§ Excluding Exceptions

We’ve avoid raising exceptions in our core implementation (but keeping them in bindings). While many contemporary programs utilize exceptions, they have several drawbacks. Notably, exceptions introduce deceptive simplicity.

Consider updating HNSW concurrently from 200 threads. If one thread encounters a memory allocation error mid-update, how does one safely revert the partial changes without impacting the remaining threads or jeopardizing the index?

§ Optimizing Assembly

Increasing the number of dimensions, we shift the bottleneck of the program from memory fetching on graph traversals to vector distance computations. The straightforward Cosine (Angular) distance calculation. It can be implemented in less than 10 lines of C code.

float cosine_distance(float const* a, float const* b, size_t ndim) {
    float dot_product = 0.0;
    float norm_a = 0.0;
    float norm_b = 0.0;
    for (size_t i = 0; i < ndim; i++) {
        dot_product += a[i] * b[i];
        norm_a += a[i] * a[i];
        norm_b += b[i] * b[i];
    }
    return 1 - dot_product / (sqrtf(norm_a) * sqrtf(norm_b));
}

There are three predominant optimization approaches:

  1. Basic: Trust the compiler to generate optimal machine code for the math formulas.
  2. Intermediate: Integrate BLAS numerical libraries.
  3. Expert: Design specialized kernels, like our SimSIMD sub-package.

Moving from the first to the third strategy can elevate performance by up to 2,500 times, contingent on the programming language. USearch, compatible with 10 languages, enables applications to leverage these enhancements regardless of their core language, auto-detecting optimal CPU capabilities at initiation.

  • For Arm:
    • NEON instructions available on 64-bit Arm CPUs,
    • SVE instructions available on AWS Graviton 3 chips.
  • For x86:
    • AVX2 on Intel Haswell (2013) and AMD Excavator (2015),
    • AVX-512 F & CD on Intel Skylake (2017) and AMD Zen 4 (2022),
    • AVX-512 VNNI & VPOPCNTQD on Intel Ice Lake (2019) and AMD Zen 4 (2022),
    • AVX-512 FP16 on Intel Sapphire Rapids (2023).

The latter would result in Assembly similar to the following annotated snippet from our USearch binary.

mov             edx, -1                         ; Load -1 into edx
bzhi            eax, edx, eax                   ; Zero high bits of eax starting from the bit index specified by eax
kmovd           k1, eax                         ; Move the value in eax to mask register k1
vmovdqu16       zmm1{k1}{z}, ZMMWORD PTR [rdi]  ; Load data from memory pointed by rdi into zmm1 using mask k1
vmovdqu16       zmm2{k1}{z}, ZMMWORD PTR [rsi]  ; Load data from memory pointed by rsi into zmm2 using mask k1
vfmadd231ph     zmm0, zmm2, zmm1                ; Fused multiply-add of half-precision floats in zmm2 and zmm1, accumulate in zmm0

§ Enterprise Search Products

In the past year, the Vector Search Product market has seen the emergence of several specialized solutions. With their dynamic marketing strategies, these new entrants are gaining attention in the enterprise sector. A notable example among these is Pinecone.

Pinecone’s deployment recommendations cater to vectors up to 768 dimensions. Their higher tier p2 instances are designed to handle approximately 150 requests per second and can manage up to 1 million vectors per node. Consequently, to manage 100 million vectors, 100x instances are required. According to Pinecone’s pricing calculator, this translates to a monthly expenditure of $11,989 for the “Standard” package or $17,982 for the Enterprise package.

Pinecone Enterprise Pricing

With USearch, we can quickly put all vectors on a reasonably small AWS c7a.16xlarge instance. Those provide 64 vCPU and 128 GB of DDR5 RAM at $3.28448 per hour, $2,365 monthly. Aside from AWS instance charges, no other charges apply, as the software is entirely free.

PineconeUSearchImprovement
Throughput150 RPS150,000 RPS1,000 x
Cost$11,989 - $17,982$2,3655 - 7.6 x
SDKs2 Languages10 LanguagesFlexibility
Open-SourceNoYesTrust

However, this comparison isn’t entirely direct. USearch, currently in an embedded mode, does not offer a cloud service. Meanwhile, Pinecone’s offerings do not include support for batch-search queries, clustering, joins, or data exporting capabilities, which are essential considerations for those wary of vendor lock-in.

§ In Closing

As we lay the groundwork for AI infrastructure that will shape the next decade, the strategic partnerships and technological choices we make today will be pivotal in determining the scalability and efficiency of future products. In collaboration with Gcore and Intel, we aim to continue pioneering in the search and data processing space, building upon our previous joint AI projects and extending our support to companies worldwide in their technological evolution.