# Repository Briefing: zilliztech/VectorDBBench
> Source: https://repoforai.com/repo/zilliztech/VectorDBBench (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/zilliztech/VectorDBBench
- **Official Docs / Website**: https://zilliz.com/vector-database-benchmark-tool
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 21/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v2.0.0 (2026-09-10) — https://github.com/zilliztech/VectorDBBench/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, CLI
- **Momentum**: 1,207 ★ total (+0 24h / +2 7d) · 458 forks
- **Topics**: `benchmark`, `cost-effectiveness`, `performance`, `vector-database`, `vector-search`, `vectordb`
- **When to Use**: Best for: Infrastructure and RAG teams shortlisting self-hosted or managed retrieval backends and reproducing ingestion, recall, throughput, and cloud cost comparisons under controlled conditions. Skip if: You need end-to-end RAG quality evaluation, engine internals profiling, or a turnkey deployment that provisions the target databases.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Backend adapters: PyMilvus and Zilliz Cloud support ship with the default install; Qdrant, Pinecone, pgvector, and OpenSearch have optional client extras.
- Workloads: Repeatable insertion, vector search, filtered search, and BM25-style full-text search on supported backends.
- Dataset coverage: 24 registered VIBE HDF5 datasets and multimodal Parquet corpora at 1M, 10M, and 100M vectors are available through the Performance case.
- Search controls: Milvus HNSW supports FLOAT32 or BFLOAT16 storage; Milvus and Zilliz Cloud expose `--nq` for batching supported single-tenant vector searches.
- Cloud comparison: v2.0.0 adds production-oriented cloud benchmark cases and a Cloud Leaderboard; cost comparisons depend on the tested configuration.
- Runtime: Python 3.11+ with CLI and visual entrypoints; Docker runs `python3 -m vectordb_bench` from a Debian Bookworm slim runtime.
```

## Quick Start / Clone
```bash
vectordbbench milvushnsw \
  --case-type Performance \
  --dataset-name glove-200-cosine \
  --k 100
```
