On this page
The short answer
- outputs identical to SGLang's own cache at the same reuse split
- 12 / 12
- cloud machines behind the 110k range we quote
- 8
We flush the engine's caches and verify the flush before every timed read, so the prefix can only come from the store. We take medians of 5 different prompts per length, repeat on several machines and quote the range. Engine and store counters must agree, and outputs are compared with the engine's own cache at the same reuse split, not with a cold run.
The fixed setup of Study 1
Study 1 is our SGLang serving study. Everything below refers to this setup unless a caption says otherwise.
- Engine
- SGLang 0.5.15.post1 (official cu129 runtime image), HiCache with KVStash as the storage tier, page size 64
- Model
- Qwen/Qwen2.5-7B-Instruct (revision a09a3545), BF16 weights and KV cache (57,344 bytes per token), one GPU
- GPU
- NVIDIA L40S 48 GB on Modal (some runs on H100 80 GB)
- Store
- KVStash daemon on the same host as the GPU server, reached over TCP (loopback), DRAM arena unless stated
- Long context
- YaRN x4 rope scaling for prompts above 32k tokens
- Dates
- 29-30 October 2026
The model is Qwen2.5-7B-Instruct at a pinned revision. Results on vLLM come from a different lane (another model variant, fp8 KV cache, other GPUs) and we keep them in separate tables.
Decide the outcome before the benchmark
Shorter waits, more requests per GPU and fewer GPU-hours are three different results with three different measurements. Time to first token at the client answers the first. Input tokens per second at a fixed concurrency speaks to the second. Only an operating change, fewer GPUs or hours for the same traffic, answers the third. We say which one a number is about.
Name the baseline precisely
"Without KVStash" is not a baseline. We use two, and label every row with one of them:
- Recompute (cold)
- The whole prompt is prefilled on the GPU. Used for single-request timing by prompt length: it is the cost a store replaces when the engine has lost the prefix.
- The engine's own cache
- SGLang's GPU radix cache (RadixAttention) plus its host-memory HiCache tier, sized for the load. Used for every load test, because that is what a team would run without us.
We also report the floor, a prefix still in GPU memory, so readers can see what the store is not trying to beat. At 110k tokens that floor was 0.26 s, mostly tokenizing the text prompt.
Prove which path served the request
An integration can load cleanly while traffic still hits another cache. So before every timed read we flush SGLang's GPU and host caches, wait, and record whether the flush succeeded. Then three counts have to agree:
- Engine counter 109,952 of 110,016 tokens loaded from storage: all but the last page
- Store counter 6.31 GB sent in 3,436 hits, 0 misses, 0 aborts
- Expected 6.31 GB the prefix size at 57,344 bytes per token in BF16
All three agree, so the timing is kept. When they do not, it is excluded.
The store's hits, misses and bytes are also on Prometheus /metrics. Our early profile runs ignored a failed flush: 3 of 9 repeats were served from the GPU cache and looked impossibly fast. They were excluded, and the harness was fixed.
Repeats, medians and the spread between machines
Each point in the prompt-length sweep is the median of 5 different prompts of that length, each read once after a verified flush. Different prompts, not one prompt five times, so a lucky layout cannot carry the result. The first request after a server starts was about a quarter of a second slower (warm-up), so profile tables quote later requests and say so.
One machine is not enough. The same 110k read on machines of the same type gave 13‑19x faster time to first token than recomputing, across 8 runs on separate machines (median about 14x). Those runs came from different experiments rather than a controlled repeat. We publish the range and a default-settings point, and label single-machine profile numbers as such. How we found the spread is in where the 12x went.
Check the outputs at the same reuse split
The obvious test, "output identical to a run with no cache", fails for the engine's own cache too. When SGLang prefills with part of the prompt cached, it uses a different kernel path from a cold prefill, and greedy text can diverge partway through an answer. So the fair test holds the split fixed: the same number of tokens reused, from SGLang's own cache in one arm and from KVStash after a flush in the other.
Identical outputs, 12 prompts, 6,976 tokens reused
- KVStash against SGLang's own cache, same split 12 / 12
- SGLang's own cache against cold compute 4 / 12
- KVStash against cold compute 4 / 12
KVStash returns what SGLang's own cache would. We do not claim "identical to no cache", because no prefix cache meets that bar on this engine.
Failures and lifecycle
Timing a warm hit is the easy part. We also run the events a deployment will meet, mostly on default settings, and record each result:
- Output matches SGLang's own cache at the same reuse split 12/12 identical
r20261029-parity1 - Store killed (SIGKILL) during a 512-request load 512/512 requests completed; SGLang recomputed load test
- Empty store after a restart requests served; cache refilled (64/64, 75% reuse) load test
- Partial prefix, request cancellation, store killed mid-read, wrong model identity all correct
r20261029-correct1 - Bytes flipped in the NVMe tier 47 checksum errors caught; no damaged block reached an output
r20261029-correct1 - Cost of checksum verification about 20 ms on a 28k-token prompt
r20261029-correct1
SGLang 0.5.15.post1, Qwen2.5-7B BF16, one L40S, 29 Oct 2026.
Under load
Single requests show the saving per reuse; they do not show queueing, contention or tail latency. For that we use SGLang's own load generator, bench_serving, with its generated shared-prefix workload, more shared-prefix data than the GPU cache holds, and three passes: first pass, second pass, and after a server restart.
Each pass records time to first token (mean, p50, p99), input tokens per second, the share of prompt tokens reused, and the store's hits, misses and aborts. Full tables, including default-settings runs and the H100 lane, are in the restart and load study.
SGLang bench_serving, generated shared-prefix workload, 8k-token prefixes, 512 requests per pass, one pass per row. SGLang 0.5.15.post1, Qwen2.5-7B BF16, one L40S, host pool 48 GB, 29 Oct 2026.
From speed to money
Time to first token is what a user waits; GPU time is what you pay for. For one long request on an idle GPU they are close, because the recompute wait is almost all prefill. Under batching they diverge. A faster first token becomes money only when it changes an allocation: fewer GPUs, fewer hours, or more traffic on the same fleet. If nothing changes, we report the result as latency or headroom. The arithmetic is on the savings page.
What every published result carries
- Engine and version, model and revision, precision, GPU, prompt length and date.
- The baseline it is compared with, by name.
- The run id, and how many prompts, repeats or machines are behind it.
- Evidence the store served the bytes: verified flush and both counters.
- The output check that was run and its result.
- What is outside the evidence.
Raw files for each study are on the benchmarks page.
What we have not measured yet
- S3-tier reads under SGLang. The tier exists; we quote no number until it is measured.
- Sharing across machines over a real network under SGLang. Our sharing tests ran engine servers and the store on one host.
- LMCache on GPUs. The plugin path exists and has a CI registration test; it is not qualified on GPUs, and we do not recommend LMCache 0.5.6, which returned wrong answers from its own cache in our GPU test.
- Prompts below 8k tokens, and models other than Qwen2.5-7B under SGLang.
- Recorded production traces. Our load tests use a generated shared-prefix workload.
The strongest result is often a narrow one. Knowing that a named workload benefits under stated conditions is worth more than a large multiplier that does not say what changed. For the decision itself, see when context reuse is worth it.