Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2506.02345v1

Help | Advanced Search

Computer Science > Databases

arXiv:2506.02345v1 (cs)
[Submitted on 3 Jun 2025 (this version) , latest version 5 Jun 2025 (v2) ]

Title: PandasBench: A Benchmark for the Pandas API

Title: PandasBench: 一个用于 Pandas API 的基准测试

Authors:Alex Broihier, Stefanos Baziotis, Daniel Kang, Charith Mendis
Abstract: The Pandas API has been central to the success of pandas and its alternatives. Despite its importance, there is no benchmark for it, and we argue that we cannot repurpose existing benchmarks (from other domains) for the Pandas API. In this paper, we introduce requirements that are necessary for a Pandas API enchmark, and present the first benchmark that fulfills them: PandasBench. We argue that it should evaluate the real-world coverage of a technique. Yet, real-world coverage is not sufficient for a useful benchmark, and so we also: cleaned it from irrelevant code, adapted it for benchmark usage, and introduced input scaling. We claim that uniform scaling used in other benchmarks (e.g., TPC-H) is too coarse-grained for PandasBench, and use a non-uniform scaling scheme. PandasBench is the largest Pandas API benchmark to date, with 102 notebooks and 3,721 cells. We used PandasBench to evaluate Modin, Dask, Koalas, and Dias. This is the largest-scale evaluation of all these techniques to date. Prior works report significant speedups using constrained benchmarks, but we show that on a larger benchmark with real-world code, the most notebooks that got a speedup were 8/102 (~8%) for Modin, and 0 for both Koalas and Dask. Dias showed speedups in up to 55 notebooks (~54%), but it rewrites code incorrectly in certain cases, which had not been observed in prior work. Second, we identified many failures: Modin runs only 72/102 (~70%) notebooks, Dask 4 (~4%), Koalas 10 (~10%), and Dias 97 (95%).
Abstract: Pandas API 对 pandas 及其替代品的成功起到了核心作用。尽管其重要性毋庸置疑,但目前尚无针对它的基准测试,我们认为无法将其他领域的现有基准测试重新用于 Pandas API。本文介绍了 Pandas API 基准测试所需的必要要求,并提出了首个满足这些要求的基准测试:PandasBench。我们主张它应评估技术在实际应用中的覆盖率。然而,实际覆盖率不足以构建有用的基准测试,因此我们还对其进行了清理(移除无关代码)、适配为基准测试使用,并引入了输入缩放机制。我们认为,其他基准测试(例如 TPC-H)中使用的统一缩放方案对于 PandasBench 来说过于粗糙,因此采用了非统一缩放方案。PandasBench 是迄今为止最大的 Pandas API 基准测试,包含 102 个笔记本和 3,721 个单元格。我们利用 PandasBench 对 Modin、Dask、Koalas 和 Dias 进行了评估,这是迄今为止对这些技术的最大规模评估。先前的研究报告称,在受限基准测试中获得了显著加速,但我们发现,在更大规模的实际代码基准测试中,获得加速的笔记本数量仅为:Modin 为 8/102(约 8%),而 Koalas 和 Dask 均为 0。Dias 在多达 55 个笔记本中(约 54%)显示了加速,但在某些情况下错误地重写了代码,这一点在之前的工作中未被观察到。其次,我们发现了许多失败案例:Modin 仅运行了 72/102(约 70%)的笔记本,Dask 仅运行了 4 个(约 4%),Koalas 运行了 10 个(约 10%),而 Dias 运行了 97 个(95%)。
Subjects: Databases (cs.DB) ; Software Engineering (cs.SE)
Cite as: arXiv:2506.02345 [cs.DB]
  (or arXiv:2506.02345v1 [cs.DB] for this version)
  https://doi.org/10.48550/arXiv.2506.02345
arXiv-issued DOI via DataCite

Submission history

From: Stefanos Baziotis [view email]
[v1] Tue, 3 Jun 2025 00:52:06 UTC (3,461 KB)
[v2] Thu, 5 Jun 2025 20:30:55 UTC (3,461 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • Other Formats
license icon view license
Current browse context:
cs.DB
< prev   |   next >
new | recent | 2025-06
Change to browse by:
cs
cs.SE

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号