FDEInterviews logo
RecentarXiv preprint

RAGPerf: An End-to-End Benchmarking Framework for Retrieval-Augmented Generation Systems

The 2026 UIUC and IBM benchmark that profiles a RAG system stage by stage and finds where the time, memory and money really go, rarely where teams look.

Breakdown by FDE Interviews · 10 min read · Updated

About the original · 2026
AUTHORS
Li, Zhou, Xu, Chen, et al.
FROM
University of Illinois Urbana-Champaign, IBM Research
PUBLISHED
Mar 2026 · arXiv preprint
CITED BY
3Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

Most RAG benchmarks ask whether answers are right. Few ask where the time goes, how much memory each stage needs, or what happens to latency when documents are being updated while people query them. Those are the questions that decide whether a pilot survives production.

RAGPerf, from the University of Illinois and IBM Research, is a benchmarking framework that answers them. It splits a RAG system into stages (embedding, indexing, retrieval, reranking, generation), lets you swap components at each stage, generates workloads with configurable mixes of queries and document inserts, updates and deletes, and records performance (latency, throughput, CPU, GPU, memory, disk) and quality (context recall, accuracy, factual consistency) at once. It supports text, PDF and audio pipelines and five vector databases: LanceDB, Milvus, Qdrant, Chroma and Elasticsearch.

The measurements are the useful part. For text queries, generation took 75% to 91% of latency, so the choice of vector database barely changed response time. For PDFs, OCR and format conversion took 98.2% of indexing time while the GPU sat around 10% busy. For page-image retrieval in the style of ColPali, reranking took 28% to 87% of each iteration. Host memory, not CPU, decided throughput, and keeping new documents searchable between index rebuilds cost latency that grew until the next rebuild.

THE IDEA, VISUALLY
WHERE THE TIME GOES, MEASURED Text query, Qwen-7B generation 75% everything else 25% Text query, GPT-20B generation 80% Text query, Qwen-72B generation 91% Indexing PDFs with OCR format conversion (OCR) 98.2% Page-image query (ColPali) reranking: 28% to 87% of each iteration, depending on the vector database THE PRICE OF FRESHNESS Without a flat index, new documents are invisible until the next rebuild. With one, they are searchable at once, and latency climbs between rebuilds. 7.0 s 10.7 s rebuild
Measure before optimizing. Generation dominates query latency, OCR dominates PDF indexing, and keeping new documents searchable has a latency price between index rebuilds.
Research notes: the problem, approach and results
75–91%

of text query latency spent in generation, for models from 7B to 72B parameters

98.2%

of PDF indexing time spent on OCR and format conversion

15%

of peak throughput left for Milvus when host memory was cut to 32 GB, forcing disk-based indexes

THE PROBLEM

RAG benchmarks measured answer quality, not system behavior, so teams tuned vector databases and embeddings without knowing which stage limited speed or cost.

THE IDEA

Split the pipeline into embedding, indexing, retrieval, reranking and generation, generate realistic query and update workloads, and record latency, throughput, CPU, GPU, memory and I/O per stage alongside quality.

THE RESULT

Generation dominated text query latency, OCR dominated PDF indexing, reranking dominated page-image retrieval, and memory, not CPU, set the throughput ceiling.

02

Why it matters to an FDE

The most common performance mistake on RAG projects is optimizing the stage that is easiest to change rather than the one that is slow. This paper gives you measured shares to anchor that conversation.

Generation is usually the bottleneck for queries. With generation at 75% to 91% of latency, even a tenfold faster retriever improves end-to-end response time by at most about a third. Shorter prompts, smaller or faster models, better batching and caching move the number; swapping vector databases mostly does not.

Ingestion has its own bottleneck. For scanned or complex PDFs, OCR dominated indexing so completely that everything else was noise. Budget the ingestion pipeline as a separate system with its own throughput target, and consider image-based retrieval or faster conversion when the backlog is large.

Freshness is a design decision with a measured cost. Many vector indexes do not make new documents searchable until they are rebuilt. A side buffer (a flat index scanned on every query) makes updates visible at once but slows queries as it grows. Customers who say "the bot must know about documents within minutes" are asking for that trade-off, and you should show them its price.

Memory sizes the deployment. Host memory for indexes and GPU memory for models set the ceiling. CPU cores barely mattered.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 49 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, the measured bottlenecks per pipeline, and the misreadings to avoid

    Free account
  2. 04How it works

    The components, the workload generator, the update experiment and the metrics

    Premium
  3. 05The numbers that matter

    Every headline measurement with its source, and two findings worth extra attention

    Premium
  4. 06Try it yourself

    Amdahl's law on the paper's shares, and a stage profiler for your own pipeline

    Premium
  5. 07Where it breaks

    The study's scope, and what it does not measure

    Premium
  6. 08Using it on a deployment

    Profiling, freshness policy and capacity planning for a customer's RAG system

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →