arXiv:2611.00449cs.DBOct 2026

Manuscript Offprint

arXiv:2611.00449

SpBench: An Agent-Native Framework for Cross-Engine Lakehouse Benchmarking

Lyndon Shi, Nic Crouch, Yi Hu, Zihao Ye, Choden Konigsmark, Eric Vandenberg, Dionysios Logothetis, Kuba Niemiec, Krzysztof Gadomski, Yuxiong He

Lyndon Shi*, Nic Crouch*, Yi Hu*, Zihao Ye*, Choden Konigsmark, Eric Vandenberg, Dionysios Logothetis, Kuba Niemiec, Krzysztof Gadomski, Yuxiong He Snowflake Inc.

Abstract—SpBench is an agent-native framework for cross-engine lakehouse benchmarking, in production use for benchmarking Snowpark, Snowpark Connect for Apache Spark, and other execution environments across standardized suites — such as TPCx-BB and TPC-DI — and custom benchmarks distilled from production workload patterns. It runs continuously across a broad portfolio of workloads, guiding the performance roadmap and detecting regressions for production-scale data engines. Benchmarking has historically been an expensive investment requiring continuous cross-functional collaboration and domain expertise, making it difficult to obtain actionable performance insights. SpBench provides (i) a typed, code-generated benchmark substrate that compiles platform-agnostic benchmark definitions into fair, comparable platform-specific implementations; (ii) a structured-telemetry contract recording every run as queryable fact and dimension data, letting LLM agents query results deterministically; and (iii) an agent-native harness of three composable skills to expedite building benchmarks and analyzing results. This agent-native architecture enabled the rapid development of more than 400 benchmark queries that run on a regular cadence to detect performance regressions; catching these has directly led to improvements in production.

Index Terms—lakehouse benchmarking; LLM agents; foundation models for big data; benchmarking frameworks

I. INTRODUCTION

Modern cloud data platforms expose different execution engines for the same logical workload. On Snowflake this includes the Snowpark API for native execution [1] and Snowpark Connect for Apache Spark [2]; SpBench additionally benchmarks Apache Spark [3] across other lakehouse platforms. Comparing these engines fairly is a recurring industrial need that is expensive and time-consuming. Continuous cross-functional collaboration is required as different roles look for different signals from benchmarking, and benchmark implementations require domain experts.

Recent advances in foundation models [4] and LLM agents [5] suggest a different operating model: an LLM agent can, in principle, translate a natural-language workload description into engine-equivalent implementations, drive their execution, and produce a structured comparison. Naive “agent-in-a-shell” approaches — an LLM issuing raw shell commands without typed schemas or structured intermediaries — often fail to produce comparable implementations across engines and struggle to fit multi-engine understanding in a single context. Robust primitives and a unified architecture are therefore required to guide AI toward rigorous implementations and reliable results.

This paper presents SpBench, an agent-native framework for cross-engine lakehouse benchmarking in production use. Three concepts enable LLM agents to act as first-class consumers of the benchmarking workflow:

  1. Strictly typed benchmark definitions. A benchmark is expressed step-by-step in a platform-agnostic way to achieve equivalent implementations across engines by construction.

  2. Structured-telemetry contract. Every run is recorded as queryable fact and dimension data in a standardized format, allowing deterministic queries for results.

  3. Agent-native harness. Composable skills form a closed loop for independent, self-reviewing agent iteration.