HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills
Yakup Koray Budanaz, Lorenzo Paleari, Marcin Copik, Alexandru Calotoiu, Timo Schneider, Benjamin Chen Ming Choong, Shriram Chandran, Lars Hulsbergen, Levi Widmer, Torsten Hoefler
Abstract
Coding agents are increasingly used to optimize code, but existing benchmarks fix one accelerator, programming model, or harness, so they cannot isolate what each component contributes or show whether added skills and tools repay their cost. We present HPCAgent-Bench with 722 kernels in three tracks: loop-level optimization challenges, kernels extracted from HPC codes, and machine-learning models. The framework specifies each kernel once in NumPy, derives C and Fortran references, accepts submissions through a common C ABI or Python interface, and runs them on CPUs or GPUs, on one or multiple nodes. An external judge checks correctness on hidden fuzzed inputs and times each submission, closing the paths agents use to exploit the testing system. We introduce a reporting protocol, intervention efficacy, which reports an intervention, such as adding a tool, through paired runs on speedup, success rate, and cost, and a metric, weighted token cost, which reports input, cached-input, and output tokens under explicit weights. Agents reach up to speedup over automatic parallelizers, and their optimizations transfer to another machine: 93--99% of answers without device-specific code remain correct, and per-kernel speedups keep a rank correlation of . Of 48 intervention comparisons, 6 change speed and 9 change token cost significantly, and 5 leave speed equivalent. Because token weighting decides whether a saving is significant, we state the weights and release every token count as a standard for cost reporting. HPCAgent-Bench is a broad, hardened benchmark for the sound evaluation of agentic optimization, with transparent cost metrics.
Create a lesson
Metadata
- Comments
- 23 pages, 9 figures, 21 tables
Related papers
Benchmarking Coding Agents for System-Level Performance Optimization
Shared title terminologycs.SEYanze Zhang, Maggie Yongqi Guan, Shudong Liu et al.
MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents
Shared title terminologycs.SEZhaoyang Zhu, Sicong Li, Zihan Liao et al.
MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing
Shared title terminologycs.SEPriyatham Kattakinda, Wenxiao Wang, Soheil Feizi
SWE-Bench Pro V2: A Cleaner, Harder-to-Game Coding Benchmark
Shared title terminologycs.SESoham Dan, Jeff Da, Sanyam Bhutani et al.
MLOps-Bench: Benchmarking AI Agents on Production ML Engineering in Real Repositories
Shared title terminologycs.SEQuoc Co Tran, Hitesh Laxmichand Patel, Diwakar Mahajan et al.
WEAVE: Weaving Real-World Code Evolution into Dependency-Structured Tasks for Benchmarking and Training Code Agents
Shared title terminologycs.SEWeihao Li, Zihang Xu, Zhongqiu Wang et al.