ANN-Benchmarks compares approximate nearest neighbor implementations on shared datasets using Dockerized algorithms and plotting tools.
Overview
ANN-Benchmarks provides a harness to measure speed and recall of approximate nearest neighbor libraries across predefined metric spaces. Maintainers note the project is no longer actively maintained and suggest newer benchmarks such as VIBE.
Prepared HDF5 datasets include train and test splits with ground-truth neighbor lists. Each algorithm lives in its own Docker container configured via YAML hyperparameters, and a Python runner executes experiments and generates plots.
Principles emphasize single-CPU queries by default, optional batch mode, avoiding extremely long index builds, and reporting points on the precision-performance frontier. Results and website generation scripts publish comparison charts.
Authors of listed libraries are encouraged to submit wrapper modules and Dockerfiles to add implementations.
Key features
- Prebuilt HDF5 benchmark datasets
- Per-algorithm Docker containers
- Automated run and plot scripts
- Single-query and batch experiment modes
- Website generator for result galleries
Use cases
- Comparing ANN library performance fairly
- Publishing recall versus latency curves
- Validating new vector search implementations