#1717th of 17 in Vector databases

ann-benchmarks

Benchmark harness comparing approximate nearest neighbor libraries on recall versus speed

Stars
5.8k
License
MIT
Last commit
Jul 2026
Language
Python
Stars, last 29 weeks+123
21 Apr 2026: 5,629 stars28 Apr 2026: 5,635 stars5 May 2026: 5,641 stars12 May 2026: 5,646 stars19 May 2026: 5,649 stars26 May 2026: 5,658 stars2 Jun 2026: 5,661 stars9 Jun 2026: 5,667 stars16 Jun 2026: 5,672 stars23 Jun 2026: 5,676 stars30 Jun 2026: 5,683 stars7 Jul 2026: 5,684 stars14 Jul 2026: 5,686 stars21 Jul 2026: 5,690 stars28 Jul 2026: 5,696 stars4 Aug 2026: 5,699 stars11 Aug 2026: 5,700 stars18 Aug 2026: 5,703 stars25 Aug 2026: 5,707 stars1 Sept 2026: 5,716 stars8 Sept 2026: 5,722 stars15 Sept 2026: 5,724 stars22 Sept 2026: 5,727 stars29 Sept 2026: 5,728 stars6 Oct 2026: 5,731 stars13 Oct 2026: 5,736 stars20 Oct 2026: 5,738 stars27 Oct 2026: 5,744 stars3 Nov 2026: 5,749 stars10 Nov 2026: 5,752 stars

5,629 on 21 Apr 20265,752 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

ANN-Benchmarks runs approximate nearest neighbor algorithms, each built in its own Docker container, against pre-split HDF5 datasets such as SIFT, GloVe, GIST and NYTimes. It sweeps hyperparameters, keeps the precision-performance frontier, and plots recall against queries per second. The README states the project is no longer actively maintained and points to VIBE as a successor.

Who it is for: Engineers comparing ANN indexes and vector search libraries

Strengths

  • Covers about 40 implementations including FAISS, hnswlib, Annoy, pgvector, Qdrant, Milvus and DiskANN
  • Datasets ship pre-split with top-100 ground truth in HDF5, with Euclidean, angular and Jaccard metrics
  • Each algorithm has a Dockerfile, config.yml and CI test, so results are reproducible
  • Adding an algorithm needs a Python wrapper, a Dockerfile and a config file

Weaknesses

  • No longer actively maintained; README recommends VIBE instead
  • Published plots are from April 2025, and the README has a TODO to update the website plots
  • Full run can take days; the Docker image build alone takes 10-30 minutes
  • Single-CPU, in-RAM datasets only; GPU support exists just for FAISS and needs a local build

What it needs

  • GPU optional
  • Needs Docker, Python 3.10
  • Models: HDF5 datasets

Quick answers

Is ann-benchmarks open source?

Yes. Its code is on GitHub under the MIT license.

Does ann-benchmarks need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in Vector databases

See all 17
Also in Vector databases
RankProjectScore
1MilvusDistributed vector database with dense, sparse and hybrid search at scale Live demo ↗ (opens in a new tab)46.6k stars+340 (+0.7%) in 30 daysApache-2.0known advisory in latest version90 out of 100
2MeilisearchRust search engine with typo tolerance, filtering and hybrid semantic search Live demo ↗ (opens in a new tab)59.8k stars+374 (+0.6%) in 30 dayscustom license84 out of 100
3QdrantRust vector database with payload filtering, REST and gRPC Live demo ↗ (opens in a new tab)35.5k stars+520 (+1.5%) in 30 daysApache-2.084 out of 100
#4faissC++ library for similarity search and clustering of dense vectors41.4k stars+309 (+0.8%) in 30 daysMIT81 out of 100
#5leannVector index that recomputes embeddings on demand to cut storage Live demo ↗ (opens in a new tab)13.8k stars+802 (+6.2%) in 30 daysMIT77 out of 100