Skip to content
These docs cover Strata 0.9.0.

Performance

Strata ships a benchmark suite that measures the engine’s own cost: what a node, a run, a parallel branch 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 or tool latency. In a real agent, a node that calls a model spends far longer in that call than in the engine, so these numbers matter most for graphs of many cheap nodes and for durable runs that checkpoint often.

This page summarizes the results. The full tables, the method and every caveat are in benchmarks/RESULTS.md. The code is in the benchmarks folder, and the design behind it is design/37-Benchmarks.md.

Every number on this page comes from one machine:

  • Version: 0.9.0-preview.3. RESULTS.md wasn’t measured again for 0.9.0: no engine code changed between them, so the figures hold for 0.9.0.
  • Machine: Intel Core i9-12900KF (8 performance and 8 efficiency cores, 24 logical), Windows 11, the Balanced power plan.
  • Runtimes: .NET 10.0.15 (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 8 in Docker Desktop on the same machine, with Postgres on tmpfs.
  • When: 2026-11-19, in one run, on the commit released as 0.9.0-preview.3. The same afternoon, some scenarios were measured again on that commit and on 0.9.0-preview.2, alternately, to compare the two.
  • A quiet machine, nearly. Other applications were closed; only an editor was running. The slowest percentiles and the maxima still carry some noise.

Each engine has two tools that answer different questions:

  • Microbenchmarks, with BenchmarkDotNet in .NET and criterion in Rust. 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 a 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. A number in one engine is about the same thing as the number beside it. The aim is to explain differences, not to race the engines.

These follow the numbered findings in RESULTS.md.

  • The engine’s share of a node is about 0.4 µs in both engines. That is the median gap between one async handler returning and the next one starting. The P99.9 is 1.4 µs in .NET and 0.9 µs in Rust. In Rust it was 1.8 µs before the work in design/38.
  • Traversals are sub-millisecond at every size measured. A hundred async nodes take 40 µs in .NET and 41 µs in Rust. The slowest case, a hundred sync nodes in Rust, takes 0.57 ms.
  • Rust is level with .NET on a line of async nodes, and slower than .NET elsewhere. Where it is slower, the cost is outside the per-node path:
    • A run’s own setup is about 0.9 µs in Rust and 0.2 µs in .NET. That is the whole difference on a one-node run.
    • A branch of a parallel group costs about 1.1 µs in Rust and 0.3 µs in .NET. An item of a map costs about 1.7 µs and 0.6 µs.
    • A streamed token costs 397 ns in Rust and 85 ns in .NET, nearly all of it the channel.
    • Rust clones the state into every async handler, so a 16 KiB state adds 52% to a ten-node run. In .NET it adds nothing.
  • A sync handler in Rust costs a thread hand-off each way, and its cost moves with that. When both threads stay awake, a sync node has measured about 1.1 µs. When one sleeps, as it did throughout this run, it costs about 4.6 to 5.6 µs, and sync throughput stayed between 168,000 and 309,000 transitions a second however many runs were going. 0.9.0-preview.2, measured the same afternoon, gave the same sync latency. Its sync throughput with many runs at once came out higher in some runs, which #53 tracks. Async reaches 10.5 million transitions a second in Rust and 26.7 million in .NET.
  • 0.9.0-preview.3 is faster than 0.9.0-preview.2 in .NET everywhere, and in Rust’s parallel groups. Measured alternately the same afternoon, a .NET group of 32 branches takes 9.8 µs against 20.3 µs and allocates about half as much, and .NET async throughput with 64 runs at once is 29 million transitions a second against 20 million. A Rust group is 20 to 30% faster. Rust’s async and inline nodes are the same in both versions.
  • A suspended thread holds nothing in the process. Against SQLite, ten thousand frozen threads grew the heap by 0 bytes each in Rust and by nothing measurable in .NET, and took 1.6 KB each on disk. The in-memory store holds 1.7 KB (.NET) or 3.6 KB (Rust) per thread, its copy of a 1.25 KB checkpoint.
  • A checkpoint per node costs a store round trip per node. A ten-node run under EveryNode (eleven saves) takes 3 ms on Redis, 12 to 13 ms on Postgres and 27 ms on SQLite. With a store that costs nothing, the same run takes 11 µs in .NET and 20 µs in Rust.
  • SQLite saves are bound by the disk. Without group commit, each save takes about 2.4 ms, one disk sync per save, about 400 a second however many writers there are. Postgres stops scaling at about 7,500 saves a second. Sixteen Postgres writers save 6,703 checkpoints a second in Rust and 6,942 in .NET.
  • Group commit multiplies what many writers save. With 64 writers, SQLite saves 13 times as many in Rust (5,354 a second against 410) and 11 times in .NET (4,543 against 401). Postgres saves 3.1 times as many in Rust (23,223 against 7,537) and 2.2 times in .NET (16,355 against 7,590). A single writer gains nothing, and in Rust pays a little: 943 saves a second against 1,014.
  • Group commit with many writers varies from run to run, and the cause isn’t known. In this run, Rust Postgres with 256 writers saved 9,397 a second, less than with 64. Earlier runs of the same scenario gave 26,400 to 36,000 in Rust, and 5,900 to 16,200 in .NET with 64 writers.
  • Deltas and offload shrink a large state’s checkpoints. With a 64 KiB value that never changes, a save stores 65.6 KB whole, 6.6 KB on average with deltas, and 3.4 to 3.7 KB with the value offloaded. Loads read more: a chain of deltas, or the blob. State describes both options.

The mean time of one run against a store that costs nothing, from the microbenchmarks. Measured on the machine above.

Benchmark Rust .NET
Traversal, async, 1 node 1.29 µs 0.63 µs
Traversal, async, 10 nodes 5.19 µs 3.15 µs
Traversal, async, 100 nodes 41.1 µs 40.4 µs
Traversal, sync, 1 node 6.21 µs 1.79 µs
Traversal, sync, 10 nodes 60.1 µs 18.3 µs
Traversal, sync, 100 nodes 567 µs 122 µs
Parallel group, 8 branches 12.5 µs 3.37 µs
Map, 64 items 125 µs 41.9 µs
10 nodes, 1 KiB state, Boundaries 5.43 µs 3.07 µs
10 nodes, 1 KiB state, EveryNode 20.0 µs 11.0 µs

The Rust sync rows, and Rust’s small parallel groups, carry a sleeping thread’s wake-up on every hand-off. On days when both threads stayed awake, the sync rows measured several times less. Run them more than once before you trust one.

The ten-node line with a 1 KiB state under EveryNode, eleven checkpoints a run. Measured on the machine above, with Postgres and Redis in a container on the same machine.

Store Engine Mean P99
SQLite Rust 26.8 ms 62.2 ms
SQLite .NET 26.6 ms 32.3 ms
Postgres Rust 12.3 ms 15.9 ms
Postgres .NET 13.2 ms 16.5 ms
Redis Rust 2.92 ms 3.88 ms
Redis .NET 3.03 ms 4.61 ms
  • They are one machine’s. Compare your own run with another run on your machine, not with these numbers.
  • They were measured on Windows only. CI runs every benchmark once on Linux on each pull request, to prove the benchmarks still run. It records nothing, and nothing fails a build when performance regresses.
  • The stores had no network in front of them. Postgres and Redis ran in a container on the same machine, so their numbers are a floor for the store’s own cost. Docker Desktop also made a 64 KB command to either container slow on this machine, which affects the large-state rows. RESULTS.md explains this in each section it touches.
  • They aren’t a load test of a real application. StrataOps, an SRE system built on Strata that runs against a local sandbox cluster and isn’t public yet, has run one: a large-scale load test against a simulator. Its report isn’t public, so this page has none of its numbers. See What 0.9.0 means.
  • Some things aren’t measured yet. Tool dispatch, subgraphs, retries and the drivers have no benchmarks of their own.

Known limitations lists these with the rest of what this version doesn’t do yet.

You need a clone of datalium/strata, and the .NET SDK for the C# benchmarks or the Rust toolchain for the Rust ones. Installation lists the versions. Run every command from the repository root. Close what you can first: a benchmark measures the machine as much as the code.

Terminal window
# All of them
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- --filter '*'
# One group
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- --filter '*Traversal*'

The profile needs Docker for the Postgres and Redis rows. The repository’s docker-compose.yml starts both, and two variables tell the profile where they are. Without the variables, the profile leaves those rows out and says so. It works in a schema and under a key prefix of its own, and removes them when it finishes.

Terminal window
docker compose up -d --wait
export STRATA_TEST_POSTGRES_URL=postgres://strata:strata@localhost:5432/strata
export STRATA_TEST_REDIS_URL=redis://localhost:6379
# The whole profile
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- profile --out dotnet-profile.json
# One scenario
dotnet run -c Release --project dotnet/benchmarks/Datalium.Strata.Benchmarks -- profile --only throughput

--only takes transition_latency, run_latency, throughput, suspended_memory, stores and large_state, separated by commas. The profile prints a Markdown table, and with --out it also writes the results as JSON, in the same shape from both engines.

--quick runs the profile once with small counts. That proves it runs, which is what CI does. It measures nothing.

On the machine above, the four commands took about 17 minutes: the .NET microbenchmarks about 6, the Rust ones and each profile about 3 each.

Numbers from other machines, and from Linux in particular, help. Open an issue at github.com/datalium/strata/issues with your hardware, OS, runtimes, the commit you measured and the profile’s JSON.

Each of these follows from a measured number above. Check it against your own graph.

  • In Rust, prefer async handlers on hot paths. An async node costs about 0.4 µs. A sync node costs 1.1 to 5.6 µs, because it runs on tokio’s blocking pool. For a node that calls a model, the difference doesn’t matter.
  • Choose the checkpoint policy for the durability you need. EveryNode costs one store round trip per node: about 3 ms on Redis and 27 ms on SQLite for a ten-node run. Boundaries, the default, writes only where a run stops. See Durable execution.
  • Keep state small. In Rust, a 16 KiB state adds 52% to a ten-node run. For a large value that rarely changes, use deltas or offload, as State describes.
  • With many writers, consider group commit. At 64 writers it multiplies SQLite saves 11 to 13 times and Postgres saves 2.2 to 3.1 times. With one writer it costs a little. The SQLite and Postgres stores have it; design/41 describes it.
  • Waiting threads cost the store, not the process. Against SQLite, a thread frozen at a boundary held nothing on the heap and took 1.6 KB on disk. The in-memory store keeps every waiting thread’s checkpoint in memory. See Human-in-the-loop.