Ambiakshi Technology - Autonomous Agents & Intelligence
GraphRAG & SearchJuly 20, 202610 min readPEER-REVIEWED

We Benchmarked pgvector, Milvus, and Qdrant at 10 Million Vectors: Here Are the Numbers

An unfiltered infrastructure benchmark of vector engines: HNSW indexing speeds, memory consumption per million embeddings, and QPS under high concurrency.

I
Infrastructure & Platform Team
GPU Acceleration & Inference Optimization

Key Architectural Takeaways (TL;DR)

pgvector is ideal up to 1M vectors if you already run Postgres; past 5M vectors, HNSW index build times and vacuum maintenance become an operational bottleneck.
Qdrant (Rust) delivered the fastest HNSW indexing and lowest p99 latency (14ms at 1,800 QPS) with native payload filtering.
Milvus excels at distributed multi-node clustering (50M+ vectors) but carries significant Kubernetes operational overhead (Etcd, MinIO, Pulsar).
Enabling uint8 scalar quantization in Qdrant slashed RAM requirements from 64GB down to 16.5GB with less than 0.8% drop in Recall@10.

The Hardware & Test Environment

Marketing claims from vector database vendors often use unrealistic 128-dimensional synthetic vectors. We benchmarked three top engines using 10,000,000 real 1536-dimensional embeddings (OpenAI text-embedding-3-small) on identical cloud instances:

• AWS `r6i.4xlarge` (16 vCPU, 128 GB RAM, 1TB NVMe EBS with 10,000 IOPS).

• Target Recall@10 set to >= 95% across all engines.

The Realistic Workload Rule

We tested with realistic payload metadata filtering (e.g. `tenant_id = 'org_492' AND published_year >= 2024`) rather than unconstrained brute-force searches.

HNSW Index Build Times & Disk Overhead

Building HNSW graphs over 10M vectors is CPU and memory intensive:

• **Qdrant**: Built the 10M vector HNSW index in 48 minutes using multi-threaded Rust concurrency.

• **Milvus**: Completed indexing in 54 minutes via its C++ Knowhere indexing engine.

• **pgvector**: Required 4 hours and 12 minutes due to single-threaded maintenance worker bottlenecks during `CREATE INDEX`.

Concurrent Query Throughput (QPS) & P99 Latency

Under 100 concurrent client threads querying with payload metadata filters:

10 Million Vector Benchmark Results (1536-dim)
MetricBaseline / NaiveOptimized ArchitectureImprovement Delta
Max Query Throughput (QPS)340 QPS (pgvector)1,820 QPS (Qdrant Rust)5.3x Higher QPS
P99 Query Latency84 ms14.2 ms (Qdrant)5.9x Lower Latency
Index Build Time (10M Vectors)252 min (pgvector)48 min (Qdrant)5.2x Faster Build
RAM with Scalar Quantization78 GB (pgvector FP32)16.5 GB (Qdrant INT8)78.8% RAM Savings

RAM Consumption & Scalar Quantization

At 10M vectors in FP32 precision, raw vector data alone consumes 61.4 GB of RAM. Adding HNSW graph link structures pushes total memory to ~78 GB.

Qdrant's on-disk vector storage with in-memory INT8 scalar quantization compresses memory to 16.5 GB while maintaining 98.4% of original recall.

The Architectural Decision Matrix

• **Under 1M Vectors**: Use **pgvector**. Keeping vectors inside your existing Postgres instance eliminates distributed data sync headaches.

• **1M to 50M Vectors**: Use **Qdrant**. Superior single-node efficiency, blazing fast Rust indexing, and elegant hybrid filtering.

• **50M+ Vectors**: Use **Milvus** if you have dedicated Kubernetes platform teams to manage distributed partitioning.

Frequently Answered Architectural Questions

I

Infrastructure & Platform Team

GPU Acceleration & Inference Optimization

Optimizing Triton kernels, PagedAttention memory layouts, speculative decoding, and spot GPU cluster unit economics.

Track Record: Deep expertise in CUDA, TensorRT-LLM, vLLM, and bare-metal cluster networking.
Editorial, Research & Regulatory Disclaimer

Technical Research & Architectural Reference: The analyses, benchmarks, code samples, and architectural patterns published in The Ambiakshi Pulse are developed solely for systems engineering evaluation, peer review, and educational purposes. Benchmark numbers represent specific hardware configurations and testing baselines.

Financial & Quantitative Market Neutrality: Material referencing market sentiment analysis, quantitative modeling, earnings call interpretation, or financial SLM architectures does not constitute financial, investment, legal, tax, or trading advice. Ambiakshi Technology LLC does not provide broker-dealer services or investment recommendations.

Defensive Cybersecurity & Due Diligence: AISecOps guardrails, firewall configurations, and injection mitigation recipes are shared strictly under defensive security and responsible disclosure principles. Always validate configurations in staging environments before deploying to regulated production systems.

Interactive Sizing Sandbox

Calculate Vector Database RAM & Sizing in AMBITOOLS

Estimate RAM consumption, HNSW index sizes, and cluster hardware requirements across pgvector, Qdrant, and Milvus in our developer sandbox.

Launch Vector DB Sizing Tool ↗
Database Architecture

Scale Your Enterprise Vector Infrastructure

Partner with Ambiakshi's Infrastructure Team to design, migrate, and optimize your high-scale vector search clusters.

Schedule Vector DB Review