SShortSingh.
Back to feed

SGLang Outpaces vLLM on Prefix-Heavy Agent Workloads, but Gaps Shrink or Reverse Elsewhere

0
·1 views

Benchmarks of multi-turn LLM agent workloads with an 8,000-token system context show SGLang's RadixAttention cutting time-to-first-token from 440ms to 38ms, while vLLM v0.6 with prefix caching reduced it from 480ms to 92ms. The gap stems from data structures: SGLang stores the KV cache in a radix tree that reuses any common prefix, whereas vLLM's block-based prefix caching is less effective when overlaps don't align to block boundaries. A separate 4,096-token test at 75% prefix overlap showed SGLang reaching a 78.6% cache hit rate versus 41.2% for vLLM, with substantially lower latency percentiles. However, the advantage disappears when workloads lack shared prefixes, where the two engines performed nearly identically on Llama 3.3 70B. On a single H100 running Qwen2.5-7B, vLLM delivered higher raw throughput, though SGLang retained a notable time-to-first-token advantage.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

PDF merge keeps mixed page sizes; verify the downloaded file, not thumbnails

A merged PDF containing an A4 cover and a Letter-sized report can be correct even if a viewer displays every page at the same width. Viewer previews therefore cannot confirm that the downloaded file preserved each page's dimensions. The article's test used synthetic fixtures and an actual browser download, then checked the output with pypdf and Poppler's pdfinfo. Results matched the intended order, with the Letter page remaining Letter-sized in the middle. The author notes this is a narrow acceptance check, not proof for arbitrary PDFs, and that boxes, rotation and UserUnit must also be compared.

0
ProgrammingDEV Community ·

Tale of Kingdoms: The Shattered Crown Adds an RPG Campaign to Minecraft 26.2

A free Fabric mod called Tale of Kingdoms: The Shattered Crown transforms Minecraft into a role-playing game for version 26.2. Players can join a guild and progress through a main storyline containing 105 quests. The mod also offers 30 spells to learn and fifteen towns to explore. It is available for download through CurseForge, and the developer invites support via Patreon.

0
ProgrammingDEV Community ·

VeloxonHub Details Admin Scheduling: Booking States, Day-Grouped Calendar, No-Show Rates

A DEV Community article explains the administrative side of scheduling software in VeloxonHub, covering work done after a booking is made. Appointments and events share one bookings table, with a status field and a separate payment status field kept apart. Admins approve, check in, or cancel bookings through small server requests, and the list refreshes without manual status edits. The calendar groups occurrences by localized date, defaulting to today plus 30 days, and hosts set weekly availability rules that limit bookable slots. Host permissions are determined server-side, and analytics such as no-show rates are computed through SQL aggregations, with the article emphasizing the denominator used.

SGLang Outpaces vLLM on Prefix-Heavy Agent Workloads, but Gaps Shrink or Reverse Elsewhere · ShortSingh