As more and more companies get GenAI apps into production, we’re seeing increasing requests from customers for larger vector databases. We see use cases for a billion or more vectors and we’re happy to share our benchmarking results at this scale.
From our tests, we reached 90% precision with a median latency of 200ms, and 95% precision with a median latency of 1.3 seconds for the top 100 nearest neighbors, while executing 50 search queries concurrently.
Scaling vector search to a billion vectors is no small feat—but Redis 8 Community Edition makes it look easy. Today, we’ll show how Redis handles large scale apps by demonstrating real-time search on one billion 768-dimensional vectors with high precision. We rigorously tested indexing and search performance, proving that Redis isn’t just the fastest vector database—it scales from millions to billions of vectors while maintaining real-time latency. Check out the details below.
We used a vector dataset prepared in collaboration with Intel®, consisting of one billion 768-dimensional vectors, using FLOAT16 precision and 10K queries with 100 ground truth (exact neighbors) per query. It was derived from the LAION-5B dataset, an open large-scale dataset for training next-generation image-text models like Stable Diffusion and OpenClip.
The vector index used the Euclidean distance metric and FLOAT16 precision, and the following parameters were varied to achieve different precision during query time:
The dataset’s ground truth of 100 nearest neighbors was used to evaluate the accuracy (recall) of each reply, and we varied M between 4, 8, 16, and 32 outgoing edges, EF_CONSTRUCTION between 4, 8, 16, and 32, and EF_RUNTIME between 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, and 8192. To ensure reproducible results, each configuration was run 3 times, and the best results were chosen. You can learn more about the HNSW configuration parameters and query in our docs.
Engine | setup_name | Dataset | RPS | parallel | Precision | total_memory_usage | P50 (s) | P95 (s) | P99 (s) | Avg. Latency (s) | Upload Time (s) | Upload + Index Time (s) | engine_params |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Redis CE M02 | redis-intel-float16-hnsw-m-16-ef_construction-32 | laion-img-emb-768-1G-cosine | 190 | 50 | 0.90 | 3.89 TB | 203.099 | 541.20 | 591.19 | 260.69 | 15154.97 | 15157.72 | {"search_params":{"ef":512,"data_type":"FLOAT16"}} |
In our previous vector database benchmarks blog, we focused on proving that Redis is the fastest vector database. Now we prove that we can extend from millions of vectors to billions of vectors for use cases while preserving real-time latency.
At a billion-vectors scale, with real time indexing, Redis 8 Community Edition can sustain 66K vector insertions per second for an indexing configuration that allows precision of at least 95% (M 16 and EF_CONSTRUCTION 32). For indexing configurations that result in lower precisions (M 4 and EF_CONSTRUCTION 4), Redis 8 Community Edition can sustain higher ingestion rates of 160K vector insertions per second. Throughput can be increased further by using more servers.
For high precision queries, we can see that larger HNSW indices (higher M and EF_CONSTRUCT) improves the search quality at the expense of latency. We reach 90% precision with a median latency including RTT of 200ms, and 95% precision with a median latency includ/ing RTT of 1.3 seconds for the top 100 nearest neighbors, while executing 50 search queries concurrently.
Since the required precision and latency trade off are use case dependent, it is important to tune your HNSW parameters as depicted in the chart above.
Redis 8 Community Edition proves that real-time vector search isn’t just for millions of vectors—it scales to billions while maintaining high performance. With the right HNSW tuning, you can balance precision, latency, and throughput to fit your use case, achieving up to 95% recall with real-time queries. Whether you’re building AI-powered search, recommendation engines, or any vector-based application, Redis gives you the fast, scalable performance you need.
Ready to scale up? Try Redis 8 Community Edition today and explore the possibilities. Get started or check out our docs.