Table of Contents

Performance: single silo

This page is part of the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at performance-single-silo.md, and llms.txt lists every page.

This page is an approximate guide to what one Orleans.Lattice silo costs per call and what it sustains. Two measurements are regenerated together by benchmark/performance-report.ps1:

  • Layer 1, cost per call in-process: each ILattice method on one thread, with no network and no durable storage. See how Layer 1 is measured.
  • Layer 2, sustained throughput on Azure: one silo writing through its durable write-ahead log (WAL) to a real Azure Tables account. See how Layer 2 is measured.

Each figure is the median of up to three runs, called cohorts, on a freshly provisioned Azure VM; the line under each table says how many were used.

What adding silos buys is on a separate page: Performance: multi-silo scaling. How read latency changes as one tree grows is on Performance: tree size.

The figures are steady-state averages from a warm silo. Cold starts, the first call to a newly activated grain, shard splits and bursts can all be much slower. Key and value sizes, fan-out, key skew, the read/write mix, durability needs and the storage tier all move the numbers, so measure your own workload before planning capacity: the harness is in the repository (see Benchmarks).

Layer 1: cost per call, in-process

How it is measured: Layer 1 methodology.

Operation Per-call p50 Per-call p75 Per-call p90 Per-call p99 Allocations Per-thread call rate (1 / p50)
GetAsync (point read) 1.57 us 2.28 us 4.32 us 50.9 us 536 B ~637.8 k keys/s
SetAsync (point write) 4.85 us 5.43 us 6.76 us 28.37 us 1 KB ~206.2 k keys/s
GetManyAsync (4 keys/call) 10.66 us 20.2 us 33.79 us 306.03 us 3 KB ~375.1 k keys/s
SetManyAsync (1,000 keys/call) 984.51 us 1.05 ms 1.51 ms 2.58 ms 71 KB ~1.02 M keys/s
SetManyAtomicAsync (16 keys/saga) 253.84 us 270.49 us 316.7 us 985.2 us 38 KB ~63 k keys/s
SetManyAtomicAsync (2 keys/saga, single-tree) 96.24 us 156.84 us 171.48 us 177 us 26 KB ~20.8 k keys/s
SetManyAtomicAsync (64 keys/saga, single-tree) 229.96 us 234.58 us 238.38 us 241.92 us 85 KB ~278.3 k keys/s
BeginAtomicWrite cross-tree (2 keys/saga, 2 trees) 208.77 us 223.32 us 252.94 us 306.35 us 62 KB ~9.6 k keys/s
BeginAtomicWrite cross-tree (64 keys/saga, 2 trees) 330.77 us 337.41 us 343.68 us 348.32 us 140 KB ~193.5 k keys/s

Measured 2026-12-04 on Standard_D4as_v5 (.NET 10.0.115) at git sha 7e054a633, n=3 cohorts (BDN quick).

Reading it.

  • Per thread, not per silo. The call rate is what one thread achieves running the call back to back with nothing else to do. A silo also pays for grain messaging, the WAL and storage, so what it sustains is the much lower Layer 2 figure.
  • Batching amortises the fixed cost. SetManyAsync writes 1,000 keys in about 0.98 ms, roughly 5 times the per-key rate of SetAsync.
  • Atomicity costs more per call. A 2-key SetManyAtomicAsync takes about 96 us against about 4.9 us for SetAsync, and spanning two trees roughly doubles a 2-key saga's cost (about 209 us).
  • Read the GetManyAsync row with care. The 4-key batch reads about 11 us per call here, against about 1.6 us for a single GetAsync.

Layer 2: sustained throughput, one silo on Azure Tables

How it is measured: Layer 2 methodology.

