NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Redbench: A Benchmark Reflecting Real Workloads

Skander Krid, Mihail Stoian, Andreas KipfarXiv 2025 · DOI

Abstract

Instance-optimized database components rely heavily on real-world workload patterns—such as query repetition and distribution shifts—to train their models. However, standard benchmarks like TPC-H fail to capture these dynamics. Redbench bridges this gap by sampling queries from existing benchmarks and aligning them with actual production workload statistics from Amazon Redshift. This provides researchers with 30 realistic, repetition-aware workloads to properly stress-test modern, AI-driven database systems.

Introduction

The database community is undergoing a paradigm shift from traditional, "one-size-fits-all" systems optimized for worst-case scenarios to instance-optimized systems. These modern systems utilize machine learning and workload-aware algorithms to adapt to the specific data and query patterns of a given application, such as learned query optimizers, intelligent resource scaling, and predicate caching.

Despite these advancements, a significant gap exists between industry and research: the lack of realistic workloads. Evaluating a learned database component requires workloads that exhibit real-world behaviors, particularly query repetitiveness and workload drift (how query patterns change over time). Standard benchmarks like TPC-H, TPC-DS, and the Join Order Benchmark (JOB) use handwritten or synthetically generated queries that do not accurately reflect production patterns. Without realistic benchmarks, researchers cannot properly validate how well their learned components will perform—or fail—in the real world.

Methodology

Redbench is designed as a "repetition-aware" benchmark that acts as a translation layer. Instead of generating a completely new dataset and schema from scratch, it maps the statistical characteristics of real-world workloads onto existing support benchmarks (like TPC-DS or IMDb).

The Redbench generation pipeline, mapping Redset user statistics to benchmark queries.

The methodology follows a structured pipeline:

  1. Prefiltering: Using Redset, a public dataset of query metadata from Amazon Redshift, the authors isolate SELECT queries with joins and focus on the busiest week for each user, capped at 1,000 queries.
  2. User Sampling: Redset users are divided into 10 buckets based on their query repetition rates (from 0-10% up to 90-100%). The authors select 3 users from each bucket representing low, median, and high workload variability, resulting in 30 distinct user profiles.
  3. Workload Sampling: Redbench recreates these 30 workloads using actual SQL queries from a support benchmark. If a query hash repeats in the Redset metadata, Redbench reuses the exact same support benchmark query. If a new query appears, Redbench maps it to a benchmark template with a similar normalized number of joins.
  4. Fallback Strategy: If the support benchmark runs out of unique query templates to match the real-world complexity, Redbench randomly reuses existing ones to keep the workload flowing.

Datasets and Support Benchmarks

Redbench utilizes two primary data sources to achieve its goals:

  • Redset: Used as the source of truth for real-world workload statistics. It contains customer query metadata from Amazon Redshift spanning 3 months across 200 clusters.
  • Support Benchmarks: Used to supply the actual database schemas and SQL queries. Redbench currently supports instantiations for IMDb (combining JOB and the Cardinality Estimation Benchmark) and TPC-DS.

The resulting benchmark outputs 30 realistic workloads (e.g., redbench[imdb] and redbench[tpc-ds]) that researchers can use to evaluate system performance under realistic conditions.

Key Insights and Results

A critical finding of the paper is that read-only queries spend about 44.5% of their time in scan and filter operators. Because real workloads are highly repetitive, learned systems can amortize expensive optimizations (like super-optimization or building specialized indexes) over subsequent runs. Standard benchmarks completely miss this repetition.

Redbench successfully generates 30 distinct workloads that perfectly match the query repetition rates of real Redshift users, spanning the full spectrum from highly exploratory (0-10% repetition) to highly automated/dashboard-driven (90-100% repetition). As shown in the complexity analysis, the benchmark accurately preserves the relative temporal order of queries and the fluctuations in query complexity (number of joins) over time. The fallback strategy was only triggered for ~18% of queries, proving that existing benchmarks have sufficient template diversity to mimic real workloads when sampled intelligently.

Limitations and Future Work

Currently, Redbench only supports SELECT queries, ignoring updates/DML operations which are critical for testing cache invalidation and index maintenance. Additionally, because absolute timestamps are discarded, the benchmark cannot currently simulate workload spikes or idle periods.

Future work includes adding support for updates in version 1.0 and integrating with the Cloud-Analytics Benchmark (CAB) to preserve wall-clock timing. The authors also intend to explore synthetically generated queries as the support benchmark to achieve a perfect 1:1 mapping of table access patterns.

Summary updated

BibTeX
@misc{krid2025redbench,
  author = {Skander Krid and Mihail Stoian and Andreas Kipf},
  title = {{Redbench: A Benchmark Reflecting Real Workloads}},
  year = {2025},
  eprint = {2506.12488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.12488},
}

Loading related content...

Figure