· Updated
What Strata costs: the benchmarks, the raw data and how to rerun them
What Strata's benchmark suite measures, how, what surprised us (Rust isn't faster everywhere), and the commands to rerun it on your own machine.

When we launched the Datalium Strata preview, we made one rule for every post, page and slide: a performance number comes from benchmarks/RESULTS.md, with a link, or it doesn’t appear. This post goes through that file. It covers what the suite measures, how it measures it, what surprised us, and how to rerun it on your own hardware.
All the numbers below come from RESULTS.md. They were measured on 0.9.0-preview.1, on one machine, between 2026-10-11 and 2026-10-15, and they still describe 0.9.0-preview.2, a maintenance release. Some will change in 0.9.0-preview.3, which changes what a parallel branch costs in both engines, so the whole file will be measured again before it ships. The links below go to the file as it is in 0.9.0-preview.2, so they keep matching this post.
Update, 2026-11-19: 0.9.0-preview.3 is out, and RESULTS.md was measured again for it, in one run on the same machine. The figures below are still 0.9.0-preview.1’s, and their links still go to that file. Measured against 0.9.0-preview.2 the same afternoon, what moved most is the parallel group: in .NET, a group of 32 branches takes 9.8 µs against 20.3 µs and allocates about half as much, and async throughput with 64 runs at once is 29 million transitions a second against 20 million; in Rust, a group is 20 to 30% faster (finding 5). Rust’s sync handlers measured about four times slower than in the table below (a median transition of 4.8 µs against 1.1), but in both versions alike: it’s the sleeping-thread case that “Sync handlers in Rust are the noisy case” describes, so the machine’s, not the engine’s (finding 4).
What the suite measures, and what it doesn’t
The suite measures the engine’s own cost: what a node, a run, a parallel branch, a map item, an interrupt and a checkpoint cost when the handlers do nothing. It also measures what each built-in store costs to save and load a checkpoint.
It doesn’t measure model latency or tool latency. In a real agent, a node that calls a model spends far longer waiting on that call than in the engine. The numbers here matter most for graphs with many cheap nodes, and for durable runs that save a checkpoint after every node.
It also doesn’t compare Strata with LangGraph or any other framework. A fair cross-framework benchmark needs the same workload, the same store and the same durability settings on both sides, and that’s a project of its own. If you build one, I’d like to read it, and to link to it whatever it says.
The machine
| CPU | Intel Core i9-12900KF (8 performance and 8 efficiency cores, 24 logical) |
| OS | Windows 11 |
| .NET | 10.0.8, x64 RyuJIT, server GC |
| Rust | 1.91.1, --release, tokio’s multi-threaded runtime |
| Stores | SQLite as a file on the local disk. Postgres 16 and Redis 7 in Docker Desktop on the same machine, with Postgres on tmpfs |
It wasn’t a quiet machine. A development session and an editor were running every day, and several other containers on the first day. The slowest percentiles and the maxima carry that noise. RESULTS.md says which figure came from which day and which commit.
Two tools, the same scenarios
Each engine has two benchmark tools, and they answer different questions:
- Microbenchmarks, with criterion in Rust and BenchmarkDotNet in .NET. They report the mean time of one run against a store that costs nothing, so the time is the engine’s. In .NET they also report what one run allocates.
- A profile, a program in the repository. It times every operation itself and reports latency percentiles up to P99.9, throughput under concurrency, memory per suspended thread, and what each store does.
Both engines run the same scenarios: the same graphs, the same state and the same parameters. They’re defined in rust/strata-bench/src/lib.rs and dotnet/benchmarks/Datalium.Strata.Benchmarks/Scenarios.cs. The aim is to explain a difference between the engines, not to race them.
Finding 1: the engine’s share of a node is about 0.4 µs
The profile measures the gap between one handler returning and the next one starting, over 198,000 transitions. That gap is the engine’s scheduling overhead per node.
| Handler | Engine | P50 | P90 | P99 | P99.9 |
|---|---|---|---|---|---|
| async | Rust | 0.40 µs | 0.50 µs | 0.50 µs | 1.00 µs |
| async | .NET | 0.40 µs | 0.50 µs | 0.90 µs | 1.50 µs |
| sync | Rust | 1.10 µs | 1.20 µs | 1.50 µs | 10.4 µs |
| sync | .NET | 1.30 µs | 1.60 µs | 2.40 µs | 7.50 µs |
Source: RESULTS.md, transition latency. Timers on Windows tick every 100 ns, so the smallest figures are multiples of that.
A hundred async nodes in a line take 41 µs in Rust and 50 µs in .NET. Every traversal measured is under a millisecond. The slowest is a hundred sync nodes in Rust, at 0.46 ms.
The Rust figure used to be worse. Before the work in design/38-Rust-Executor-Overhead.md, a Rust node cost 1.8 µs. Rust now allocates only what it’s told to, and a test counts it: one allocation of 104 bytes for an async node, two for a sync one, and ten for a run apart from its nodes. Because a count is the same on every machine, it can fail a build, which a timing can’t.
Finding 2: Rust isn’t faster than .NET everywhere
People are surprised by this, so here it is plainly. Rust is level with .NET on a line of async nodes, and slower elsewhere. Where Rust is slower, the cost is outside the per-node path:
| What | Rust | .NET | Why |
|---|---|---|---|
| A run’s own setup | about 0.9 µs | about 0.2 µs | That’s the whole difference on a one-node run |
| A branch of a parallel group | about 1.5 µs | about 0.6 µs | Each branch is a task of its own |
| An item of a map | about 2.1 µs | about 0.9 µs | Each item is a task of its own |
| A streamed token | 352 ns | 111 ns | Nearly all of it is the channel |
| A 16 KiB state, ten async nodes | +54% | +0% | Rust clones the state into every async handler; .NET shares an immutable record |
Source: RESULTS.md, finding 3 and the microbenchmarks.
The last row is a design trade-off, not an accident. A Rust handler takes its state by value, so it owns what it changes. A .NET handler gets a reference to a record it can’t change. Both are the natural choice in each language, and they cost differently.
Sync handlers in Rust are the noisy case. A sync handler runs on tokio’s blocking pool, so it costs a thread hand-off each way. When both threads stay awake between nodes, a sync node costs about 1.1 µs. When one of them sleeps, it costs 4 to 5.5 µs. Five runs of the same sync benchmarks gave 4.3 to 7.0 µs for one node, 13 to 54 µs for ten, and 134 to 539 µs for a hundred. Sync throughput in Rust stops at about 0.4 million transitions a second, however many runs are going. Async reaches 11 million in Rust and 20 million in .NET.
If your Rust node is cheap and doesn’t block, add_inline_node runs it on the executor instead (design/39). The benchmarks measure that too.
Finding 3: a paused thread holds nothing in the process
This is the number I care most about, because human approval is where agents spend most of their wall-clock time. The profile freezes ten thousand threads at an interrupt boundary, each with a 1 KiB state, and measures the heap before and after.
| Store | Engine | Heap per thread | Disk per thread |
|---|---|---|---|
| SQLite | Rust | 0 B | 1,596 B |
| SQLite | .NET | −7 B | 1,596 B |
| in-memory | Rust | 3,608 B | |
| in-memory | .NET | 1,697 B |
Source: RESULTS.md, memory per suspended thread.
The −7 bytes is measurement noise: the managed heap after a full collection, before and after. The in-memory store isn’t really an exception. It is the store, so it keeps its copy of each 1,251-byte checkpoint.
A thread waiting for a person is a row in your database. It isn’t a task, a timer or a socket in your process, so it doesn’t matter whether the reviewer answers in a minute or next week.
Finding 4: a checkpoint per node costs a round trip per node
Durable execution (CheckpointPolicy.EveryNode) saves a checkpoint after every node, so a crash loses at most the node in flight. That has a price, and the profile measures it: a ten-node run with a 1 KiB state, which writes eleven checkpoints.
| Store | Rust, mean | .NET, mean |
|---|---|---|
| in-memory | 26.1 µs | 104 µs |
| Redis | 2.82 ms | 2.87 ms |
| Postgres | 12.4 ms | 13.9 ms |
| SQLite | 25.7 ms | 25.4 ms |
Source: RESULTS.md, a durable run. The .NET in-memory figure is the machine’s, not the engine’s: on the first day the same run measured 21.6 µs.
Against a real store, the store is the cost. The engine is a rounding error. So the question is how many saves a store can take when many runs write at once.
SQLite without group commit is bound by the disk. Each save is its own transaction and waits for a sync: about 2.3 ms a save, about 415 saves a second, however many writers there are. Postgres stops scaling at about 7,000 saves a second.
Group commit batches the saves of concurrent writers into one transaction (design/41). With 64 writers:
| Store | Engine | Without | With group commit |
|---|---|---|---|
| SQLite | Rust | 415 | 6,433 |
| SQLite | .NET | 410 | 6,362 |
| Postgres | Rust | 7,097 | 17,882 |
| Postgres | .NET | 7,092 | 12,619 |
Source: RESULTS.md, stores and group commit. Figures are saves a second of a 1 KiB checkpoint.
A writer on its own gains nothing and pays a little for the batched statement: 773 saves a second against 1,010 in Rust, and 733 against 868 in .NET. Turn group commit on when many runs write at once.
Redis has no group commit. We built it and measured it, and it was no faster than the store without it, so we didn’t ship it.
What we don’t understand yet
Two results in RESULTS.md need more work, and I’d rather say so than leave them out.
The .NET group commit varies from run to run, and we don’t know why. Six runs of .NET Postgres with 64 writers gave 5,900 to 16,200 saves a second, and 5,100 to 20,800 with 256 writers. Four Rust runs gave 17,900 to 21,600 and 26,400 to 36,000. The Rust store is steady; the .NET one isn’t. If you have a theory, open a Discussion.
Large commands to a container are slow on Docker Desktop. On this machine, a save of 64 KB to the Postgres or Redis container takes about 45 ms, however small the rest of the save. That’s the port forwarding together with TCP’s delayed acknowledgement, not the store. It makes “a large state, saved whole” look far worse against Postgres and Redis than it would on a real network. RESULTS.md keeps those rows and labels them as the machine’s.
Large states: deltas and offload
A state with a large value that never changes (a document, a long conversation) used to be written whole on every checkpoint. Two options now avoid that. Both are off by default.
With a 64 KiB value that never changes, over a thread of twenty checkpoints:
| How it’s stored | Mean bytes stored per save |
|---|---|
| Whole | 65.6 KB |
| Deltas (a whole row every 16) | 6.6 KB |
| Offload (the value written once, to a blob) | 3.4 to 3.7 KB |
Source: RESULTS.md, a large state. Loads read more in return: a chain of up to fifteen deltas, or the blob and its SHA-256 check. Both engines store exactly the same bytes, because the encoding is the same JSON.
Under load: the stress demos
The suite above times the engine one operation at a time. strata-stress-dotnet asks what happens under load. It’s built on the published 0.9.0-preview.2 packages and measured on Windows and in a Linux container. Its four scenarios each make one claim and check it:
- Burst: thousands of runs at once, each fanning out, cost the engine microseconds a run.
- Million sleepers: a million suspended threads hold nothing in the process, and a fresh process can resume them.
- Kill it mid-storm: a worker killed under load loses no run and charges nothing twice.
- Durable firehose: checkpoints to Postgres scale with concurrency, more so with group commit.
The sleepers and the killed worker hold on both systems. The burst and the firehose hold only up to a point, and finding that point is what stress tests are for. They led to four issues in Strata:
- #37: a burst of runs that wait is bound by what each run holds in memory. In
0.9.0-preview.3a node and a parallel branch allocate less, and the issue found that the runtime’s garbage collector and allocator settings matter more than the engine there. - #38: listing a million threads in Postgres was slow. Fixed in
0.9.0-preview.3. - #39: recovering a killed worker’s runs went one thread at a time. Fixed in
0.9.0-preview.3. - #40: group commit looked slower than none on Windows. That was Windows’ timer in the test’s simulated waits, not the store.
Its RESULTS.md has every figure, the machine and the runs. A Rust twin of the stress demos, built from the same spec, isn’t public yet.
Rerun it yourself
Close what you can first. A benchmark measures the machine as much as the code.
git clone https://github.com/datalium/strata && cd strata
# The microbenchmarks
(cd rust && cargo bench -p strata-bench)
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- --filter '*'
# The profile, with Postgres and Redis from the repository's docker-compose.yml
docker compose up -d --wait
export STRATA_TEST_POSTGRES_URL=postgres://strata:strata@localhost:5432/strata
export STRATA_TEST_REDIS_URL=redis://localhost:6379
(cd rust && cargo run --release -p strata-bench -- --out ../rust-profile.json)
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- profile --out dotnet-profile.json
To run one scenario, pass --only with transition_latency, run_latency, throughput, suspended_memory, stores or large_state. Without the two environment variables, the profile leaves out the Postgres and Redis rows and says so. It creates its own schema and key prefix, and removes them when it’s done.
A few things I learned the hard way:
- Compare your run with another run on your machine, not with
RESULTS.md. The numbers there are one machine’s. - Run the Rust sync benchmarks more than once before you believe one. Finding 2 explains why.
--quickmeasures nothing. It runs everything once with small counts, to prove the benchmarks still work. That’s what CI runs on every pull request.
The full instructions are in benchmarks/README.md, and the design is design/37-Benchmarks.md.
What’s missing, and how you can help
The Known limitations page lists the gaps:
- The suite’s results are Windows only. CI runs the benchmarks on Linux but records nothing. The stress demos have Linux runs.
- Nothing fails a build when performance regresses. A shared CI runner is too noisy to gate on, so only the allocation counts are tested.
- Tool dispatch isn’t benchmarked yet.
The most useful thing you could send is a full run on a quiet Linux machine, with the machine described as RESULTS.md describes its own. Post it in GitHub Discussions, slow numbers included. An independent reproduction is one of the things Strata needs before 1.0.