Manuscript Offprint

arXiv:2611.06841

ServerBench: How can your coding agents design specialized LLM serving systems?

Xinrui Zhong, Zhiming Wang, Yongqi Liu, Zhaohui Wang, Shanglin Yang, Zikun Li, Zhuoming Chen, Beidi Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large language model (LLM) coding agents develop software through experimentation, offering an opportunity to design the serving systems supporting their own operation. Effective serving requires coordinating implementation and operating decisions under session dependencies, latency constraints, and correctness requirements. We introduce ServerBench, a benchmark for agentic design of complete, specialized LLM serving systems. Agents experiment against a common objective, dollars per dollar: latency-qualified token value per dollar of GPU cost. Stateful replay preserves session dependencies, and independent verification checks the submitted system. Across 11 coding-agent models and three deployments, Claude Sonnet 5.5 achieves 2.97 dollars per dollar on Gemma E4B, 4.87×4.87\times the vLLM reference; 22 of 33 runs yield verified systems, and 13 exceed the strongest baseline. Our analysis identifies three findings: high-value designs coordinate capacity improvements with load selection; agents interpret performance feedback through workload-relevant experiments; and reliable delivery requires verification of the execution paths introduced by optimization. Overall, ServerBench supports systematic study of how agents translate service objectives and feedback into effective, verified serving systems for given task specifications.

Code github.com/Infini-AI-Lab/Server-Bench

Blog infini-ai-lab.github.io/Server-Bench

1 Introduction

a

Figure

b

Figure

Claude Opus 5.5 Claude Sonnet 5.5 Claude Opus 5 GPT 6 Astra GPT 6.1 Sol GPT 6 Sol Kimi K3 Qwen3.8 Max MiMo V2.6 Pro GLM 5.3 DeepSeek V4.1 Flash Pareto frontier strongest baseline (1x) x failed

Figure 1 API cost and serving value relative to the strongest baseline. GPT 6.1 Sol offers lower-cost gains; Claude reaches higher value. Costs use OpenRouter rates (Table 3).

Large language model (LLM) coding agents build on code-generation capabilities (Zheng et al., 2025; Zhou et al., 2026a), using tools and execution feedback to undertake software development and professional workflows (Yang et al., 2024;

InfiniAI Lab · Carnegie Mellon University

Figure

Figure 2 Agents design the server and choose how many sessions it serves at once for a given model, GPU allocation, and workload. Replay preserves shared context and dependencies between requests; final checks assess model correctness and complete workload execution.

Xiao et al., 2025; Chan et al., 2025; Sun et al., 2026). These workflows depend on LLM serving systems, which run models and handle requests (Kwon et al., 2023; Zheng et al., 2024; Zhou et al., 2026b). This creates an opportunity for coding agents to design these systems. Service providers need correct model execution and timely responses. We therefore ask: how can coding agents design LLM serving systems while satisfying given deployment and service constraints?

Despite rapid progress in agent-driven systems optimization, existing benchmarks evaluate individual kernels, code patches, or servers under preset test conditions (Ouyang et al., 2025; Nangia et al., 2026; Williams et al., 2026; Yeon et al., 2026; Xu et al., 2026), leaving three gaps in evaluating how agents design complete serving systems:

  • Oversimplified workloads. Prior benchmarks issue independent requests or fixed prefill, decoding, and throughput scenarios (Yeon et al., 2026; Xu et al., 2026). With uniform request lengths and fixed batches, a static batch serves nearly as well as a production engine, so techniques that real deployments depend on, such as continuous batching and paged attention (Yu et al., 2022; Kwon et al., 2023), bring little benefit. Real applications such as coding agents instead mix short and long requests, extend a shared context over many turns, and fan out into parallel subagents, where prefix reuse, memory management, and prefill-decode interference shape performance (Zheng et al., 2024; Srivatsa et al., 2025; Agrawal et al., 2024; Zhong et al., 2024).

  • Speedup-only objectives. Existing benchmarks score speedup or throughput relative to a baseline (Ouyang et al., 2025; Yeon et al., 2026; Xu et al., 2026). Such objectives ignore latency requirements and GPU cost and fix the offered load, whereas a service provider must decide how much workload to serve while keeping time to first token (TTFT) and time per output token (TPOT) within targets.

  • Correctness-only validation. Validation typically checks outputs against a reference implementation or test suite (Ouyang et al., 2025; Williams et al., 2026; Xu et al., 2026). A serving system must additionally meet tail-latency targets on the deployed workload and execute that workload in full, with complete prompts, prescribed output lengths, and consistent streaming. Optimizations such as speculative decoding, state reuse, and custom scheduling introduce execution paths that short or isolated tests rarely exercise.

We introduce ServerBench, a benchmark in which coding agents build a complete LLM serving system for a given model, GPU allocation, and workload, and decide how much workload it serves (Figure 2). Starting from a minimal Transformers server, agents plan experiments and revise their systems within a fixed development budget. ServerBench closes the three gaps with three designs. 1. Workload: real coding-agent trajectories. ServerBench replays recorded coding-agent sessions (SemiAnalysis, 2026a) with their request lengths, multi-turn structure, shared prefixes, parallel subagent branches, and inter-turn delays. Requests wait on the responses they depend on, so serving latency governs how much work completes within the measurement window (Section 3.2). 2. Objective: dollars per dollar. We price the input and output tokens of each completed request at fixed API rates, count only requests that meet both TTFT and TPOT targets, and divide by the GPU cost of the measurement window (Section 3.1). For example, USD 3.65 of qualified token value over USD 0.83 of GPU cost scores 4.40. The objective rewards capacity improvements together with a matching load choice: serving more workload raises gross value only while requests still meet their latency

∞ InfiniAI Lab · Carnegie Mellon University targets. 3. Validation: beyond correctness. Latency targets are the p90 TTFT and TPOT of an SGLang reference with its model-specific configuration, frozen before development (Section 3.1). The submitted system is rebuilt in a fresh deployment and replayed on held-out seeds. Independent checks verify complete prompts, output lengths, streaming consistency, generation fidelity to the checkpoint, and held-out answer accuracy; a post-run review inspects code and recorded actions for prohibited shortcuts (Section 3.4). Only verified systems receive a score.

We evaluate eleven coding-agent models across three model-hardware deployments. Claude Sonnet 5.5 achieves 2.97 dollars per dollar on Gemma E4B, 4.87× the vLLM serving baseline (Section 4.2). Trajectory analysis identifies three findings. High-value designs coordinate capacity and concurrency. Sonnet 5.5 improves its server before raising concurrency, then limits load when additional sessions worsen TPOT (Section 4.3). Interpreting feedback in workload context guides optimization. A random-text probe leads one agent to reject an optimization; workload replies reveal its benefit and lead another to adopt it (Section 4.4). Verification must match the deployed workload. Agents' short or isolated checks can miss long-context stalls and cross-request crashes; known faults can persist or recur after edits in submitted systems (Section 4.5).

Our contributions are:

  • ServerBench, a benchmark for designing complete LLM serving systems to maximize service value per GPU dollar (Section 3.1). Agents design the server and set the number of concurrent application sessions.

  • An evaluation protocol that replays coding sessions with shared context and dependent requests, supports experiments designed by agents, and independently verifies the final system (Sections 3.2 to 3.4).

  • A study of eleven coding-agent models across three deployments, using controlled comparisons and trajectory analysis to explain successes and failures in system design, experimental judgment, and verification (Sections 4.2 to 4.6).

References (26)