zilliztech/VectorDBBench
Python benchmark harness for comparing vector databases and full-text search backends
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
VectorDBBench is a Python client-side benchmark harness, not a database or a RAG runtime. A run pairs a workload case and dataset with a backend/index adapter. For cases that include loading, the harness loads data into the target before issuing queries; documented skip options also let supported runs reuse existing data. The CLI exposes backend-specific commands such as pgvectorhnsw and vectorchordrq, while init_bench opens the visual interface for launching tests and comparing results.
The package lives under vectordb_bench/ and uses setuptools with setuptools-scm; its package data includes JSON results. Integrations use database-specific Python clients: PyMilvus and Zilliz Cloud support are included in the default installation, while extras supply other clients. The workload is the shared comparison point, but connection options and index controls remain adapter-specific. Results retain selected parameters such as AutoIndex level and Milvus HNSW vector_data_type, which helps distinguish runs that otherwise look identical.
Key Capabilities & Differentiators
The benchmark covers ingestion, vector search, filtered search, and BM25-style full-text retrieval on supported backends. Full-text cases start with MS MARCO and HotpotQA, include payload profiles, and report recall, QPS, and load metrics. Vector workloads span SIFT, GIST, Cohere Wikipedia embeddings, and OpenAI embeddings from C4. The general Performance case can also run registered Hugging Face datasets, including 24 VIBE HDF5 datasets and multimodal Parquet datasets with 1M, 10M, and 100M corpus vectors.
Backend controls make it possible to test more than default configurations. Milvus HNSW exposes FLOAT32 and BFLOAT16 storage; supported single-tenant Milvus and Zilliz Cloud cases can vary queries per request with --nq. VectorChord exposes IVF list and probe counts and reranking precision. These controls support meaningful tuning experiments, but each backend needs to be evaluated at a comparable retrieval-quality target rather than with nominally similar index settings.
Trade-offs & Limitations
The main advantage over database-native benchmarks is a shared cross-engine workload. The trade-off is that adapters cannot make engine semantics identical. For example, OpenSearch Serverless skips cluster settings changes, force merge, manual refresh, and warmup calls. A database-native benchmark is better suited to isolating engine-specific behavior; an application load test is necessary when the decision depends on the full RAG path rather than backend retrieval alone.
Treat the Zilliz-sponsored leaderboard as a starting point, not a procurement result. Re-run shortlisted systems at the same top-k and recall target with matched datasets, filter conditions, and query batch sizes. Record index settings, replicas, service tiers, regions, and client placement, and distinguish ingestion from search-only runs. Higher QPS is not necessarily better if it comes from lower recall or larger batches, and a cloud cost ranking may change under your workload and pricing.
Hardware & Deployment Guide
Run the harness under Python 3.11 or newer with pip install vectordb-bench, add the relevant client extra, then use vectordbbench --help or start the UI with init_bench. The two-stage Dockerfile installs dependencies from install/requirements_py3.11.txt using the Tsinghua PyPI mirror, copies the installed Python packages and executables into python:3.11-slim-bookworm, and starts python3 -m vectordb_bench from /opt/code.
Docker packages the runner, not the target database. Supply a reachable self-hosted instance or a managed endpoint and credentials; for example, Zilliz Cloud can read ZILLIZ_TOKEN. Plan dataset storage and download access separately, or use a custom local dataset. Use a dedicated test collection and check drop/load settings before reusing data; Milvus HNSW rejects reuse when the vector type or dimension does not match. Releases v1.0.21–v1.0.22 expanded backend coverage, and v2.0.0 added cloud cases, full-text workloads, and a broader public dataset catalog.
--nq for batching supported single-tenant vector searches.python3 -m vectordb_bench from a Debian Bookworm slim runtime.Infrastructure and RAG teams shortlisting self-hosted or managed retrieval backends and reproducing ingestion, recall, throughput, and cloud cost comparisons under controlled conditions.
You need end-to-end RAG quality evaluation, engine internals profiling, or a turnkey deployment that provisions the target databases.
Quick Start & Installation
vectordbbench milvushnsw \ --case-type Performance \ --dataset-name glove-200-cosine \ --k 100
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/zilliztech/VectorDBBench.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about VectorDBBench
How do I connect an existing database to the benchmark?
vectordb-bench[pgvector] supplies the client dependencies for pgvectorhnsw and vectorchordrq. Use the subcommand’s --help to check its connection and index options; flags are not interchangeable across backends.Does the benchmark require a GPU, and how should I size the runner?
Can a commercial team self-host and redistribute it?
When is this preferable to a database-native benchmark or an application load test?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy