\documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \usepackage{booktabs} \usepackage{hyperref} \usepackage{url} \usepackage{multirow} \usepackage{array} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document} \title{VECTOR-ADIS: A Comparative Study of Qdrant and Milvus for High-Dimensional Similarity Search\footnote{Code and data available at \url{https://github.com/christos97/vector-adis}}} \author{ \IEEEauthorblockN{ Stavriana Zannetou 03121608\IEEEauthorrefmark{1}, Sevastianos Ioannidis 03119859\IEEEauthorrefmark{1}, Marios Christos Syrmakezis 03115182\IEEEauthorrefmark{1}, } \IEEEauthorblockA{\IEEEauthorrefmark{1} Team ID: 11\\ Subject: VEC1\\ Professor: Dimitrios Tsoumakos\\ Knowledge and Database Systems Laboratory | School of Electrical and Computer Engineering\\ National Technical University of Athens, Greece, Winter 2025 } } \maketitle %============================================================================== % ABSTRACT %============================================================================== \begin{abstract} Vector databases are becoming a key component of artificial intelligence applications that rely on similarity searches in high dimensions. This paper is a benchmark study comparing single node performance of two leading open-source Vector database systems: Milvus and Qdrant. We compared these databases using identical conditions across 10 publicly available datasets with varying characteristics. We measured query throughput (requests per second), latency (mean and 95th percentile), and search accuracy (Precision@$k$). Over all 1049 experiments, Qdrant was able to achieve 54\% higher mean throughput than Milvus (611.26 vs.\ 395.87 requests/second) while also providing 141\% better resource efficiency; both databases were also very close in terms of precision ($>$96\%). To evaluate memory usage effectiveness we introduced a three regime memory constrained evaluation methodology: in-memory, borderline, and memory-exceeding. Under memory pressure (borderline regime: 2~GB RAM, 1 million vectors) Qdrant showed up to 4.6$\times$ more throughput (2171.7 vs.\ 469.9 requests/s) with 14$\times$ lower tail latency (2.18 vs.\ 29.82~ms p95), while maintaining 98.8\% precision. In the memory exceeding regime (4~GB RAM, 10 million vectors), Milvus's IVF\_SQ8 index showed 2.8$\times$ higher throughput (407.8 vs.\ 144.1 requests/s) due to selective centroid loading, whereas Qdrant's HNSW configuration used all available memory. We also found critical differences between scalar quantization reducing index construction time by 18$\times$ (92 to 8 minutes) in Qdrant with $<$~2\% precision loss. The benchmark framework has been designed for reproducibility so results can be verified by other parties. This study will serve as a practical guide for users choosing between Milvus and Qdrant based on their workload needs, and will also establish a foundation for future benchmarking studies of distributed and hardware accelerated Vector search systems. \end{abstract} \begin{IEEEkeywords} vector database, approximate nearest neighbor search, HNSW, benchmarking, Qdrant, Milvus, similarity search, RAG \end{IEEEkeywords} %============================================================================== % I. INTRODUCTION %============================================================================== \section{Introduction} As well as being able to transform messy data such as text, images, and audio into high-dimensional vectors called embeddings, machine learning has had an enormous impact on the way search and recommendations systems operate, due to the fact that embedding capture the underlying meaning of data. As opposed to comparing exact keyword matches, current systems are now able to compare similarities in meaning. To enable this to occur, at the core of this, is similarity search: finding vectors that are closest to a given query within this high-dimensional space, relative to some measure of distance. The reason companies and web platforms can no longer rely upon traditional search technology to effectively manage larger and larger datasets is that the amount of data being generated has increased beyond the capabilities of traditional search technologies. To address this need, Vector Database Management Systems (VDBMS) were developed and are comprised of database fundamentals and the latest advancements in Approximate Nearest Neighbor (ANN) search. These systems do not simply provide a technical enhancement, but rather serve as the foundation for many aspects of today's Artificial Intelligence (AI). In addition to enabling Retrieval-Augmented Generation (RAG), which enables vector databases to function as the external memory for large language models (LLM), and allow LLMs to retrieve relevant facts or documents dynamically in response to a query, vector search is now used to enable the development of more personalized recommendation engines for e-commerce websites and streaming services. In contrast to previous recommendation engines that relied solely on identifying products or content that individuals with similar behavior have "liked," these systems identify and match the specific characteristics of a user's profile with the characteristics of items in the database in near real-time. Milvus and Qdrant are currently two of the leading open-source vector databases available for use. However, each takes a distinctly different approach. Milvus, which was developed by Zilliz, has been available for use for longer than Qdrant, and has positioned itself as a cloud native, highly scalable system capable of managing billions of vectors. Additionally, Milvus' architecture is based on a microservices design and utilizes robust ANN libraries (such as FAISS) to perform searches. On the other hand, Qdrant is relatively new compared to Milvus and focuses primarily on achieving the highest level of performance and simplicity, particularly when it comes to providing users with fast response times on a single machine. Furthermore, Qdrant is developed using Rust and provides a number of additional features including support for single-node performance and support for low-latency queries along with the ability to filter metadata. Although both of these tools have gained significant traction, there appears to be a lack of research regarding the overall performance of each tool when tested against various datasets. While algorithmic benchmarks, such as ann-benchmarks, provide insight into the performance of the underlying ANN libraries utilized by each tool, they fail to account for the overhead associated with a complete database system. On the other hand, industry benchmarks generally tend to favor a single tool or engine, often one released by the company sponsoring or affiliated with the project being studied, resulting in bias toward the engine being evaluated. For example, as part of our experimentation efforts, we forked a client provided by the Qdrant team, which resulted in certain examples being unable to run against Milvus. This is why this study exists: to provide a comprehensive and unbiased evaluation of Qdrant and Milvus under the same controlled environment. \subsection{Contributions} This paper makes four principal contributions: \begin{enumerate} \item We developed and used the Vector-Adis benchmarking environment which runs both indexes in a fully reproducible way in identical Docker environments, and collects a full array of metrics on their performance, such as throughput, latency distribution and search accuracy. \item The work contains an extensive quantitative experimental study of both indexes on ten different publically available data sets with very diverse properties (e.g., 96 -- 2048 dimensionality; 100K -- 10M number of vectors; text embedding, images feature, sparse vector). \item We propose a systematic three-regime memory-constrained evaluation methodology, in-memory, borderline, and memory-exceeding, demonstrating that Qdrant can successfully index and query 10 million vectors under 4~GB RAM constraints. We identify configuration trade-offs (memmap thresholds, segment tuning, quantization) that reduce index construction time by up to 18$\times$ while maintaining precision. \item We carry out qualitative analysis to relate observed performance characteristic of each of the indexes to their internal architectures and design decisions to give actionable guidelines for practicing engineers. \end{enumerate} To our knowledge, this is one of the first completely independent comparative studies of both indexes Qdrant and Milvus. We expect that our findings will serve as a guideline for practicing engineers to take better-informed decision making when selecting indexes, and to encourage further research into the area of optimizing vector search indexes. %============================================================================== % II. BACKGROUND %============================================================================== \section{Background and Related Work} \label{sec:background} \subsection{The Challenge of High-Dimensional Similarity Search} The fundamental issue that vector databases are engineered to address is the Nearest Neighbor Search (NNS). For an input dataset $P = \{p_1, p_2, \ldots, p_N\}$ with $N$ entries in a d-dimensional space $\mathbb{R}^d$, the objective of NNS is to create a data structure that allows for the rapid identification of the data entry $p \in P$ that is the closest to the query point $q \in \mathbb{R}^d$ based upon a specified distance function $\delta(p, q)$. The distance functions $\delta(\cdot,\cdot)$ commonly used in NNS include L1 (Manhattan distance), L2 (Euclidean distance), and the cosine similarity of two vectors (the dot product of the two normalized vectors). A simple method to identify the NN is through a linear or "brute force" examination of all distances from the query point $q$ to each data point $p \in P$. Although this will always correctly identify the NN, it is too slow for practical use when there are many entries in the dataset (i.e., large $N$) or when the dimension of each vector is very large (i.e., large $d$). As noted in \cite{indyk1998ann}, this limitation is due to the "curse of dimensionality," which is caused by the exponential increase in the volume of a hypercube as the number of dimensions $d$ is increased. In addition, in high-dimensional spaces, the data entries become increasingly sparsely distributed, resulting in a loss of meaningfulness in the definition of closeness. Therefore, in high-dimensional spaces, the search speed of index structures that are highly efficient in lower dimensional spaces (e.g., k-d trees) are degraded to be nearly equal to that of a linear scan. In order to avoid the limitations imposed by the curse of dimensionality, the community has largely turned its attention toward developing Approximate Nearest Neighbor (ANN) search methods \cite{indyk1998ann}. ANN search algorithms intentionally sacrifice some degree of precision in the results in exchange for significantly improved search speeds and efficiencies. More specifically, an ANN search algorithm is said to provide a $(1+\varepsilon)$-approximation to the NNS if, for a query point $q$ and true nearest neighbor $p^* \in P$, the search algorithm identifies a point $p' \in P$ such that the distance from $q$ to $p'$ is less than $(1+\varepsilon)$ times the distance from $q$ to $p^*$. \begin{equation} \delta(q, p') \leq (1 + \epsilon)\delta(q, p^*) \end{equation} The performance of an Artificial Neural Network (ANN) search has historically been evaluated using its "recall," which represents the number of truly nearest neighbor candidates from within the candidate list of k nearest neighbors that were included in the top k nearest neighbor recommendations generated by the ANN search algorithm. Several types of ANN algorithms have been developed over time to support this type of search, including hashing based methods (such as Locality-Sensitive Hashing), tree based methods, quantization based methods (such as Product Quantization), and graph based methods \cite{wang2021graphann}. Graph based ANN algorithms represent a significant improvement to prior ANN algorithms, because they provide better than average performance characteristics in terms of search speed, recall and memory usage when searching in memory. \subsection{The HNSW Algorithm} Both Qdrant and Milvus, in the configurations used for testing for this research, use the Hierarchical Navigable Small World (HNSW) Algorithm as their primary indexing method for ANN Search \cite{malkov2018hnsw}. A development of Navigable Small World (NSW) Graphs developed by Malkov and Yashunin, HNSW has quickly evolved into an "industry-standard" due to the performance of the algorithm along with the robustness of the algorithm across a large number of datasets. An important component of developing the HNSW Indexing Method is understanding how to develop a proximity graph with a high degree of efficiency. In an NSW Graph, each vertex represents a Data Vector. Vertices are connected through edges to their nearest neighbors. An important characteristic of the NSW Graph is that they are small world graphs which means that there are two types of connections in the graph; Short-Range Links (Connecting Close Points) and Long-Range Links (Connecting Distant Points). The combination of these two connection types enables efficient greedy routing; A search will begin at a Random Entry Point and then move to the Neighbor of the Current Node that is closest to the Query Vector, until a Local Minimum is Found. Although the NSW Graph is effective for finding the Nearest Neighbors to a Query Vector, it may take too much time to traverse the graph when the dataset is too large. In order to improve upon the NSW Graph, HNSW introduced a Hierarchical Structure to create a Multi-Layered Graph. At the Bottom Layer (Layer 0) of the graph, there are all of the Data Points. All of the Data Points are connected by edges to form a Dense NSW Graph. Each subsequent layer above the bottom layer contains a Randomly Sampled Subset of the Data Points from the Layer Below it. The Top Layer is the Most Sparse of all the Layers. The majority of the Long-Range Links are located in the Upper Layers and the Majority of the Short-Range Links are Located in the Lower Layers. A Search will Begin at an Entry Point in the Top Layer. From the Entry Point, the Search will perform a Greedy Search to Find the Local Minimum in That Layer. Once the Local Minimum has been Found in the Top Layer, the Local Minimum becomes the New Entry Point for the Search in the Layer Below it. The Process Continues by Descending Layer by Layer and the Search Continues to Refine the Search from a Coarse-Grained Traversal to a Fine-Grained Traversal until the Nearest Neighbors are Found in the Bottom Layer. By Implementing a Hierarchical Structure, HNSW Achieved a Polylogarithmic Search Complexity of $O(\log N)$ on Average. There Are Several Key Parameters that Govern the Performance and Quality of the HNSW Index. These Parameters Can Be Tuned to Optimize the Trade Off Between Search Speed, Accuracy (Recall), and Memory Usage: \begin{itemize} \item $M$: The highest amount of bidirectional connections (neighborhoods) that each node may be able to contain inside of one layer. An increase of M will make your graph much more dense. As a result, you will get a higher level of recall, but this will come with an increase of memory and an increase of the time required for building the indexes \item \texttt{ef\_construct}: The size of the dynamic list of candidate neighbors explored during the index construction phase for each new point. A higher value leads to a higher-quality, more accurate index but significantly increases the time required to build it. \item \texttt{ef} (or \texttt{ef\_search}): The size of the dynamic candidate list used during the search phase. This is a critical query-time parameter that directly controls the trade-off between search speed and accuracy. A higher \texttt{ef} value results in a more exhaustive search, leading to higher recall but also higher latency. \end{itemize} \subsection{Related Work} The difficulty in comparing the different types of Artificial Neural Network (ANN) methods and the systems they are implemented within has lead to the development of numerous benchmarking tools and studies. One of the most well known and prestigious academic benchmarking frameworks is ann-benchmarks \cite{aumueller2020annbenchmarks} . The ann-benchmarks framework provides a method of evaluating the performance of different ANN algorithm libraries (such as FAISS \cite{johnson2019faiss}, HNSWlib, and ScaNN) in a completely controlled, in memory environment. This framework primarily evaluates the trade off between recall and queries per second for the algorithmic layer in isolation. While this type of framework is extremely valuable to the community conducting algorithm research, it does not evaluate the performance of complete database systems. Complete database systems typically have a number of overheads associated with them such as network API overheads, query parsing overheads, data ingestion pipeline overheads, and metadata filtering overheads. Industry vendors typically create their own benchmarks to promote the capabilities of their products. For example, Qdrant created an open source vector-db-benchmark repository where they compare performance among multiple engines including cloud services \cite{qdrantbenchmarks2024}. Other database vendors and third party bloggers also create comparison reports, but these can be quite variable in terms of methodology, dataset use, and hardware configurations which makes side-by-side comparisons very difficult. Additionally, many benchmarks focus on workloads that favor a specific architecture, which may not give a complete picture of the overall system performance. This thesis extends upon existing research in the area by providing a system level performance comparison between two specific and popular open-source database systems; Qdrant and Milvus. The performance comparison will be performed under identical hardware and software conditions. A single unified harness will be used to run workload against both Qdrant and Milvus across ten diverse datasets. The goal of this work is to provide an independent, reproducible, and comprehensive evaluation that bridges the gap between the purely algorithmic benchmarks, and the vendor specific marketing material. %============================================================================== % III. SYSTEM ARCHITECTURES %============================================================================== \section{System Architectures} \label{sec:systems} The large differences in performance that were measured between Qdrant and Milvus have their roots in the fundamental design philosophies and architectures of each platform. As a single-node solution for performance and simplicity, Qdrant was developed. In contrast, Milvus has been designed for flexible, scalable operation across many nodes in a distributed system. \subsection{Qdrant: A Performance-Oriented Rust Implementation} Qdrant is a Rust-based vector database implemented almost entirely in Rust, a new-generation systems programming language that provides several advantages including excellent performance, reliable execution and safe memory use \cite{qdrant2024docs}. The choice of Rust as a development language directly influences how well-performing the vector database will be. Rust’s memory-safe feature set does not include a garbage collector (GC). Therefore, Qdrant is not vulnerable to “stop-the-world” pauses that occur during garbage collection, which can lead to unpredictable latency spikes in applications created in languages such as Go or Java, and contributes to the consistently low tail-latency that Qdrant exhibits. The core component of Qdrant’s architecture is a single-process, multi-threaded server, running asynchronously (using Tokio) to serve a very large number of concurrent client requests quickly and efficiently. This asynchronous approach allows the server to support thousands of simultaneous active clients using a small number of OS threads; this limits the overhead of context switching and maximizes the amount of CPU available to execute requests. For indexing, Qdrant specializes in a highly optimized implementation of HNSW for dense vectors. By focusing on one state-of-the-art algorithm, the developers can fine-tune its implementation for maximum performance and integrate it deeply with other system components, such as the filtering mechanism. Qdrant's storage engine is designed around the concept of ``segments.'' New and updated data is written to a small, mutable in-memory segment. Over time, background optimizer processes merge smaller segments into larger, immutable ones, for which the HNSW index is built. This segmentation strategy allows Qdrant to handle real-time data ingestion and updates while maintaining high query performance. Qdrant also provides flexible options for storage backends. Vectors and payloads can be stored in memory, on disk using memory mapped files (mmap), or as a combination of both, with the option to store quantized vectors in RAM and original vectors on disk. This provides a balance between cost, capacity, and throughput. \subsection{Milvus: A Cloud-Native, Modular Platform} Milvus’s technology stack is a hybrid of C++ (used for performance-critical tasks like indexing and searching via the Knowhere library \cite{johnson2019faiss} wrapping the FAISS library) and Go (for system-level orchestration, coordination and the API layer). Even when run in a single-node “standalone” deployment mode, Milvus runs as a set of logical microservices \cite{milvus2024docs}. \begin{enumerate} \item \textbf{Access Layer: }A collection of stateless proxy servers that act as an entry point to the Cluster for all incoming Client Requests; this is where Request Validation takes place, in addition to Response Aggregation. \item \textbf{Coordinator Service: }The "Brain" of the Cluster, responsible for the management of Metadata, Topology of the Cluster, Task Scheduling and Consistency of Data within the Cluster. \item \textbf{Worker Nodes: }These will handle the main Data Operations and are categorized as follows: Query Node (Loads Indexed Data and Performs Searches on Data); Data Node (Handles Ingestion of Data); Index Node (Builds Indexes). \item \textbf{Storage Layer: }Decoupling the Persistence Layer from the Cluster; This can include Object Storage (such as MinIO) for Data Files and Indexes; a Log Broker (for Write-Ahead Logging); and a Metadata Store (such as etcd). \end{enumerate} With the advantages of being able to scale individual components, this modular design makes it possible to deploy Milvus across large amounts of nodes at the same time, and therefore particularly well suited for large workloads. However, because of the independence of each module (i.e., that they communicate using remote procedure call), there will inherently be some overhead from communication when all modules run on one node, potentially leading to increased query latency per query as opposed to the monolithic architecture used by Qdrant. Milvus supports a wide variety of ANN index types beyond HNSW including disk based indexes like DiskANN and quantization based indexes like IVF\_FLAT and IVF\_PQ. These provide users the ability to select the best index type for their needs based on how much latency they want to pay vs performance. The data ingestion process in Milvus differs significantly as well. Incoming vector data are stored into "growing segments" in RAM until a growing segment has reached a specified number of elements at which point the growing segment is "sealed" and then the data are written to object storage. Following the writing to object storage, an index node is created to create the index for the data in the object store. This batch oriented ingestion process is highly efficient for high throughput ingestions of large quantities of data however it does introduce a latency period from the time data is inserted until the time the data is available for searching using the index. \subsection{Architectural Comparison} Table~\ref{tab:architecture} summarizes key architectural differences between the two systems. \begin{table}[htbp] \caption{Architectural Comparison of Qdrant and Milvus} \label{tab:architecture} \centering \begin{tabular}{lcc} \toprule \textbf{Aspect} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Primary Language & Rust & C++/Go \\ Architecture & Monolithic & Microservices \\ Memory Model & mmap-backed & In-memory \\ Concurrency & Async (Tokio) & Thread pools \\ GC Pauses & None & Go coordinator \\ Target Scale & Single-node & Distributed \\ Index Types & HNSW & HNSW, IVF, DiskANN \\ \bottomrule \end{tabular} \end{table} %============================================================================== % IV. METHODOLOGY %============================================================================== \section{Experimental Methodology} \label{sec:methodology} To ensure a fair and reproducible comparison, both Qdrant and Milvus were benchmarked using the VECTOR-ADIS framework under identical conditions. The methodology was designed to reflect common single-node deployment scenarios and to measure performance across a diverse set of workloads. \subsection{Benchmark Framework} Vector-ADIS is a Python-based Harness that automates the Experimental Workflow for both Database Engines. The Vector-ADIS Harness executes a series of steps in order for Each Experimental Run: \begin{enumerate} \item \textbf{Engine Initialization:} The Target Engine (Milvus or Qdrant) is launched from its Official Docker Image with a Clean State. A New Collection is created within the Engine using the Engine’s Client Side Python API based on the provided Configuration (Vector Dimensionality, Distance Metric, Index Parameters). \item \textbf{Data Ingestion:} All Vector Data as well as any related Metadata are uploaded to the Collection in Parallel Batch Processes. For Milvus, an Explicit Index-Building Step is Triggered and Timed after the Data Insertion Process is Complete. For Qdrant, Indexing is executed Concurrently with Ingestion via Background Optimizer Processes. The Total Time for this Phase is Recorded. \item \textbf{Query Execution:} A Predefined Set of Query Vectors is Issued Against the Engine. The Harness Supports Configurable Concurrency Levels: for Milvus, We Test Both Sequential (Parallel=1) and High-Concurrency (Parallel=100) Scenarios; for Qdrant, We Use Parallel=8 as the Default Configuration. \item \textbf{Metrics Collection:} For Each Query, the End-to-End Latency is Recorded. Once All Queries Are Complete, Aggregate Metrics Are Calculated and Logged to Structured JSON Files as well as the Experiment's Configuration Details. \end{enumerate} \subsection{Performance Metrics} The primary metrics collected are formally defined as follows: \textbf{Throughput (RPS):} Measured during concurrent query execution, this is the total number of successfully completed queries divided by the total time elapsed: \begin{equation} \text{RPS} = \frac{\text{Total Completed Queries}}{\text{Total Time (seconds)}} \end{equation} \textbf{Mean Latency:} The arithmetic average of the latencies of all individual queries in a run, providing a measure of typical response time. \textbf{Tail Latency (P95):} The 95th percentile of the query latency distribution. This metric is critical for understanding worst-case performance, as it indicates the latency value at or below which 95\% of queries completed. P95 is a more robust indicator of user-perceived performance than the mean, as it is less sensitive to a small number of extremely fast queries and more sensitive to the long tail of slow queries that degrade user experience. \textbf{Precision@k:} To measure search accuracy, the top-$k$ results returned by the engine for each query are compared against a pre-computed set of ground-truth nearest neighbors (computed via exact brute-force search). Precision@k is the fraction of retrieved results that are relevant: \begin{equation} \text{Precision@}k = \frac{|\{\text{retrieved items}\} \cap \{\text{relevant items}\}|}{k} \end{equation} For this study, $k=10$ for all experiments. \subsection{Datasets} A key contribution of this work is its evaluation across a broad range of datasets, which vary in size, dimensionality, and data modality. This diversity ensures that the benchmark results are not biased by the specific characteristics of a single dataset. Table~\ref{tab:datasets} summarizes the ten datasets used in this study. \begin{table}[htbp] \caption{Benchmark Datasets (from datasets.json)} \label{tab:datasets} \centering \small \begin{tabular}{lccc} \toprule \textbf{Dataset} & \textbf{Vectors} & \textbf{Dim} & \textbf{Metric} \\ \midrule glove-100-angular & 1.18M & 100 & Cosine \\ deep-image-96-angular & 10M & 96 & Cosine \\ arxiv-titles-384 & 380K & 384 & Cosine \\ cohere-wiki-100k & 100K & 768 & Cosine \\ laion-small-clip & 1M & 512 & Cosine \\ dbpedia-100K-1536 & 100K & 1536 & Cosine \\ dbpedia-1M-1536 & 1M & 1536 & Cosine \\ h-and-m-2048 & 100K & 2048 & Cosine \\ msmarco-sparse-1M & 1M & sparse & Dot \\ random-keyword-100 & 100K & 100 & Cosine \\ \bottomrule \end{tabular} \end{table} The datasets include: word embeddings (GloVe), image features from deep learning models (deep-image, laion-clip), semantic text embeddings (arxiv-titles, cohere-wiki, dbpedia-openai), e-commerce product embeddings (h-and-m), sparse vectors for information retrieval (msmarco-sparse), and synthetic random data for baseline comparisons. \subsection{Hardware and Configuration} \textbf{Hardware Environment:} All experiments were conducted on a single machine with an AMD Ryzen 7 3700X processor (8 cores, 16 threads at 3.6--4.4 GHz), 32 GB DDR4 RAM, NVMe SSD storage, running Ubuntu 22.04 LTS. \textbf{Engine Configurations:} Both engines were deployed using their official Docker images. For Milvus, we tested multiple HNSW index configurations: \begin{itemize} \item Default: $M=16$, \texttt{ef\_construct}$=100$ \item M16-EF128: $M=16$, \texttt{ef\_construct}$=128$ \item M32-EF128: $M=32$, \texttt{ef\_construct}$=128$ \item M32-EF256: $M=32$, \texttt{ef\_construct}$=256$ \end{itemize} Search-time \texttt{ef} values were varied among $\{128, 256, 512\}$. Concurrency levels tested were 1 (sequential) and 100 (high-concurrency). For Qdrant, we used the default configuration with \texttt{hnsw\_ef}$=128$ at search time and parallel=8 for query execution, matching typical production usage patterns. \textbf{Experiment Distribution:} Across all configurations and datasets, our benchmark suite executed 1,049 individual search experiments: 645 for Qdrant and 404 for Milvus. The imbalance reflects Qdrant's additional tested configurations (memory-mapped storage, scalar quantization) beyond the baseline HNSW variants tested on both engines. %============================================================================== % V. RESULTS %============================================================================== \section{Experimental Results} \label{sec:results} This section presents the results from our comprehensive benchmarking study. We analyze throughput, latency distributions, precision-latency trade-offs, and accuracy across all tested configurations. \subsection{Aggregated Performance Summary} Table~\ref{tab:results_summary} presents the aggregated performance metrics across all datasets and configurations, providing a high-level comparison of the two engines. \begin{table}[htbp] \caption{Aggregated Performance Summary (All Datasets, 1049 Experiments)} \label{tab:results_summary} \centering \begin{tabular}{lccc} \toprule \textbf{Metric} & \textbf{Qdrant} & \textbf{Milvus} & \textbf{$\Delta$} \\ \midrule Mean RPS & 611.26 & 395.87 & +54\% \\ Mean Latency (ms) & 84.63 & 92.24 & $-$8\% \\ P95 Latency (ms) & 106.01 & 122.31 & $-$13\% \\ Mean Precision (\%) & 96.70 & 96.63 & $\approx$ \\ Efficiency Index & 126,804 & 52,575 & +141\% \\ \bottomrule \end{tabular} \end{table} The results demonstrate that Qdrant achieves 54\% higher throughput than Milvus while delivering 8\% lower mean latency and 13\% lower P95 latency. Both engines achieve comparable precision levels exceeding 96\%, indicating that the accuracy of the underlying HNSW implementations is equivalent. The efficiency index (defined as RPS $\times$ Precision / Latency) shows Qdrant delivering 2.3$\times$ better overall efficiency. \subsection{Throughput Analysis} Figure~\ref{fig:rps} illustrates the throughput distribution across all datasets. Qdrant's median RPS is significantly higher for virtually every dataset tested. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/00_dataset_rps_breakdown.png}} \caption{Throughput (RPS) comparison across datasets. Higher values indicate better performance. Qdrant consistently achieves 1.5--2$\times$ higher throughput.} \label{fig:rps} \end{figure} Key observations from the throughput analysis: \begin{itemize} \item {\textbf{Qdrant Consistently Performed Better Than OpenSearch}} Qdrant performed $1.5-2x$ faster than OpenSearch on almost every dataset. \item {\textbf{Highest Throughput Datasets}} Both engines achieved their best throughput at lower dimensionalities such as glove-100-angular and random-100. Qdrant reached its fastest speeds of 600-800 RPS on these two. \item {\textbf{The Scale of a Dataset Affects the Speed of an Engine}} As expected, the largest dataset we tested (dbpedia-1M-1536) had the lowest throughput for both engines (approximately 150 RPS). \item {\textbf{Qdrant Was More Consistent Than OpenSearch}} Qdrant's throughput was much more consistent from test to test and was less variable than OpenSearch's throughput. \end{itemize} The performance gain is a result of Qdrant’s light-weight design; as Qdrant uses an asynchronous runtime on top of Rust to efficiently load the CPU cores without significant overhead, Milvus uses micro-services that can still incur overhead even when used in standalone mode. \subsection{Latency Distribution Analysis} Figure~\ref{fig:latency} visualizes the latency distributions for both engines across datasets. This analysis reveals important differences in tail latency behavior. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/00b_dataset_p95_breakdown.png}} \caption{P95 latency comparison by dataset. Lower values indicate better performance. Qdrant exhibits consistently tighter distributions.} \label{fig:latency} \end{figure} Critical findings from the Latency Analysis are as follows: \begin{itemize} \item \textbf{Shape of Distribution:} Qdrant is characterized by a tight distribution and does not exhibit large variance; most values fall within 1.3 to 1.5$\times$ the mean and 95th percentile (P95). Milvus has a much larger distribution with long tails; P95 values frequently reach 3 to 5 $\times$ the mean. \item \textbf{Effect of Dimensionality on Latency Gap:} The increase in dimensionality causes the latency gap between Qdrant and Milvus to grow. In particular, this effect is observable for high-dimensionality data sets like h-and-m-2048 and dbpedia-1M-1536, where the tail of the latency distribution grows significantly in Milvus. \item \textbf{Predictability of Latency:} The lack of garbage collection in Qdrant provides a predictable timing environment that is important when service-level agreements (SLAs) require extremely low variability in response time. \end{itemize} Milvus's long-tailed latency behavior can be explained by the following factors: (1) The pause caused by garbage collection in the coordinator layer of the Go process, (2) Inter-process communication, and (3) Queueing delay due to load on other services. \subsection{Precision-Latency Trade-off} Figure~\ref{fig:pareto} presents the Pareto frontier analysis, plotting precision against mean latency to visualize the efficiency frontier of both engines. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/04_pareto_frontier.png}} \caption{Precision vs. latency Pareto frontier. The ideal position is top-left (high precision, low latency). Qdrant configurations dominate the frontier.} \label{fig:pareto} \end{figure} Both Engines produce results near 1.0 for nearly all configurations (i.e., both are good implementations of HNSW). For any given precision level, however, Qdrant produces better latency than the other engine in achieving that precision level, which shows that Qdrant’s advantage in performance has no negative impact on search quality. \subsection{Accuracy Analysis} Table~\ref{tab:accuracy} presents precision results for selected datasets, demonstrating that both engines deliver comparable accuracy. \begin{table}[htbp] \caption{Precision@10 by Dataset (ef=256)} \label{tab:accuracy} \centering \begin{tabular}{lcc} \toprule \textbf{Dataset} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule arxiv-titles-384 & 0.994 & 0.994 \\ dbpedia-100K-1536 & 0.997 & 0.997 \\ deep-image-96 & 0.988 & 0.988 \\ glove-100 & 0.907 & 0.907 \\ h-and-m-2048 & 0.997 & 0.997 \\ laion-small-clip & 0.885 & 0.885 \\ \bottomrule \end{tabular} \end{table} The majority of datasets result in a mean precision greater than 0.99. GloVe-100 and Laion-Small-Clip have a significantly lower (approximately .88-.91) precision when compared to both engines, which represents an innate challenge of those datasets as opposed to differences in how they were implemented. Unlike Precision, neither Accuracy nor Speed are factors that will distinguish the two engines from one another. In comparison to its performance with regard to accuracy, QDrant results in a substantial increase in speed. Figure~\ref{fig:recall_vs_scale} visualizes how precision scales with dataset size. Both engines maintain $>$95\% recall across four orders of magnitude (100 to 10M vectors), with a modest decline at the largest scales. The error bars indicate that variance increases slightly for smaller datasets due to fewer query samples, while large-scale results are highly consistent. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/THESIS_03_recall_vs_dataset.png}} \caption{Recall@$k$ vs.\ dataset size for both engines in in-memory and on-disk modes. Precision remains above 95\% across all scales, with both engines tracking closely. Dashed lines indicate on-disk configurations.} \label{fig:recall_vs_scale} \end{figure} \subsection{EF Parameter Sensitivity} Figure~\ref{fig:ef_sensitivity} analyzes how the search-time \texttt{ef} parameter affects Milvus performance across the tested values (128, 256, 512). \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/06_ef_sensitivity.png}} \caption{Effect of search ef parameter on Milvus latency and precision. Increasing ef from 128 to 512 roughly quadruples latency while adding only $\sim$1\% precision.} \label{fig:ef_sensitivity} \end{figure} Increasing \texttt{ef} from 128 to 512 approximately quadruples Milvus latency while providing diminishing precision returns (typically $<$1\% improvement). This suggests that for most workloads, \texttt{ef}$\leq$128 provides the optimal trade-off. Qdrant achieves similar precision at \texttt{ef}=128 with significantly lower absolute latency. %============================================================================== % VI. RESOURCE USAGE %============================================================================== \section{Resource Usage Analysis} \label{sec:resources} Understanding resource consumption patterns is essential for capacity planning and cost optimization. This section analyzes CPU, memory, and I/O characteristics of both engines during benchmark execution. \subsection{CPU Utilization} Table~\ref{tab:cpu} summarizes CPU utilization metrics observed during benchmark runs. \begin{table}[htbp] \caption{CPU Utilization Comparison} \label{tab:cpu} \centering \begin{tabular}{lcc} \toprule \textbf{Metric} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Mean CPU (\%) & 539.9 & 251.3 \\ Peak CPU (\%) & 1098.0 & 1537.4 \\ CPU Std Dev & 328.6 & 342.5 \\ \bottomrule \end{tabular} \end{table} Qdrant sustains approximately 540\% CPU utilization (5.4 cores equivalent) compared to Milvus's 251\%, indicating more aggressive use of multi-core capabilities. Qdrant's single-process design maximizes parallelism through its async runtime, while Milvus distributes load across multiple containers (standalone, MinIO, etcd), with the standalone service averaging 746\% CPU when actively processing. The higher sustained CPU utilization by Qdrant translates directly to higher throughput, Qdrant effectively converts available compute resources into query processing capacity more efficiently. \subsection{Memory Consumption} \begin{table}[htbp] \caption{Memory Usage Comparison} \label{tab:memory} \centering \begin{tabular}{lcc} \toprule \textbf{Metric} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Mean Memory (GiB) & 4.75 & 2.63 \\ Memory Utilization (\%) & 18.98 & 10.53 \\ \bottomrule \end{tabular} \end{table} Qdrant averages 4.75 GiB memory usage versus 2.63 GiB for Milvus's standalone process. This reflects Qdrant's default strategy of keeping vectors and indexes fully in RAM for lowest latency. Milvus's disaggregated storage allows a smaller process footprint but may increase I/O dependency when data exceeds available memory. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/THESIS_01_memory_vs_dataset.png}} \caption{Peak memory usage by deployment configuration. On-disk configurations remain within the 2~GB RAM limit, while single-node (in-memory) configurations exceed it by 2--7$\times$, illustrating the effectiveness of memory-mapped storage.} \label{fig:memory_vs_limit} \end{figure} \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/RM_02_memory_breakdown.png}} \caption{Memory usage breakdown by component during benchmark execution.} \label{fig:memory}\end{figure} \subsection{I/O Analysis} Significant differences emerge in I/O patterns between the architectures: \begin{table}[htbp] \caption{I/O Comparison During Benchmarks} \label{tab:io} \centering \begin{tabular}{lcc} \toprule \textbf{Metric} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Block I/O Read (GiB) & 10.7 & 25.1 \\ Network I/O (GiB) & 57.1 & 200.0 \\ \bottomrule \end{tabular} \end{table} Milvus generates substantially higher I/O: 25.1 GiB of block reads (dominated by MinIO object storage operations) versus 10.7 GiB for Qdrant. Network I/O differences are even more striking: Milvus generates nearly 200 GiB of internal network traffic between its components versus 57 GiB for Qdrant (client-server communication only). This overhead is inherent to the microservices architecture and persists even in single-node deployments. \subsection{Efficiency Implications} The resource analysis reveals fundamental operational differences: \begin{itemize} \item \textbf{Qdrant} operates as CPU- and memory-bound, extracting maximum performance from local compute resources with minimal I/O overhead. \item \textbf{Milvus} is I/O- and network-bound even on single nodes, with inter-component communication consuming significant bandwidth. \end{itemize} For equivalent throughput targets, Qdrant achieves them on smaller infrastructure with fewer operational components, improving both cost efficiency and operational simplicity. The estimated annual infrastructure cost for equivalent workloads favors Qdrant by approximately 2.3$\times$ based on our efficiency metrics. %============================================================================== % VII. MEMORY-CONSTRAINED EVALUATION %============================================================================== \section{Memory-Constrained Evaluation} \label{sec:memory_constrained} Deployments to production environments are subject to severe resource limitations. Especially if the vector database will be running in conjunction with additional services or at an edge node. This section describes our experiment’s strategy for testing memory-constraints; we describe how difficult the process was to configure; and explain the architecture differences between Milvus and Qdrant that required us to employ different testing methodologies. \subsection{Disclaimer: Architectural Limitations and Fair Comparison} \textbf{Important:} The memory-constrained test evaluation revealed an architecturally-based disparity in the comparisons made by this evaluation. Therefore, we present the methodology of our evaluation in detail, so as to maintain academic honesty and allow for reproducibility of the results of this evaluation. \subsubsection{Initial Approach: DISKANN Investigation} The initial plan of our experimental methodology utilized Microsoft's DiskANN algorithm~\cite{subramanya2019diskann}, which is marketed as a disk-based approximate nearest neighbor index capable of managing data sets that exceed available memory. DiskANN builds a graph based index on disk and utilizes a memory cache to increase the speed of traversals of the index, providing a theoretical capability to manage data sets larger than available memory. Thus, utilizing DiskANN for the indexing of data into Milvus would provide a direct comparison to the performance of Qdrant's memory mapped (mmap) disk backed HNSW storage. \textbf{Validation Process.} We systematically tested DISKANN with the following configuration: \begin{verbatim} { "index_type": "DISKANN", "index_params": { "search_list_size": 100, "PQ_DEGREE": 64 } } \end{verbatim} However, we identified three critical limitations to preclude DISKANN from being usable for our evaluation: \begin{enumerate} \item \textbf{Standalone Mode Restriction: } Milvus v2.5.0 does not enable DISKANN in standalone (single-node) mode. As such, when attempting to build a DISKANN index, the system returns the error: \begin{verbatim} DiskIndex (DISKANN) not support standalone mode \end{verbatim} \noindent DISKANN requires the distributed deployment architecture of Milvus, which has dedicated query nodes and therefore significantly alters the deployment model, making it difficult to fairly compare a single node with Qdrant. The distributed stack includes etcd coordination, data nodes, and MinIO object storage, all of which introduce additional overhead not related to the indexing algorithm itself. \item \textbf{Cache Layer Memory Requirements: } Regardless of whether deployed in a distributed manner, DISKANN requires significant amounts of RAM for its cache layer. Milvus recommends allocating \texttt{queryNode.cacheSize: 32GB} for production workloads. Due to our memory constraint of 2 GB, we cannot allocate a 32 GB cache within a 1.5 GB container (with etcd and MinIO overhead), and therefore immediately fail out of memory during index construction. \noindent We evaluated smaller cache allocations (256 MB, 512 MB, 1 GB) and discovered that DISKANN's index construction requires memory proportional to the size of the dataset, thus leading to OOM failures before any searches can be performed. \item \textbf{Architectural Differences: } Although both DISKANN and Qdrant are referred to as "disk-based," their use of memory mapping (mmap) and constructing disk-based graph structures are fundamentally different technologies: \begin{itemize} \item \textbf{DISKANN:} Creates a Vamana graph structure on disk, where there is an explicit memory cache layer. The size of the cache layer must be manually configured, and cache misses result in synchronous disk read operations during graph traversal. Therefore, performance will degrade rapidly if the cache hit ratio drops below a certain threshold. \item \textbf{Qdrant mmap:} Utilizes the operating system's virtual memory subsystem to map index files into the process address space. The OS kernel automatically manages page caching, evictions, and prefetching. There is no need to configure an application-layer cache, and memory pressure will cause degradation in performance rather than configuration-related failures. \end{itemize} \noindent These represent two fundamentally different philosophies regarding how to implement a disk-based index: DISKANN is an application-managed disk index; Qdrant's mmap relies on the operating system to manage memory. A fair comparison of these technologies would either have to replicate DISKANN's cache allocation based on the amount of available RAM (which would essentially negate one of the advantages of a disk-based index), or utilize dataset sizes that are small enough to fit in both systems' constraints (which would also negate the purpose of stressing the test). \end{enumerate} \subsubsection{Revised Approach: IVF\_SQ8 Quantization} \noindent As a result of the incompatibility of DISKANN with single-node memory constrained deployment models, we chose to employ IVF\_SQ8 (Inverted File Index with Scalar Quantization) as Milvus's memory constrained strategy. This decision was made out of academic integrity rather than favoritism: \begin{itemize} \item \textbf{Memory Savings:} IVF\_SQ8 compresses float32 vectors to int8, resulting in an approximate 4$\times$ memory savings. This represents Milvus's primary production mechanism for addressing memory issues in single-node deployments. \item \textbf{Real-World Deployment Relevance:} IVF\_SQ8 is a mature, well-documented index type currently utilized in real world memory constrained Milvus deployments. Benchmarking a configuration that is not supported by Milvus (DISKANN) would misrepresent the capabilities of Milvus. \item \textbf{Fair Comparison:} Rather than force a failed configuration that generates errors, we choose to compare the best available memory constrained strategy for each system. This allows us to highlight the inherent architectural differences rather than the failures generated by configurations. \item \textbf{Verifiable Results:} Both successful degradation of performance (Qdrant) and complete system failure (Milvus) are valid, publishable research findings that provide meaningful insight to practitioners regarding the real-world behavior of these systems. \end{itemize} \subsubsection{What Does This Evaluation Really Measure?} \textbf{This is NOT a comparison of disk-based indexing capabilities.} We explicitly recognize that Qdrant supports true disk-backed ANN search while Milvus (in standalone mode) does not. Instead of comparing the disk-based indexing capabilities of each system, we are comparing: \begin{itemize} \item \textbf{Qdrant:} True disk-backed operation via memory mapped files (mmap). Vectors and HNSW graph structures reside on disk; the OS page cache determines what remains in RAM. When memory is exhausted, the system continues to operate with degraded latency due to disk I/O, but the system never fails. \item \textbf{Milvus:} In-memory operation with quantization-based memory reduction. Index structures must fit within RAM. IVF\_SQ8 provides $4\times$ compression, but when datasets remain larger than the available RAM after quantization, the system will fail with out-of-memory errors rather than degrade gracefully. \end{itemize} \noindent Both outcomes, graceful degradation and system failure, are valid, verifiable research findings. Furthermore, they represent the true design trade-offs inherent to both architectures rather than configuration decisions or implementation shortcomings: \begin{itemize} \item \textbf{Trade-off of Qdrant:} Qdrant prioritizes the ability to handle large datasets through disk backing, but accepts increased latency when memory is insufficient. \item \textbf{Trade-off of Milvus:} Milvus prioritizes in-memory performance and horizontal scaling through a distributed deployment model, assuming that production environments will provide sufficient RAM or scale horizontally. \end{itemize} \noindent Neither architecture is inherently better suited for every deployment scenario; they serve distinctly different purposes. Our evaluation clearly illustrates these differences. \subsection{Experimental Design} \noindent We perform evaluations of both systems under 2~GB RAM constraint using Docker memory limits (\texttt{mem\_limit: 2g}). The evaluation uses a custom, highly selective dataset suite to measure memory-constrained behaviors of each system under three distinct operational regimes. \subsubsection{Dataset Selection for Memory-Constrained Testing} Table~\ref{tab:memory_datasets} presents the three datasets selected for memory-constrained evaluation, chosen to provide progressive memory pressure and diverse embedding characteristics. \begin{table}[htbp] \caption{Datasets for Memory-Constrained Evaluation} \label{tab:memory_datasets} \centering \begin{tabular}{lccccc} \toprule \textbf{Dataset} & \textbf{Vectors} & \textbf{Dims} & \textbf{Size} & \textbf{RAM} & \textbf{Regime} \\ \midrule dbpedia-100K & 100K & 1536 & 614~MB & 2~GB & A (In-Memory) \\ laion-small-clip & 1M & 512 & 2.0~GB & 2~GB & B (Borderline) \\ deep-image-96 & 10M & 96 & 3.8~GB & 4~GB & C (Exceeds-RAM) \\ \bottomrule \end{tabular} \end{table} The datasets were selected based on the following criteria: \begin{itemize} \item \textbf{dbpedia-openai-100K-1536-angular:} High-dimensional embeddings (1536D) from OpenAI models, representing modern LLM-based retrieval workloads. At 614~MB, this dataset fits comfortably within the 2~GB memory budget, establishing baseline performance under memory constraints. \item \textbf{laion-small-clip:} Real-world CLIP embeddings (512D) from the LAION dataset. At approximately 2~GB, this dataset represents a borderline scenario where raw vectors match the memory limit but index structures (HNSW graph overhead of 1.5--2$\times$) push total memory requirements beyond available RAM. \item \textbf{deep-image-96-angular:} A large-scale benchmark (10M vectors, 96D) totaling 3.8~GB. Initial experiments with 2~GB RAM failed due to OOM during index construction. We increased RAM to 4~GB (dataset-to-RAM ratio $\approx$0.95) to enable successful benchmarking while still demonstrating memory-constrained behavior. \end{itemize} Memory consumption follows the formula: $\text{Size} = N \times D \times 4~\text{bytes}$ for float32 vectors, with actual consumption 1.5--2$\times$ higher due to HNSW graph structures and runtime overhead. \subsubsection{Three-Regime Evaluation Methodology} The evaluation distinguishes between three experimental regimes to ensure fair and transparent comparison: \begin{itemize} \item \textbf{Regime A (In-Memory):} Datasets fitting comfortably within 2~GB RAM (dbpedia-100K). Both systems operate normally with matched HNSW parameters ($M$=16, $ef_{construct}$=200, $ef_{search}$=128), enabling fair head-to-head comparison. \item \textbf{Regime B (Borderline):} Datasets matching available RAM (laion-small-clip). Raw vectors fit in 2~GB but HNSW overhead pushes requirements beyond limits. Tests graceful degradation under memory pressure. \item \textbf{Regime C (Memory-Exceeding):} Large-scale dataset (deep-image-96) with 4~GB RAM limit. Dataset size ($\approx$3.8~GB) approaches RAM limit, requiring optimized index parameters and extended timeouts (7200s). Tests extreme memory-constrained performance. \end{itemize} \subsubsection{Configuration Details} \textbf{Qdrant configurations} (true disk-backed operation): \begin{itemize} \item \texttt{qdrant-on-disk-default}: HNSW with \texttt{on\_disk=true}, memory-mapped vectors \item \texttt{qdrant-on-disk-hnsw-matched}: Explicit $M$=16, $ef_{construct}$=200, $ef_{search}$=128 \item \texttt{qdrant-on-disk-scalar-q}: Int8 scalar quantization with disk-backed HNSW \item \texttt{qdrant-on-disk-aggressive}: Quantization with \texttt{always\_ram=true} for compressed vectors \end{itemize} \textbf{Milvus configurations} (in-memory with quantization): \begin{itemize} \item \texttt{milvus-on-disk-default}: HNSW with $M$=16, $ef_{construct}$=100 \item \texttt{milvus-on-disk-hnsw-matched}: HNSW with $M$=16, $ef_{construct}$=200 (matched to Qdrant for Regime A) \item \texttt{milvus-on-disk-ivf-sq8}: IVF\_SQ8 with $nlist$=1024, $nprobe$=16 (Milvus's memory-constrained strategy) \item \texttt{milvus-on-disk-aggressive}: HNSW with $ef$=64 and $ef$=128 search variants \end{itemize} \subsection{Architectural Differences Under Memory Pressure} Table~\ref{tab:arch_comparison} summarizes the fundamental architectural differences that affect memory-constrained behavior. \begin{table}[htbp] \caption{Architectural Comparison: Memory-Constrained Operation} \label{tab:arch_comparison} \centering \begin{tabular}{lcc} \toprule \textbf{Capability} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Disk-backed vectors & Yes (mmap) & No \\ Disk-backed index & Yes (on\_disk HNSW) & No$^\dagger$ \\ Quantization & Yes (scalar int8) & Yes (IVF\_SQ8) \\ Graceful degradation & Yes & No \\ Failure mode & Slow queries & OOM crash \\ \bottomrule \multicolumn{3}{l}{\footnotesize $^\dagger$DISKANN requires distributed mode, incompatible with single-node evaluation} \end{tabular} \end{table} \begin{itemize} \item \textbf{Qdrant}: uses memory-mapped files (mmap) to store vectors to a file on disk, while maintaining HNSW graphs for indexes in memory; as memory usage grows, the OS page cache is used to determine what parts of the data are in ram and can be discarded; this allows for some degree of graceful degradation: queries can continue, but at the cost of higher latency from disk I/O. \item \textbf{Milvus}: requires that all index structures must fit into ram at the time they are queried; when memory runs low, milvus has the option of using quantization (IVF\_SQ8), which reduces the memory needed to represent the data by an approximate factor of 4 (using int8 compression); if the amount of data required to run a query exceeds the amount of ram available even after quantization, the application will fail, rather than degrade gracefully. \end{itemize} The above reflects fundamental design tradeoffs regarding the architectures of these two systems: Qdrant prioritizes the ability to handle large datasets by storing them on disk; milvus prioritizes in-memory query performance and relies upon distributed architecture for handling datasets larger than those that could fit within the ram of a single node. \subsection{Results} \subsubsection{Regime A: In-Memory Performance (dbpedia-100K)} Table~\ref{tab:memory_regime_a} presents results for the in-memory regime where Qdrant operates under memory constraints with the \texttt{dbpedia-openai-100K-1536-angular} dataset (614~MB, fits within 2~GB). \begin{table}[htbp] \caption{Regime A Results: In-Memory Performance (2~GB RAM, dbpedia-100K)} \label{tab:memory_regime_a} \centering \begin{tabular}{lccc} \toprule \textbf{Engine (Config)} & \textbf{RPS} & \textbf{p95 (ms)} & \textbf{P@10} \\ \midrule Qdrant (default) & 548.5 & 8.38 & 99.34\% \\ Qdrant (hnsw-matched) & 490.9 & 9.21 & 99.64\% \\ Qdrant (scalar-q) & 1259.1 & 3.57 & 98.47\% \\ Qdrant (aggressive) & 1319.9 & 3.00 & 96.69\% \\ \midrule Milvus (default) & 346.4 & 11.84 & 99.39\% \\ Milvus (hnsw-matched) & 322.8 & 12.72 & 99.66\% \\ Milvus (ivf-sq8) & 720.1 & 3.91 & 92.19\% \\ \bottomrule \end{tabular} \end{table} \textbf{Key Finding:} Under memory constraints, Qdrant's scalar quantization configuration achieves 2.3$\times$ higher throughput (1259 vs 549~RPS) with only 0.87\% precision loss. The stricter HNSW parameters ($ef_{construct}$=200) improve precision by 0.3\% but reduce throughput by 10\%. \subsubsection{Regime B: Borderline Performance (laion-small-clip)} Table~\ref{tab:memory_regime_b} presents results for the borderline dataset (laion-small-clip, 1M vectors, 512D, $\approx$2~GB) where raw vectors match the memory limit but HNSW index overhead pushes requirements beyond available RAM. \begin{table}[htbp] \caption{Regime B Results: Borderline Dataset (laion-small-clip, 2~GB RAM)} \label{tab:memory_regime_b} \centering \begin{tabular}{lcccc} \toprule \textbf{Engine (Config)} & \textbf{Status} & \textbf{RPS} & \textbf{p95 (ms)} & \textbf{P@10} \\ \midrule Qdrant (default) & Success & 1058.4 & 4.41 & 99.78\% \\ Qdrant (hnsw-matched) & Success & 1002.1 & 4.65 & 99.81\% \\ Qdrant (scalar-q) & Success & 1817.3 & 2.58 & 99.11\% \\ Qdrant (aggressive) & Success & 2171.7 & 2.18 & 97.84\% \\ \midrule Milvus (default) & Success & 389.7 & 35.21 & 98.60\% \\ Milvus (hnsw-matched) & Success & 432.9 & 29.82 & 98.86\% \\ Milvus (ivf-sq8) & Success & 469.9 & 30.02 & 86.97\% \\ \bottomrule \end{tabular} \end{table} \textbf{Key Finding:} Despite laion-small-clip being a ``borderline'' dataset ($\approx$2~GB vectors), Qdrant's mmap-backed storage handles it efficiently, achieving \textbf{higher throughput than the smaller dbpedia dataset}. This counterintuitive result is explained by dimensionality: laion-small-clip uses 512D vectors (3$\times$ fewer dimensions than dbpedia's 1536D), meaning each distance calculation is significantly cheaper despite 10$\times$ more vectors. \subsubsection{Regime C: Memory-Exceeding Performance (deep-image-96)} Table~\ref{tab:memory_regime_c} presents results for the stress-test dataset (deep-image-96, 10M vectors, 96D, 3.8~GB). After initial failures with 2~GB RAM limits, we increased the memory budget to 4~GB and optimized index parameters to enable successful benchmarking. \begin{table}[htbp] \caption{Regime C Results: Memory-Exceeding Dataset (deep-image-96, 4~GB RAM)} \label{tab:memory_regime_c} \centering \begin{tabular}{lcccc} \toprule \textbf{Engine (Config)} & \textbf{Status} & \textbf{RPS} & \textbf{p95 (ms)} & \textbf{P@10} \\ \midrule Qdrant (default) & Success & 144.1 & 40.16 & 97.27\% \\ Qdrant (hnsw-matched) & TIMEOUT & -- & -- & -- \\ Qdrant (scalar-q) & Success & 106.1 & 58.14 & 96.45\% \\ Qdrant (aggressive, ef=64) & Success & 129.5 & 44.65 & 91.30\% \\ Qdrant (aggressive, ef=128) & Success & 59.7 & 98.98 & 96.60\% \\ \midrule Milvus (default) & OOM & -- & -- & -- \\ Milvus (hnsw-matched) & OOM & -- & -- & -- \\ Milvus (ivf-sq8) & Success & 407.8 & 14.06 & 95.20\% \\ Milvus (ivf-flat) & CRASH & -- & -- & -- \\ \bottomrule \end{tabular} \end{table} \textbf{Key Finding:} Regime~C reveals a \textbf{significant finding reversal}. While Qdrant dominates in Regimes~A--B, Milvus's IVF\_SQ8 index achieves \textbf{2.8$\times$ higher throughput} (407.8 vs 144.1~RPS) and \textbf{2.9$\times$ lower latency} (14.06 vs 40.16~ms p95) than Qdrant's best configuration. However, Milvus's HNSW configurations fail with OOM errors, the segment loading mechanism requires $\approx$4.8~GB predictive memory allocation, exceeding the 4~GB limit. This architectural difference explains the reversal: IVF indices load only relevant cluster centroids and posting lists during search, avoiding the full graph memory requirement of HNSW. \textbf{Index Construction:} Qdrant's default HNSW requires 92 minutes; Milvus IVF\_SQ8 completes in 16.3 minutes (\textbf{5.6$\times$ faster}). Qdrant's scalar quantization reduces build time to 8 minutes but sacrifices 26\% throughput. \textbf{Configuration Trade-offs:} \begin{itemize} \item \textbf{Best throughput:} Milvus IVF\_SQ8 (407.8~RPS, 14.06~ms p95, 95.20\% P@10) \item \textbf{Best precision:} Qdrant default (144.1~RPS, 40.16~ms p95, 97.27\% P@10) \item \textbf{Fastest indexing:} Qdrant scalar-q (8~min build, 106.1~RPS) \item \textbf{Best latency:} Milvus IVF\_SQ8 (14.06~ms p95), 2.9$\times$ lower than Qdrant \end{itemize} \textbf{I/O Amplification:} Regime~C reveals extreme Block I/O patterns. Qdrant's mmap strategy generates \textbf{8.8~TiB} of Block I/O reads for the 3.8~GB dataset, approximately 2,300$\times$ read amplification. This reflects aggressive page fault handling as the OS repeatedly swaps memory-mapped vector pages under memory pressure. In contrast, Milvus's IVF approach generates only 25.5~GiB of Block I/O (\textbf{344$\times$ less}), demonstrating that inverted file indices avoid the mmap amplification effect by loading only relevant cluster data. \subsubsection{Configuration Strategy Comparison} Table~\ref{tab:memory_config_comparison} compares performance across different Qdrant configuration strategies on the borderline laion-small-clip dataset, which provides the most meaningful comparison for memory-constrained operation. \begin{table}[htbp] \caption{Configuration Strategy Comparison on laion-small-clip (2~GB RAM)} \label{tab:memory_config_comparison} \centering \begin{tabular}{llccc} \toprule \textbf{Engine} & \textbf{Strategy} & \textbf{RPS} & \textbf{p95 (ms)} & \textbf{P@10} \\ \midrule Qdrant & HNSW (default) & 1058.4 & 4.41 & 99.78\% \\ Qdrant & HNSW (matched) & 1002.1 & 4.65 & 99.81\% \\ Qdrant & Scalar quantization & 1817.3 & 2.58 & 99.11\% \\ Qdrant & Aggressive (always\_ram) & 2171.7 & 2.18 & 97.84\% \\ \midrule Milvus & HNSW (default) & 389.7 & 35.21 & 98.60\% \\ Milvus & HNSW (matched) & 432.9 & 29.82 & 98.86\% \\ Milvus & IVF\_SQ8 & 469.9 & 30.02 & 86.97\% \\ \bottomrule \end{tabular} \end{table} \textbf{Key Observations:} \begin{itemize} \item \textbf{Qdrant achieves 4.6$\times$ higher throughput} on the borderline dataset (2172 vs 470~RPS best-to-best), widening the gap observed in unconstrained benchmarks. \item \textbf{Qdrant p95 latency is 6--14$\times$ lower} (2.18~ms vs 29.82~ms), demonstrating superior tail latency under memory pressure. \item \textbf{Quantization trade-offs differ significantly:} Qdrant's scalar quantization loses $<$2\% precision while Milvus's IVF\_SQ8 loses 12\% (86.97\% vs 98.86\%). \item \textbf{HNSW parameter tuning shows diminishing returns}, increasing $ef_{construct}$ from 100 to 200 gains only 0.26\% precision but loses 11\% throughput for Milvus. \end{itemize} \subsection{Resource Usage Under Memory Constraints} Table~\ref{tab:memory_resources} presents resource consumption metrics during memory-constrained benchmarks (Regime~B, 2~GB RAM limit). \begin{table}[htbp] \caption{Resource Usage Comparison (Regime~B, 2~GB RAM)} \label{tab:memory_resources} \centering \begin{tabular}{lcc} \toprule \textbf{Metric} & \textbf{Qdrant} & \textbf{Milvus} \\ \midrule Mean CPU (\%) & 380.7 & 214.4 \\ Peak CPU (\%) & 1489.8 & 1591.3 \\ Mean Memory (GiB) & 1.55 & 1.25$^\dagger$ \\ Peak Memory (GiB) & 2.0 & 2.0 \\ Block I/O Read (GiB) & 5,494.8 & 62.0 \\ Network I/O (GiB) & 14.0 & 132.9 \\ \bottomrule \multicolumn{3}{l}{\footnotesize $^\dagger$Milvus standalone only; excludes etcd (27~MiB) and MinIO (155~MiB)} \end{tabular} \end{table} The resource usage patterns reveal fundamental architectural differences: \begin{itemize} \item \textbf{Qdrant's mmap strategy} results in 89x as much Block I/O as Qdrant (5,495 GiB vs 62 GiB) because it streams vector data off the disk through the Operating System's Page Cache. The result is about 1450x read amplification for the 3.8 GB dataset, which is caused by the aggressive page-fault handling under memory-pressure conditions. However, despite the increased I/O overhead, Qdrant outperforms Milvus with regards to throughput because it delegates memory-management to the Operating System. \item \textbf{Milvus generates 9.5x as much Network I/O} (133 GiB vs 14 GiB), due to communications between the independent components of the standalone Milvus service, the MinIO object-storage system, and the etcd coordinator, all of which are running on the same host. \item \textbf{Both Engines reach 100\% of their Memory Limits}, as well, to confirm that the 2 GB constraint is being enforced and is meaningful. \item \textbf{The two Engines have different CPU utilization patterns:} The CPU utilization for Qdrant was sustained at a higher level than for Milvus (381\% vs 214\%), while Qdrant achieved higher throughput; therefore, it is apparent that Qdrant has more efficient CPU utilization per query. \end{itemize} Figure~\ref{fig:memory_timeline} illustrates memory consumption over time during on-disk benchmarks, showing both engines operating at the memory constraint boundary. \begin{figure}[htbp] \centerline{\includegraphics[width=\columnwidth]{figures/THESIS_06_memory_timeline.png}} \caption{Memory timeline during memory-constrained benchmarks. Both engines approach the 2~GB limit during index construction, with Qdrant maintaining more stable memory usage during query execution.} \label{fig:memory_timeline} \end{figure} \subsection{Implications for Production Deployments} The memory-constrained evaluation reveals important considerations for resource-limited deployments: \begin{enumerate} \item Dimensionality is what affects vector count for search performance: We see in our experiments that laion-small-clip (1M vectors; 512 dimensions) performs better than dbpedia-100K (100k vectors; 1536 dimensions), even though there are ten times as many vectors. This seems to contradict common knowledge, but we have found that when you're doing a search on your data in a hierarchical k-d tree like HNSW (Hierarchical Navigable Small World), the cost of calculating the distances (cost = O(D)) is much larger than the cost of traversing the tree (cost = O(log N)). \item Scalar quantization has a lot of advantages: The use of Qdrant's int8 (one byte per dimension) scalar quantization gives us from 1.7-2.3 times the amount of throughput we would get if we didn't do it, while losing less than one percent of our accuracy. I would recommend using this configuration by default for all memory constrained deployments. \item There is a hard limit in how large the RAM for a dataset can be before it cannot be indexed: If the dataset is larger than the amount of RAM available (for example, deep-image-96 is about 3.8 GB in size and we are limited to 2 GB) then the dataset cannot be practically indexed because the memory required to build the HNSW graph is proportional to the number of points in the dataset and the time to build it will take hours. \item Viability of edge deployment: Qdrant can efficiently index a dataset which is 1.5 times as big as the available RAM using mmap backed storage and will degrade the latency in a predictable way. After this point, the construction of the index will become the limiting factor in the performance of the system, not the query execution. \item Memory planning for Milvus: Because Milvus operates in standalone mode, it doesn't support true disk-backed indexing so memory provisioning needs to be done carefully. If we choose to use IVF\_SQ8 quantization, it compresses the data down to about four times smaller, so the maximum size of a dataset we can support will be 4 times the amount of RAM available. \end{enumerate} %============================================================================== % VIII. DISCUSSION %============================================================================== \section{Discussion} \label{sec:discussion} \subsection{Architectural Drivers of Performance} The differences in performance between Qdrant and Milvus result from how each was built: \textbf{How Memory Management Works.} Qdrant's use of pure Rust means that there is no garbage collector to pause during execution; as a result, Qdrant has very consistent latency distribution - as demonstrated by the very low ratio of p95 to p99 values. In contrast, Milvus is composed of two different runtimes: Go-based coordinator and proxy services and C++-based similarity computation kernels (which have no garbage collection). However, since all other processes in Milvus have their own Go runtime, they may experience pauses, as well as potential coordination overhead between the Go services, leading to variability in latency. \textbf{How Processes Are Organized.} Since Qdrant uses a single process model, there is no communication between processes. All of Qdrant's data structures exist in a single address space, so accessing them does not require serializing memory access. On the other hand, Milvus is a microservice-based system that includes five different communication hops: the client communicates to a proxy service; then the proxy service sends the request to a query node; the query node communicates with MinIO (an S3-compliant object store); the response is sent back to the client via the aggregation service. Each of these hops adds latency and potentially creates new points of contention. \textbf{How Storage Is Presented To Applications.} Qdrant stores all of its data using memory-mapped files. This means that if an application needs to access a file, the operating system will automatically manage whether or not that file is in memory - and if it is not in memory, it will be read into memory as needed. The advantage of using memory-mapped files is that they allow applications to treat disk files like memory. On the other hand, while Milvus allows developers to seamlessly integrate cloud storage into their application using MinIO (an S3-compliant object store), it introduces additional layers of complexity when used for local deployments, resulting in added latency for single-node workloads. \textbf{How Concurrency is Implemented.} Qdrant uses Tokio, an asynchronous runtime, to multiplex thousands of concurrent requests on available CPU cores. This means that each time a request is received, instead of creating a new thread, the Tokio runtime simply adds the new task to a queue of tasks waiting to be processed. When the current task completes, the next task in the queue is executed. As a result, Tokio can multiplex many tasks per CPU core without incurring the cost of a thread switch. In contrast, while Milvus uses traditional threading, it also uses Goroutines, which are lightweight threads provided by the Go runtime. Goroutines perform reasonably well, but they incur some additional overhead due to the need for synchronization between the various distributed components in Milvus. \section{Scalability Considerations} Although Qdrant outperforms in terms of single-node performance, there are other advantages to Milvus' architecture for large-scale implementations: \begin{itemize} \item \textbf{Independent Horizontal Scaling: } Since Milvus separates the tiers for compute (query nodes), storage (MinIO), and coordination (etcd), you can independently scale each tier. Qdrant's distributed mode is newer and has fewer test cases at the billion-scale level of deployments than Milvus' distributed mode. \item \textbf{Storage Tiering: } Milvus' storage abstraction allows you to implement hot/warm/cold data tiering based upon the different storage classes available, which could help reduce the cost associated with large collections that are accessed infrequently. \item \textbf{Enterprise Features: } Milvus provides features such as role-based access control, multi-tenancy, and enterprise-level support, which may be valuable enough to justify the additional overhead for an organization. \end{itemize} \subsection{Practitioner Guidance} Based on our results, we recommend the following practices for deploying these two systems: \textbf{Use Qdrant When: } \begin{itemize} \item \textit{\textbf{Latency Requirements}}: p95 < 10 ms \item \textit{\textbf{Operational Simplicity}}: Single binary deployment \item \textit{\textbf{Dataset Size}}: The dataset will fit into memory on a single node (up to ~10 B vectors with sufficient RAM). \item \textit{\textbf{Sub-Millisecond Similarity Search}}: Your application requires RAG-style applications to operate with sub-ms similarity search \item \textit{\textbf{Memory-Constrained Environments}}: In-memory-only solutions cannot be deployed due to memory constraints \end{itemize} \textbf{Use Milvus When: } \begin{itemize} \item \textit{\textbf{Large Datasets}}: The dataset is too large to deploy on a single node \item \textit{\textbf{Organizational Requirements}}: Your organization needs enterprise support \item \textit{\textbf{Existing Infrastructure}}: You have existing infrastructure with Kubernetes and object storage \item \textit{\textbf{GPU Acceleration Required}}: You need to utilize GPU acceleration (Milvus supports GPU indexes) \item \textit{\textbf{Multi-Tenancy}}: You need to provide multi-tenancy with isolation guarantees \end{itemize} \subsection{Threats to Validity} \textbf{Internal Validity.} We controlled for potential confounders through running the experiments sequentially on dedicated hardware without any competing workload. Additionally, we used Docker resource limits to ensure consistent execution environments for each experiment. That being said, the configuration options (e.g., HNSW parameters, parallel settings) may not represent the best possible optimization for each system. \textbf{External Validity.} Our results were generated from single-node, HNSW-only configurations on a particular hardware platform. Therefore, it is possible that the performance characteristics may vary on ARM platforms, with GPU acceleration, under distributed deployments, or using alternative index types (IVF, PQ, ScaNN). \textbf{Construct Validity.} Our evaluation of throughput, latency percentiles, and precision@10 align with the common benchmarks used in the field of Information Retrieval~\cite{aumueller2020annbenchmarks}. However, production workloads typically include a variety of queries that are not considered in this evaluation (filtered search, hybrid queries, concurrent write operations). \subsection{Limitations and Future Work} There are several avenues of research that remain unexplored based on this study: \begin{enumerate} \item \textbf{Distributed Benchmarks}: Assessing the performance of multiple nodes with a real-world distribution of data and querying. \item \textbf{Filtered Search}: Investigate the impact of meta-data predicates (range filters, keyword matching) on performance. \item \textbf{Write-Heavy Workloads}: Evaluate how concurrent inserts affect query performance. \item \textbf{Alternative Indexes}: Compare the performance of IVF-PQ, ScaNN, and other GPU-accelerated indexes. \item \textbf{Cost Modeling}: Complete TCO modeling for licensing, operational overhead, and cloud pricing. \end{enumerate} %============================================================================== % IX. CONCLUSION %============================================================================== \section{Conclusion} \label{sec:conclusion} We present VECTOR-ADIS an exhaustive empirical investigation and comparison of Qdrant and Milvus, two popular open source vector database solutions, along a number of important dimensions relevant to production use cases. Our comparative assessment of 10 datasets of varying dimensionality from 96 to 2048 dimensions reveals a number of important conclusions: \textbf{Throughput Advantage}. Qdrant outperforms Milvus by 54 percent in terms of mean throughput (611.26 vs. 395.87 RPS) in single node evaluations. The throughput advantage is even greater when normalized by resource utilization (efficiency index), 141 percent. \textbf{Latency Characteristics}. Qdrant produces much shorter tail latencies than Milvus; the 95th percentile latency for Qdrant is 13 percent less than Milvus in unconstrained benchmarks and up to 14 times less in memory constrained benchmarks (2.18 ms vs. 29.82 ms). This represents a significant improvement in user experience due to the direct relationship between latency spikes and user experience. \textbf{Accuracy Parity}. Both systems produce similar levels of retrieval accuracy (precision@10 > .96) using the same hyperparameters for HNSW, which confirms that the performance differences are due to engineering decisions, rather than algorithmic tradeoffs. \textbf{Resource Efficiency}. Qdrant produces more performance per CPU cycle and significantly less I/O overhead than Milvus. Therefore, it requires fewer resources to reach the same level of throughput and improves both cost and operational efficiency. \textbf{Memory Constrained Use Cases}. Qdrant's mmap based storage allows it to be used on datasets that approach available RAM without causing a collapse. Under 2 GB RAM constraints, Qdrant can provide up to 4.6 times better throughput than Milvus on borderline datasets. At 4 GB RAM, Qdrant was able to fully index and query the 3.8 GB deep-image-96 dataset (10 million vectors) at 144 RPS with 97.27 percent precision. These results demonstrate that Qdrant can produce meaningful results even when the size of the data set exceeds the amount of available RAM. \textbf{Architectural Trade-offs}. Differences in performance are solely due to the choices made in the architectures of each system: Qdrant's Rust-based monolithic architecture focuses on optimizing performance in single node environments, while Milvus's polyglot microservice architecture provides a foundation for scaling in a multi node environment at the expense of single node performance. Therefore, these findings have immediate practical implications for system architects and practitioners who build and deploy systems for end users. For example, latency sensitive applications such as RAG powered assistants, real time recommendation engines, and interactive semantic search can benefit from the superior performance and simpler operational characteristics of Qdrant. On the other hand, large scale applications that require billions of scale deployment models and require distributed storage and enterprise features, Milvus's architecture may provide a suitable foundation but with increased overhead for each individual node. In addition to the previous points, we also demonstrated that the memory constraint evaluation reinforced the fact that Milvus does not support its DISKANN indexing method in standalone mode. Thus, this reinforces Qdrant's position as the most effective solution for resource limited deployment models. In future work, we plan to extend our evaluation to include distributed configurations and filtered search workloads, as well as evaluate different index methods. All of the results and the VECTOR-ADIS benchmarking framework are available as open source code so they can be reproduced and extended to other vector database systems by the community. %============================================================================== % ACKNOWLEDGMENT %============================================================================== \section*{Acknowledgment} The authors thank the faculty of the National Technical University of Athens for guidance throughout this project, and the open-source communities behind Qdrant and Milvus. %============================================================================== % APPENDIX %============================================================================== \appendix \section{Complete Memory-Constrained Results} \label{app:memory_results} Table~\ref{tab:app_all_results} presents the complete results from all memory-constrained experiments, ranked by throughput. Regimes A and B use 2~GB RAM; Regime C (deep-image-96) uses 4~GB RAM due to dataset size constraints. \begin{table}[htbp] \caption{All Memory-Constrained Experiments (Ranked by RPS)} \label{tab:app_all_results} \centering \small \begin{tabular}{llcccc} \toprule \textbf{Engine} & \textbf{Dataset} & \textbf{Regime} & \textbf{RPS} & \textbf{p95} & \textbf{P@10} \\ \midrule Qdrant-agg & laion & B & 2171.7 & 2.18 & 97.84\% \\ Qdrant-agg & laion & B & 1867.9 & 2.51 & 98.79\% \\ Qdrant-sq & laion & B & 1817.3 & 2.58 & 99.11\% \\ Qdrant-agg & dbpedia & A & 1319.9 & 3.00 & 96.69\% \\ Qdrant-sq & dbpedia & A & 1259.1 & 3.57 & 98.47\% \\ Qdrant-agg & dbpedia & A & 1257.2 & 3.67 & 98.89\% \\ Qdrant-def & laion & B & 1058.4 & 4.41 & 99.78\% \\ Qdrant-hnsw & laion & B & 1002.1 & 4.65 & 99.81\% \\ Milvus-ivf & dbpedia & A & 720.1 & 3.91 & 92.19\% \\ Qdrant-def & dbpedia & A & 548.5 & 8.38 & 99.34\% \\ Qdrant-hnsw & dbpedia & A & 490.9 & 9.21 & 99.64\% \\ Milvus-ivf & laion & B & 469.9 & 30.02 & 86.97\% \\ Milvus-hnsw & laion & B & 432.9 & 29.82 & 98.86\% \\ Milvus-def & laion & B & 389.7 & 35.21 & 98.60\% \\ Milvus-def & dbpedia & A & 346.4 & 11.84 & 99.39\% \\ Milvus-hnsw & dbpedia & A & 322.8 & 12.72 & 99.66\% \\ \midrule \multicolumn{6}{l}{\textit{Regime C: deep-image-96 (10M vectors, 4~GB RAM)}} \\ Qdrant-def & deep-img & C & 144.1 & 40.16 & 97.27\% \\ Qdrant-agg & deep-img & C & 129.5 & 44.65 & 91.30\% \\ Qdrant-sq & deep-img & C & 106.1 & 58.14 & 96.45\% \\ Qdrant-agg$^\star$ & deep-img & C & 59.7 & 98.98 & 96.60\% \\ Milvus-ivf & deep-img & C & 407.8 & 14.06 & 95.20\% \\ \bottomrule \multicolumn{6}{l}{\footnotesize $^\star$ef=128 with oversampling=1.5} \end{tabular} \end{table} \section{Index Construction Times} \label{app:upload_times} Table~\ref{tab:app_upload} presents upload and total indexing times for memory-constrained configurations. Regime C results highlight the significant index construction overhead for 10M-vector datasets. \begin{table}[htbp] \caption{Upload and Indexing Times (seconds)} \label{tab:app_upload} \centering \small \begin{tabular}{llcc} \toprule \textbf{Engine (Config)} & \textbf{Dataset} & \textbf{Upload} & \textbf{Total} \\ \midrule \multicolumn{4}{l}{\textit{Regimes A/B (2~GB RAM)}} \\ Qdrant (hnsw-matched) & dbpedia-100K & 10.5 & 60.6 \\ Qdrant (hnsw-matched) & laion-small & 6.3 & 31.4 \\ Qdrant (scalar-q) & dbpedia-100K & 10.7 & 25.7 \\ Qdrant (scalar-q) & laion-small & 6.3 & 21.3 \\ Qdrant (aggressive) & dbpedia-100K & 9.7 & 24.7 \\ Qdrant (aggressive) & laion-small & 6.2 & 21.2 \\ Milvus (default) & dbpedia-100K & 17.6 & 56.4 \\ Milvus (default) & laion-small & 7.3 & 31.7 \\ Milvus (hnsw-matched) & dbpedia-100K & 16.8 & 72.7 \\ Milvus (hnsw-matched) & laion-small & 7.4 & 37.0 \\ Milvus (ivf-sq8) & dbpedia-100K & 15.9 & 47.7 \\ Milvus (ivf-sq8) & laion-small & 7.2 & 29.5 \\ \midrule \multicolumn{4}{l}{\textit{Regime C: deep-image-96 (4~GB RAM)}} \\ Qdrant (default) & deep-image-96 & 330 & 5541 \\ Qdrant (hnsw-matched) & deep-image-96 & 401 & $>$7200$^\dagger$ \\ Qdrant (scalar-q) & deep-image-96 & 302 & 493 \\ Qdrant (aggressive) & deep-image-96 & 285 & 385 \\ Milvus (ivf-sq8) & deep-image-96 & 60 & 3.2 \\ \bottomrule \multicolumn{4}{l}{\footnotesize $^\dagger$Timed out during index construction} \end{tabular} \end{table} \section{Resource Monitoring Statistics} \label{app:resources} Table~\ref{tab:app_resources} presents detailed resource consumption by deployment configuration. \begin{table}[htbp] \caption{Resource Consumption by Configuration} \label{tab:app_resources} \centering \small \begin{tabular}{lcccc} \toprule \textbf{Config} & \textbf{CPU\%} & \textbf{Mem (GiB)} & \textbf{Block I/O} & \textbf{Net I/O} \\ \midrule \multicolumn{5}{l}{\textit{Unconstrained (32 GB RAM)}} \\ Qdrant-single & 540.0 & 4.75 & 10.7 GiB & 57.1 GiB \\ Milvus-single & 746.0 & 2.63$^\dagger$ & 25.1 GiB & 200.0 GiB \\ \midrule \multicolumn{5}{l}{\textit{Memory-Constrained (2 GB RAM, Regime B)}} \\ Qdrant-on-disk & 380.7 & 1.55 & 5,494.8 GiB & 14.0 GiB \\ Milvus-on-disk & 214.4 & 1.25$^\dagger$ & 62.0 GiB & 132.9 GiB \\ \midrule \multicolumn{5}{l}{\textit{Memory-Constrained (4 GB RAM, Regime C)}} \\ Qdrant-on-disk & 404.6 & 3.99 & 8,773.1 GiB & 15.4 GiB \\ Milvus-on-disk & 169.7 & 4.00$^\dagger$ & 25.5 GiB & 67.5 GiB \\ \bottomrule \multicolumn{5}{l}{\footnotesize $^\dagger$Standalone container only; add 182 MiB for etcd+MinIO} \end{tabular} \end{table} Key Insights from resource monitoring: \begin{itemize} \item Qdrant's mmap storage generates 89--344$\times$ more block I/O when compared to constrained modes (5.5--8.8~TiB vs. 25--62~GiB) of memory usage. \item The amount of block I/O that is generated by Qdrant increases as memory usage increases; this is evidenced by the fact that Qdrant produces 2,300$\times$ more block I/O than it does in Regime~B when compared to Regime~C. \item Milvus will produce 5--10$\times$ more network I/O due to the additional overhead associated with microservices. \item Both engines reach 100\% memory usage while constructing their indexes. \item Qdrant has a greater throughput but uses less average CPU time than Milvus. \end{itemize} %============================================================================== % CODE AVAILABILITY %============================================================================== \section*{Code Availability} The VECTOR-ADIS benchmarking framework, all experimental results, and analysis scripts are publicly available at \url{https://github.com/christos97/vector-adis}. The repository includes the complete benchmark orchestration code, Docker Compose configurations for both Qdrant and Milvus, raw experimental data in JSON format, scripts for reproducing all figures and tables, and comprehensive documentation enabling independent reproducibility and extension to additional vector database systems. %============================================================================== % REFERENCES %============================================================================== \bibliographystyle{IEEEtran} \bibliography{references} \end{document}