Benchmark

ANN Search Benchmark

codelibs/search-ann-benchmark evaluates the performance of various Approximate Nearest Neighbor (ANN) algorithms, comparing both response time and accuracy metrics. This provides a comprehensive comparison of ANN-enabled systems for handling high-dimensional data spaces.

Overview

The tests focus on two main metrics:

  • QTime(msec): The time taken to respond to a search query, calculated as the average time for 10,000 queries.
  • Precision@K: The accuracy of the search results for K=10 and K=100.

The tables also include columns labeled "Top 10" and "Top 100," which indicate the number of results retrieved:

  • Top 10: Retrieves the top 10 results.
  • Top 100: Retrieves the top 100 results.

Results

The tests involve searching through a dataset of 100,000 vectors with 768 dimensions, yielding the following results:

ANN Search (Vector Only)

Product Top 10 Top 100 Test Date
QTime Precision@10 QTime Precision@100
chroma 0.5.7 5.2482 0.99225 8.0238 0.95742 2024-09-26
elasticsearch 8.17.1 2.3565 0.99598 9.3568 0.98552 2025-01-23
elasticsearch 8.17.1 (int8) 1.6628 0.95720 8.8184 0.96025 2025-01-23
elasticsearch 8.17.1 (int4) 4.6772 0.81946 11.6267 0.84357 2025-01-23
elasticsearch 8.17.1 (bbq) 1.5987 0.66834 8.6612 0.71679 2025-01-23
milvus 2.4.12 3.9257 0.92656 4.4710 0.96553 2024-10-12
opensearch 2.18.0 1.7899 0.87579 10.0962 0.98386 2024-11-08
opensearch 2.18.0 (faiss) 15.2966 0.99953 21.1456 0.99724 2024-11-08
pgvector 0.8.0-pg17 17.4892 0.99619 18.3212 0.97699 2024-11-29
qdrant 1.13.2 1.9643 0.99968 1.9921 0.99698 2025-01-30
qdrant 1.13.2 (int8) 0.9191 0.92266 1.0747 0.93891 2025-01-30
vespa 8.472.109 1.9864 0.99099 2.2666 0.95164 2025-02-04
weaviate 1.28.2 5.5044 0.99290 6.4320 0.95707 2025-01-07

ANN Search with Keyword Filtering

Product Top 10 Top 100 Test Date
QTime Precision@10 QTime Precision@100
chroma 0.5.7 - - - - 2024-09-26
elasticsearch 8.17.1 2.7093 0.99899 9.8430 0.99922 2025-01-23
elasticsearch 8.17.1 (int8) 1.7467 0.95615 8.9033 0.96999 2025-01-23
elasticsearch 8.17.1 (int4) 5.1514 0.80956 12.3976 0.85680 2025-01-23
elasticsearch 8.17.1 (bbq) 1.6060 0.66613 8.8231 0.74910 2025-01-23
milvus 2.4.12 4.4185 0.92319 5.0487 0.92495 2024-10-12
opensearch 2.18.0 3.4966 0.99344 9.8424 0.99991 2024-11-08
opensearch 2.18.0 (faiss) 2.0230 0.99775 7.8931 0.99504 2024-11-08
pgvector 0.8.0-pg17 17.7521 0.34090 17.9696 0.05644 2024-11-29
qdrant 1.13.2 0.7353 0.99987 0.8117 0.99938 2025-01-30
qdrant 1.13.2 (int8) 0.4788 0.92445 0.5750 0.94810 2025-01-30
vespa 8.472.109 4.1147 0.99981 4.5928 0.99374 2025-02-04
weaviate 1.28.2 6.4203 0.99990 7.4898 0.99988 2025-01-07

The tests are run on GitHub Actions, and the results are collected and summarized in tables. These benchmarks provide basic reference values, allowing users to evaluate and select an appropriate system based on their specific requirements. Be sure to test and verify the chosen solution's performance in your particular context before deployment.