Operation Sustained throughput Per-call p50 Per-call p75 Per-call p90 Per-call p99
GetAsync (point read) >= ~19.7 k keys/s ~20 us ~20 us ~40 us ~750 us
SetAsync (point write, 200 veh/5 Hz) >= 966 keys/s ~21.54 ms ~29.73 ms ~55.1 ms ~119.79 ms
SetAsync (point write + async materialised view, 200 veh/5 Hz) >= ~1 k keys/s ~24.3 ms ~36.11 ms ~61.17 ms ~106.06 ms
GetManyAsync (4,096 keys/call) >= ~19.9 k keys/s ~5.12 ms ~7.28 ms ~12.88 ms ~54.82 ms
SetManyAsync (4,096 keys/call, 1200 veh/5 Hz) >= ~5.9 k keys/s ~312.79 ms ~449.69 ms ~632.29 ms ~1078.43 ms
SetManyAtomicAsync (64 keys/saga, 100 veh/5 Hz) >= 495 keys/s ~52.91 ms ~76.59 ms ~98.41 ms ~210.96 ms
SetManyAtomicAsync (2 keys/saga, single-tree, 20 veh/5 Hz) 86 keys/s ~13.17 ms ~23.51 ms ~31.27 ms ~91.54 ms
BeginAtomicWrite cross-tree (2 keys/saga, 2 trees, 8 veh/5 Hz) >= 40 keys/s ~10.06 ms ~14.23 ms ~25.82 ms ~96.93 ms
BeginAtomicWrite cross-tree (64 keys/saga, 2 trees, 150 veh/5 Hz) >= 748 keys/s ~81.21 ms ~104.94 ms ~141.48 ms ~252.58 ms

Cells marked >= completed (nearly) all of the load they were offered, so they measure that offered load, not the silo's ceiling: each is a lower bound on what one silo sustains.

Measured 2026-12-04 on Standard_D4as_v5 in westus2 (.NET 10.0.115) at git sha 7e054a633, n=2/3 cohorts. Read workloads were driven at 4000 vehicles / 5 Hz / 45s; each write workload was driven at its own lower, fixed offered load (annotated in its operation label).

Reading it.

  • Write rows are not ceilings. Each write workload is offered its own fixed load, lower than the reads' and shown in its label, so a write row is a sustained rate at that load. Rows offered different loads should be compared by latency, not throughput. A row marked >= kept up with all of its load.
  • Call shape is the biggest lever. SetManyAsync sustains at least 5.9 k keys/s at its load against at least 966 keys/s for SetAsync, because one call carries 4,096 keys through a single round of WAL and Azure work. The price is per-call latency: a median of about 313 ms and a p99 of about 1,078 ms. If your writes can be batched, batch them.
  • An asynchronous materialised view showed no material write-path cost. With a view attached, the same point writes at the same load sustain at least 1 k keys/s against at least 966 without one, with a slightly higher median (about 24.3 ms against 21.5 ms) but a lower p99 (about 106 ms against 120 ms). Both rows kept up with their load; the view's own writes still land on the account, so budget for them.
  • Atomic sagas pay for all-or-nothing. Each saga makes a chain of durable writes, so its sustainable rate is a small fraction of a plain batch's: 86 keys/s for 2-key sagas and at least 495 for 64-key sagas, against at least 5.9 k for SetManyAsync. Use them when you need atomicity across keys.
  • The read rows measure a hot working set. They read the same 4,000 pre-written keys over and over, so every read is answered from memory: GetAsync in about 20 us and a 4,096-key GetManyAsync in about 5.1 ms, well below one Azure Tables round trip. Both rows ran at a fixed 20,000 keys/s offered load and completed at least 19.7 k and 19.9 k keys/s. They are not read ceilings: one silo in the multi-silo sweep read about 52.5 k keys/s with GetAsync and 235 k with GetManyAsync. A workload whose keys are not in memory reads more slowly; see how Layer 2 is measured.

What these numbers do not tell you

  • Cold starts. The first calls after a silo starts pay for grain activation, JIT compilation and storage connection set-up.
  • Bursts. A burst above the sustained rate queues and lengthens the latency tail; it can be absorbed briefly but not held.
  • Key skew. A hot key concentrates load on one shard or leaf. Adaptive shard splitting rebalances a persistently hot shard, with a brief dip while it does.
  • More than one silo. See Performance: multi-silo scaling.
  • Other WAL settings. These figures use the shipping WalPartitions and WalMaxPendingBatches defaults. Fewer partitions spread the writes over fewer WAL streams, and more pending batches put more transactions in flight against the account; see WAL Tuning.
  • Your workload. Run the harness against it before committing to a capacity plan.