TL;DR
AgentPerfBench is a new benchmarking suite designed to bridge the gap between simple chatbot evaluations and the complex, multi-turn "agentic" workloads (like coding and tool-use) that dominate modern LLM applications. It reveals that agentic tasks shift hardware bottlenecks from memory bandwidth to compute and memory capacity, suggesting that current serving optimizations are missing the mark for real-world agentic performance.
What Problem Does This Paper Address?
Most current LLM inference benchmarks, such as MLPerf or the standard vLLM benchmarks, focus on single-turn chatbot interactions. However, real-world applications are increasingly "agentic"—think of coding assistants (SWE-Bench) or automated terminal systems. These workloads differ fundamentally from chat in three ways:
- Multi-turn structure: They involve long sessions where context grows over time.
- The "Snowballing Effect": As turns progress, the input sequence length (ISL) grows significantly, leading to massive prefill demands.
- Tool Use: They frequently call external tools, changing the statistical structure of the requests.
Existing benchmarks often fail to reach "hardware saturation," meaning they don't push the system to its true capacity limit. This leads to a significant mismatch between benchmarked performance and actual production behavior on high-end hardware like H100 GPUs.
Methods
The authors introduce AgentPerfBench, which employs several novel techniques:
- Trace-Driven Workloads: Instead of random tokens, it uses real traces from agentic benchmarks (SWE-Bench, TerminalBench, OSWorld) to create representative profiles.
- Synthetic Distributional Profiles: To allow for cheap and scalable testing, they fit empirical distributions (ISL, OSL, turn count) to real traces, generating synthetic workloads that accurately mimic real-world serving behavior.
- Saturation-Based Evaluation: Rather than reporting a single operating point, the suite sweeps concurrency levels ($C$) to find the saturation point where throughput ceases to rise, reflecting the hardware's true maximum capability.
- Multi-Dimensional Roofline Analysis: By collecting kernel-level Nsight Compute (NCU) traces, the authors map workloads onto a roofline model that accounts for both memory bandwidth and memory capacity (the "capacity footprint").
Datasets
The suite is built upon and evaluated against:
- ShareGPT: Used as the baseline for standard single-turn and multi-turn chat.
- SWE-Bench: For coding agent traces (high ISL, many turns).
- TerminalBench: For terminal-use agent traces.
- OSWorld: For computer-use agent traces.
- AgentPerfBench Dataset: The authors released 3,000+ benchmark results and 140,000+ per-kernel NCU profiling records across 4 GPU platforms and 11 model architectures.
Key Insights and Ideas
- The Regime Shift: Chat workloads are typically memory-bandwidth bound. However, agentic workloads—due to their long prefills—push the system into a compute-bound regime. For example, coding agent prefill has an operational intensity (OI) ~13x higher than chat on an H100.
- Dual Pressure: Agentic workloads face a "dual pressure": they are compute-bound during the prefill phase and capacity-constrained during the decode phase as the KV cache grows.
- Snowballing Effect: In a multi-turn session, each turn appends the previous response, causing the context to "snowball." By the end of a session, context can reach 120,000 tokens, hitting memory capacity walls much faster than chat.
- Prefill-Decode Disaggregation: The wide gap in operational intensity between prefill and decode phases (8–28x) makes agentic workloads prime candidates for disaggregated serving, where prefill and decode are handled by different hardware resources.
Key Results
- Latency Gap: On an H100, switching from chat to coding-agent workloads increases Time-to-First-Token (TTFT) by 4.8x (239ms to 1139ms) and Time-Per-Output-Token (TPOT) by 1.5x at saturation.
- Throughput Collapse: While chat throughput continues to scale with concurrency, agentic profiles lose 43–76% of their throughput when moving from $C=200$ to $C=320$ due to KV-cache capacity pressure.
- Saturation Mismatch: Standard benchmarks that don't sweep to saturation can under-report hardware capacity or miss the performance degradation caused by long-context "snowballing."
Limitations and Future Work
- Single-Node Focus: The current evaluation focuses on single-node multi-GPU setups. Future work is needed to quantify the communication overhead in multi-node pipeline-parallel serving.
- Context Truncation: Sessions were capped at 32K tokens for some models; the authors note that the "snowballing effect" will be even more severe in 128K+ context deployments.
- KV Cache Management: The benchmark currently uses logical estimates for prefix-caching and does not directly measure physical server-side KV eviction or recomputation strategies.
Summary updated