RAGMark: A Comprehensive Framework for Benchmarking Retrieval-Augmented Generation Systems

Zlatan Feric, Amir Taherin, Bin Ren, Yanzhi Wang, Jennifer Dy +1 more
9/4/2026
1 citation
cs.PFcs.AIcs.AR
rag

Official code: zferic/RAGMark (2 stars, Jupyter Notebook, MIT, last commit 2026-10-02).

Abstract

We present RAGMark, a modular benchmarking framework for advanced Retrieval-Augmented Generation (RAG) systems targeting small-scale multi-GPU environments. RAGMark evaluates diverse RAG components, including retrievers, vector databases, prompt-processing methods, and generator models, while collecting detailed per-stage metrics such as latency, GPU utilization, memory consumption, power usage, time to first token (TTFT), throughput, and answer quality.

Show full abstract

The framework is highly extensible, separating RAG stages, timing, and resource monitoring into modular components, and is designed to efficiently sweep large configuration spaces while minimizing repeated model and database initialization overhead. Using RAGMark, we characterize five RAG workloads on open-domain QA datasets across varying retrieval depths, model scales, reranking, compression methods, and vector database configurations. We show that while autoregressive generation dominates latency in naive pipelines, context-reduction techniques shift bottlenecks across compute, memory bandwidth, and preprocessing stages. Reranking and compression produce compounding benefits: reranking reduces compression workload itself, while both jointly reduce prefill and KV-cache traversal costs, lowering energy consumption by up to 66%. We further observe strong cross-stage interactions, where small upstream context reductions cascade through downstream latency, memory traffic, and energy consumption. The RAGMark source code is publicly available at: https://github.com/zferic/RAGMark.

View on arXivView PDF

Code Implementations(1)

zferic/RAGMarkOfficial100%
MIT

RAG Benchmarking framework

20Jupyter Notebook, PythonJun 23, 20262 months agoMIT

Similar Papers

Cite this paper

@article{feric2026ragmark,
  title  = {RAGMark: A Comprehensive Framework for Benchmarking Retrieval-Augmented Generation Systems},
  author = {Zlatan Feric and Amir Taherin and Bin Ren and Yanzhi Wang and Jennifer Dy and David Kaeli},
  year   = {2026},
  eprint = {2609.05760},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.05760v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.05760.svg)](https://codeofpaper.com/paper/2609.05760)

Discussion