MyVector · vsql_vector · pgvector — 1.18M × 100-d word embeddings, cosine, published ground truth · generated 2026-11-10 14:30:20 UTC
← cross-engine (fashion-mnist) · real-dataset · village
The big-dataset round: glove-100-angular — 1.18 million 100-d GloVe word embeddings with a cosine metric (vs the 60k×784 L2 fashion-mnist on the other pages). Recall@10 is scored against the dataset's published exact neighbors. GloVe is a genuinely hard ANN benchmark, so recall sits well below the ~0.99 of fashion-mnist — the interesting comparison is the recall/throughput tradeoff each engine strikes at this scale. Full metrics via MyVector's harness.
| Metric | MyVector · MySQL 8.4 · current main (PR #278 + #280) | vsql_vector · VillageSQL 8.4 | pgvector · Postgres 17 |
|---|---|---|---|
| Index build (s) | 1,445.6 | 25,634.0 | 1,978.3 |
| Insert QPS | 3,451 | 6,525 | 3,378 |
| Exact KNN QPS | 1 | 1 | 5 |
| KNN p50 (ms) | 1,125.5 | 1,320.7 | 188.3 |
| KNN p99 (ms) | 1,139.0 | 1,332.6 | 197.1 |
| ANN QPS | 424 | 144 | 100 |
| ANN p50 (ms) | 2.3 | 7.1 | 10.2 |
| ANN p99 (ms) | 3.6 | 11.1 | 16.0 |
| Recall@10 | 0.867 | 0.888 | 0.882 |
| Recall@10 | MyVector · MySQL 8.4 · current main (PR #278 + #280) | vsql_vector · VillageSQL 8.4 | pgvector · Postgres 17 |
|---|---|---|---|
| recall 0.6 | 1,170 | 702 | 528 |
| recall 0.7 | 947 | 494 | 377 |
| recall 0.75 | 824 | 386 | 303 |
| recall 0.85 | 490 | 214 | 146 |
| recall 0.9 | 311 | 124 | 79 |
| recall 0.95 | — | 52 | 32 |
main (PR #278 + #280), re-measured on glove 2026-11-10: the current-main build (NEON cosine kernel + keepPrunedConnections, plus #280 which removed the ANN-rewrite overhead), engine-isolated on A2 like the other engines. PR #280 lifts glove QPS +35–48% across the sweep (e.g. ef=50 601→872, ef=200 287→424) at unchanged recall, on top of #278. pgvector and vsql are unaffected by #280 and keep their engine-isolated numbers, so MyVector’s matched-recall lead here widens (e.g. ~872 QPS vs pgvector ~281 / vsql ~360 at recall ~0.73). (Both are merged to main.)glove-100-angular (ann-benchmarks) — 1.18M train × 100-d GloVe word vectors, 10k test, cosine. HNSW M=16, ef_construction=200. Recall is intrinsically lower than on fashion-mnist — GloVe is a hard, high-overlap embedding space.--shm-size=4g for its parallel build.innodb_ddl_threads=4). The real cause is that vsql's build scales super-linearly: a 40k-row build takes ~100 s, but 1.18M took ~7 h — ~256× the time for ~30× the rows (≈ O(N^1.6)), far beyond the ~1 h a near-linear extrapolation predicts. So its graph construction degrades at scale (likely memory/cache-bound) while MyVector's and pgvector's stay efficient at 1.2M. Each engine used its default build path on the same 8-core host. MariaDB is excluded (re-confirmed 2026-11-06, quantified): a fresh MHNSW build on glove-100 (1.18M) — with a generous 4 GB InnoDB pool + 2 GB mhnsw_max_cache_size, so not a cache-thrashing artifact — did not complete within a 4 h hard cap (reached ~819k/1.18M, ~69%), and a second attempt with a 10 h cap also did not complete. Its online insert/build rate decays as the graph grows (311k rows at 36 min → 529k at 1.6 h → 819k at 3.6 h on the first run; ~500k at 1.5 h on the second), so the full 1.18M build needs >10 h — impractical at this scale. So MariaDB is genuinely unable to build the 1.2M cosine index in a usable window; it appears on the 60k×784 fashion-mnist pages where its build does complete.