MyVector — cross-version benchmark

MySQL 8.4 vs 9.7 vs 26.7 · HNSW vector search · generated 2026-10-12 04:50:42 UTC

A comparison of MyVector's native HNSW vector search across three MySQL versions (plus MariaDB's native vector as a cross-engine reference) — same data and index parameters, each pinned to an identical 4 vCPU / 24 GB slice (hardware noted below). It measures index build time, insert throughput, exact KNN, approximate (ANN) QPS and latency, recall@10, and the accuracy/throughput tradeoff as ef_search varies.

MySQL 8.4 · aarch64 · myvector-dev · Ampere A1MySQL 9.7 · aarch64 · myvector-dev · Ampere A1MySQL 26.7 · aarch64 · myvector-dev · Ampere A1MariaDB 12.3.3 · aarch64 · myvector-dev · Ampere A1

MySQL 8.4

Index build54.9s
Insert QPS3,670
ANN QPS543
Recall@100.820

MySQL 9.7

Index build56.7s
Insert QPS3,709
ANN QPS548
Recall@100.820

MySQL 26.7

Index build57.0s
Insert QPS3,711
ANN QPS529
Recall@100.820

MariaDB 12.3.3

Index build92.3s
Insert QPS542
ANN QPS257
Recall@100.948

Full metrics

MetricMySQL 8.4MySQL 9.7MySQL 26.7MariaDB 12.3.3
Index build (s)54.956.757.092.3
Insert QPS3,6703,7093,711542
Exact KNN QPS1111
KNN p50 (ms)750.3714.8713.4701.0
KNN p99 (ms)758.4722.4721.8713.7
ANN QPS543548529257
ANN p50 (ms)1.81.81.82.9
ANN p99 (ms)2.12.12.120.5
Recall@100.8200.8200.8200.948

Notes & caveats