Durability costs an extraction 30 to 33 ms at p95.
Continuum's fact extraction made directly against the same production activities in a Temporal workflow, on LM Studio and vLLM: 48 frozen sections, three repeats, judged, and the workflow's p95 on every extraction setting tried.
UPDATED 2026-09-29 · VERSION 0.2
The benchmark
Fact extraction is Continuum's heaviest model workload: a model reads each section of an ingested document and returns its facts, each with its evidence quoted, and the fact store records them. The benchmark runs the production code both ways. Directly, it calls the extractor and then the recorder. Durably, it runs the production activities in a Temporal workflow, under the extraction workflow's own activity options. The corpus is 48 sections of two of Continuum's own documents, frozen, each extracted three times per arm on Nemotron 3.5 Lightning, with LM Studio and vLLM each alone on the card. Every run is kept, with its setup.
Like for like
The workflow adds 30 to 33 ms to an extraction at p95, 0.5% of the call's.
The time outside the activities is the workflow's whole run less its two activities, the model call and the fact-store write, so neither the model nor the database is in it. It came to 30 to 33 ms at p95 on both runtimes, around extractions whose own p95 is 5.9 to 6.5 seconds. It counts first attempts only, since a retried run's extra time is Temporal's backoff between attempts.
| ms | LM Studio UD-Q4_K_S | vLLM NVFP4 |
|---|---|---|
| Outside the activities, p95 / slowest | 33 / 147 (136 runs) | 30 / 131 (138 runs) |
| Outside the activities, p50, for context | 18 | 18 |
| Workflow started to the extraction starting, p95 | 17.5 | 16.1 |
| Extraction done to the write starting, p95 | 6.4 | 5.5 |
| Write done to the workflow done, p95 | 5.7 | 5.0 |
| The extraction, direct, p95 / slowest | 6,480 / 7,624 | 5,936 / 6,985 |
| The fact-store write, direct, p95 | 60 | 65 |
The fact-store write, 60 to 65 ms at p95, runs in both arms, so it isn't Temporal's. Paired on the same section, repeat and answer, a durable extraction's p95 over the direct one is 124 ms on LM Studio's 136 pairs, which is the model call varying inside the activity with the answer unchanged: the time outside the activities is 33 ms at p95 on the same runs. vLLM's arms gave the same answer on only 24 pairs, too few for a p95, and the slowest of them was 72 ms over.
The slowest run on each runtime is a Temporal connection being renewed.
LM Studio's slowest run, section 25's second repeat, spent 147 ms outside the activities,
130 of it waiting for Temporal to acknowledge the workflow's start. vLLM's, section 43's
second repeat, spent 131, 107 of it in the start. The start's median is about 3 ms, and
everything after it was normal. Temporal's dev server closed each client connection at
its 5-minute connection age, a setting raised to 24 hours on 29 September, after these
runs, and the
durable inference benchmark
traces the same reconnect, at about 120 ms with Temporal pinned to 127.0.0.1.
Retries, and the rerun
- Retries. The longest sections needed more than the 2,048 tokens these runs allowed an answer, so their JSON ended mid-fact. A model that repeats itself fails the same way on every attempt: on LM Studio the workflow retried each three times, and all failed. On vLLM, which varies, 3 extractions succeeded on their second attempt and 3 failed. A 4,096-token cap extracts every section, as Lightning's page shows.
- The rerun. LM Studio ran again after vLLM, one repeat of every section. The direct extraction's p95 moved by half a millisecond, the time outside the activities came to 29 ms at p95 with a slowest run of 30, and every section gave the same facts as the first run.
Standing still
On every extraction setting but one, the workflow's p95 stayed under 60 ms, however long the call.
The settings study ran the same benchmark under every extraction setting it tried, 48 sections per arm, so the calls' p95 ranged from 5.9 seconds to 30.9. The workflow's time outside the activities came to 27 to 59 ms at p95. At 48 runs a p95 is the third-slowest run, so a run's two or three slowest hand-offs reach it, and a longer run meets more of them.
| Setting | One extraction, p95 | Outside the activities, p95 | Slowest |
|---|---|---|---|
| LM Studio, the studies' settings | 6.5 s | 33 ms | 147 ms, a reconnect (136 runs) |
| LM Studio, cap 4,096 | 7.6 s | 27 ms | 156 ms, a reconnect |
| LM Studio, NVIDIA's temperature-1.0 profile | 7.3 s | 29 ms | 32 ms |
| LM Studio, thinking, budget 1,024 | 16.3 s | 43 ms | 113 ms, a reconnect |
| LM Studio, thinking, budget 2,048 | 19.5 s | 118 ms, a reconnect | 145 ms, one of three reconnects |
| LM Studio, thinking, budget 4,096 | 30.9 s | 59 ms | 134 ms, a reconnect (47 runs) |
| vLLM, the studies' settings | 5.9 s | 30 ms | 131 ms, a reconnect (138 runs) |
| vLLM, cap 4,096 | 8.3 s | 41 ms | 112 ms, a reconnect |
| vLLM, NVIDIA's temperature-1.0 profile | 8.3 s | 30 ms | 127 ms, a reconnect |
| vLLM, thinking, budget 2,048 | 19.1 s | 32 ms | 116 ms, a reconnect |
| vLLM, cap 4,096, compact JSON | 6.2 s | 30 ms | 33 ms |
In every reconnect the time went on acknowledging the workflow's start, 95 to 130 ms against a median of 3, and everything after the start was normal. The 2,048-budget run on LM Studio lasted 21 minutes and met three, where the six-minute runs met one or none, so its p95 is a reconnect. Below the reconnects, the p95s of 41 to 59 ms come from slower hand-offs, the dispatch above all, which took up to 43 ms against a median of 5.
Same again
Where the model repeats itself, the durable arm returns the same facts as the direct one.
On LM Studio, which repeats itself at a fixed seed, durable and direct gave the same answer on all 136 pairs, and 43 of the 48 sections gave one answer across all three repeats. vLLM varies at a fixed seed, so its two arms matched on 24 of 138 pairs and its repeats on 3 of 48 sections. The workflow changes nothing about the answer: the same request reaches the same model, from inside an activity.
| First repeat, direct | LM Studio UD-Q4_K_S | vLLM NVFP4 |
|---|---|---|
| Sections extracted | 46 of 48 | 46 of 48 |
| Facts accepted / rejected | 306 / 51 | 294 / 40 |
| Clean, by the judge | 202 of 306 (66.0%) | 198 of 287 (69.0%) |
| Assertions missed | 118 | 140 |
The validator accepts a fact only when its evidence is in its section word for word, and rejects the rest before they reach the store. A judge model, Qwen3.8 27B, graded each runtime's first facts without knowing which runtime wrote them, and the two tie: 3 points apart against a standard error of 3.8. Lightning's page has the judging in full, and the settings that extract the most.
By the book
Both arms run the production code, and two things are left out on purpose.
- Direct: the extractor's
ExtractAsync, then the recorder'sRecordAsync, each timed, as the Console'sfact extractruns them. - Durable: a workflow of the production activities,
ExtractFactsAsyncthenRecordFactsAsync, with the extraction workflow's own options: a five-minute extraction that heartbeats and gets three attempts, and a write that retries. - Left out: the production task queue. The workflow runs on its own queue, on a worker in the benchmark process, because the platform's workers poll the production queue and would otherwise take the vLLM arm's work to LM Studio.
- Left out: the projection child. Production starts a child workflow that embeds the new facts, abandoned by design and run on the projection worker, so it isn't on the extraction's path. Here it would embed in the background during the measurement.
| Corpus | Continuum's CONTEXT_LAWS.md and RULES.md, frozen with their SHA-256, split by the production splitter into 48 sections |
| Runs | 3 repeats of every section per arm, after 2 untimed warmup sections per arm. Arms alternate section by section, and the arm that goes first swaps each repeat |
| Percentiles | Nearest rank. Every comparison at the p95, from 40 runs or more; the slowest run is named, no p99 is quoted below 200 runs, and a median appears only as context |
| Model | Nemotron 3.5 Lightning 30B-A3B: UD-Q4_K_S on LM Studio 0.4.25 (runtime 2.46.0), NVIDIA's NVFP4 on vLLM 0.29.0 in WSL2; each alone on an RTX 5090. The full setup is on Lightning's page |
| Sampling | The extraction settings as stored: temperature 0.2, top-p 0.95, top-k 0, min-p 0.01, repeat penalty 1.0, thinking off, 2,048 max tokens, seed 42, and a strict JSON schema for the answer |
| Temporal | The dev server, at 127.0.0.1:7233 |
| Judge | Qwen3.8 27B, loaded alone, grading each runtime's first-repeat direct facts against their sections; it never sees the runtime |
A first pass was discarded and run again after its rejections turned out to be measuring the validator's handling of markdown, not the models: the quality numbers were measuring markdown.
# 48 sections, 3 repeats, direct and durable, alternating (LM Studio's run)
env 'ConnectionStrings__continuum-temporal=127.0.0.1:7233' dotnet run -c Release --project src/Apps/Continuum.Console -- \
benchmark durable-extraction --repeats 3 --warmup 2 --label lightning-q4ks
# then the judge, loaded alone, on the first repeat's direct facts
dotnet run -c Release --project src/Apps/Continuum.Console -- fact judge --run <run>