Self-hosting Durable Objects: celld, workerd, Rivet, Cloudflare
Plans changed on 2026-11-24. See current plans at /pricing.
We ran the same Context Mode gateway on four platforms: celld, a workerd cluster, Rivet with OpenOrange, and our live Cloudflare deployment. Quality is the same on all four: Codex passed 14 of 14 sessions everywhere, and the cost saving is within noise. Speed and operations are not the same. On a calm test machine, celld wrote fastest (5.59 ms median) and moved 2,197 requests a second. workerd read fastest (1.55 ms) but lost about half of new tenants under load. Rivet survived crashes best (35 s outage) but was 3 to 5 times slower. We cannot yet say which to pick. At the end we ask the celld, workerd and Rivet teams which one we should go with, and where we are wrong.
The short version
- Why we ran this: some customers need the gateway on their own hardware, even air-gapped. Cloudflare cannot do that. Three open-source runtimes say they can run Workers and Durable Objects (DOs) elsewhere.
- Quality: no difference we can measure. All four passed every Codex session. On Claude, celld and workerd passed 13 of 13, Rivet 13 of 14 and Cloudflare 14 of 14.
- Speed: celld is best for writes and throughput. workerd is best for reads. Rivet is the slowest, by 3 to 5 times.
- Safety: no system lost a write it had acknowledged when we killed a node with SIGKILL.
- Problems: workerd has an open bug (#8275) that fails about half of new tenants under parallel load (48.5% created at 1,000 tenants, 95% range 45.4 to 51.6). Rivet / OpenOrange had no readiness signal, so a rolling restart had 14.3% errors (40,494 of 283,726, 95% range 14.1 to 14.4). celld's project had no public commits for about six weeks at test time.
- The test machine was shared and overloaded. We say how, and what it changes, below.
Quality: the same on all four
Each system ran the same 7 coding tasks, 2 sessions per task, through the gateway (arm G) and straight to the model (arm D). The cost saving compares G with D. With only 2 sessions per task, the ranges overlap. Read this as "equal", not as a ranking.
Table 1. Quality on the same 7 tasks, 2 sessions per task. Cost saving compares the gateway with the direct model.
| Quality (same 7 tasks, 2 sessions each) | celld | workerd cluster | Rivet / OpenOrange | Cloudflare (live) |
|---|---|---|---|---|
| Codex: sessions passed | 14 of 14 | 14 of 14 | 14 of 14 | 14 of 14 |
| Codex: cost saving vs direct (95% range) | 66.0% (62.5 to 69.2) | 61.7% (57.8 to 65.3) | 62.5% (58.3 to 66.3) | 58.3% (54.1 to 62.2) |
| Claude: sessions passed (not void) | 13 of 13 | 13 of 13 | 13 of 14 | 14 of 14 |
| Claude: cost saving vs direct (95% range) | 71.2% (67.9 to 74.2) | 71.8% (67.6 to 75.6) | 70.3% (60.9 to 79.4) | 69.0% (61.1 to 76.4) |
Claude on Rivet / OpenOrange did not finish one session of the hardest task. Before we fixed an egress problem (see Air gap), two earlier Claude runs on OpenOrange were void because the gateway could not reach the model. They are not counted, and we say so here. Cloudflare runs a newer build than the self-hosted three, so its numbers match in spirit, not bit for bit.

Performance at a glance
The self-hosted numbers come from a calm window on the test machine (load 1.3 to 4.0). We took raw samples: 3 runs of 1,000 requests each, 2 clients at once, 50 warm-up requests thrown away. The throughput, scale and crash rows are single runs. The Cloudflare numbers are from our box over the internet, at a low rate, 200 requests each, and are not directly comparable. Section "Cloudflare" explains the gap.
Table 2. Speed, scale, safety and restarts. Bold is the best self-hosted value in the row.
| Performance | celld | workerd cluster | Rivet / OpenOrange | Cloudflare (live) |
|---|---|---|---|---|
| DO read, median ms (calm box, n=3,000) | 2.15 | 1.55 | 7.15 | 137 from our box, 23 on the server (n=200) |
| DO read, p99 ms | 9.4 | 6.5 | 22.2 | 723 client, 559 server |
| DO write, median ms (calm box, n=3,000) | 5.59 | 9.54 | 18.57 | 200 from our box, 81 on the server (n=200) |
| DO write, p99 ms | 23.9 | 50.6 | 54.7 | 904 client, 581 server |
| Throughput, 10 clients, 30 s, requests per second | 2,197 | 1,458 | 462 | not measured (production) |
| 1,000 new tenants created in parallel | see below: depends on host load | 48.5% (95% range 45.4 to 51.6) | 96.9% (95.6 to 97.8) | not measured (production) |
| Acknowledged writes lost after kill -9 | 0 of 552 | 0 of 15 | 0 of 267 | n/a |
| Errors during a rolling restart | 0 of 155,463 | 0 of 92,546 | 40,494 of 283,726 (14.3%) | n/a |
On the scale row: celld created all 200 tenants, but at 400 and 1,000 the machine was under heavy load (load 11 to 71, under 1.4 GB free) and celld's nodes shut themselves down to stay safe. An earlier run on a calm machine created 400 of 400 and 984 of 1,000. We do not know which number a quiet production host would give, so we show both and do not rank celld on scale.
The four systems
A Durable Object is a small, single-threaded object with its own SQLite database, found by name. The gateway uses 8 kinds of them: tenant settings, a usage ledger, a full-text index, recall threads and more. It also uses KV, cron, static assets and Dynamic Workers for a code-execution feature. All three self-hosted runs used the same gateway build (51e8f823c), compiled with a self-host profile that swaps Cloudflare-only services (Analytics Engine, Workers AI, email) for portable ones.
Table 3. The four systems.
| celld | workerd cluster | Rivet Engine + OpenOrange | Cloudflare Workers (live) | |
|---|---|---|---|---|
| Maker, licence | Deno Land, Apache-2.0 | Cloudflare, Apache-2.0 | Rivet, Apache-2.0 | Cloudflare, managed service |
| Version tested | celld 0.6.3 (released 22 Oct 2026) | workerd 2026-12-02, experimental cluster mode | Rivet Engine 3.1.2, OpenOrange 1.0.8 | production build of 4 Dec 2026 |
| Runs Workers code on | V8 isolates in one Rust daemon per node | V8 isolates (the Workers runtime itself) | Node.js 22 process that implements the Workers API | V8 isolates on Cloudflare's edge |
| Durable Object storage | one SQLite per object (a cell), changes shipped to an S3 bucket, ownership by a lease written to the bucket | local SQLite per object, write-ahead log captured and acknowledged after the bucket holds it | one SQLite per object (a Rivet Actor), placement and routing by the engine, data on S3 | managed by Cloudflare |
| Processes we ran | 2 nodes + store | 2 nodes + store | 3 engines + 2 nodes + store | none |
How we measured
Fairness rules
- Same gateway build, same S3-compatible store (RustFS 1.0.7, one node), same network namespace, same egress proxy, same load balancer (health-gated, one retry on a connection error, 502 or 503).
- One system at a time. Each step waited for host load below 12 to 20, and logged load and free memory when it started.
- The live Cloudflare gateway got measurement traffic only: at most 2 requests at once, test tenants only, no deploys, no config changes.
- Every agent client used a non-default base URL on every target, so the same client behaviors were off everywhere (Claude Code tool search and global cache scope).
- All tenants are synthetic test tenants. No customer tenant was touched.
Workloads
Table 4. The workloads we ran.
| Workload | What it tests | Size | Clients |
|---|---|---|---|
| version | HTTP path and Worker, no storage | 3 x 1,000 (calm), 2,000 (loaded) | 2 (calm), 10 (loaded) |
| do_read | read of one tenant's usage object | same | 2 (calm), 20 (loaded) |
| do_write | write of one tenant's settings object (a SQLite commit) | same | 2 (calm), 20 (loaded) |
| throughput | 50/50 read and write mix through the load balancer, closed loop | 30 s | 10 |
| scale | create N fresh tenants at once; each creates several SQLite objects | N = 200, 400, 1,000 | 16 |
| kill -9 | a writer makes a fresh tenant per write for 60 s; SIGKILL one of two nodes at 15 s; read back every acknowledged write | 90 to 600 writes | 8 |
| rolling restart | restart each node in turn under the throughput load | 100 to 330 s | 10 |
| quality | 7 published coding tasks, 2 sessions each, Codex and Claude (Haiku), gateway vs direct | 14 G sessions per system and suite | 1 to 2 |
Statistics
- Latency is measured at the client with
performance.now()aroundfetch(), including the body. - Percentiles use the lower nearest-rank rule. Confidence ranges are 95% percentile bootstrap (2,000 resamples for latency, 5,000 for savings, fixed seed). Success and error rates use Wilson 95% ranges.
- Cost saving is 1 minus the sum of per-task mean gateway cost over the sum of per-task mean direct cost, with equal task weights. Codex direct is one direct run (n=14). Claude direct is pooled from the four in-run direct arms (n=52, non-void).
- The loaded runs kept only the harness percentiles, not every sample, so they have no confidence ranges. The calm re-run kept every sample.
How each system was set up
celld: 2 nodes under a restart-always supervisor, memory cap 1,536 MB, lease 30 s. One patch: celld has no ctx.exports, so we wrapped the Dynamic Worker egress binding in a try/catch (2 lines).
workerd cluster: 2 instances in experimental cluster mode, stop timeout 8 s, restart-always supervisor. The cluster bucket must exist before start. No code patches.
Rivet / OpenOrange: tuned from Rivet's public production checklist, after an untuned first try in an earlier round. Engine moved to 3.1.2 GA, from 1 to 3 engines each with its own log directory and advertise address, a versioned bucket, the admin token from a secret, telemetry off, balancing left at default, 2 OpenOrange nodes with a node version set, and restart-always supervisors on engines and nodes. Two workarounds: secrets are read only from .dev.vars, and OpenOrange's worker fetch() ignores HTTPS_PROXY, so we patched 2 lines (details in Air gap). OpenOrange has no readiness route, so the load balancer checked /__version.
Cloudflare: the production Worker with Smart Placement. Our requests entered at the Ashburn (IAD) edge and the response header said the Worker ran in Frankfurt.
The test machine
These specs come from the machine itself (lscpu, /proc/meminfo, lsblk, uname). The raw output is in the data files.
Table 5. The test machine.
| Item | Value |
|---|---|
| Type | KVM virtual machine. The agent runs in a container inside it (systemd-detect-virt says container-other). |
| CPU | 8 vCPU, Intel Xeon (family 6, model 207), 1 thread per core, 1 socket, L2 16 MiB, L3 320 MiB |
| Memory | 16,386,416 kB (about 15.6 GiB), no swap, virtio memory balloon |
| Disks | 3 virtio block devices of 128 GB. Test data on one of them (125 GB, 69% to 85% full). I/O scheduler mq-deadline. The hypervisor does not say if the media is SSD or HDD. |
| Kernel, OS | Linux 6.12.113, x86_64, Debian GNU/Linux 13 (trixie) |
| Tools | Node.js 22.23.4, Bun 1.4.4, Python 3.13.5, rustc 1.85.1, tcpdump 4.99.5, numpy 2.5.5, matplotlib 3.11.2 |
| Runtimes | celld 0.6.3, workerd 2026-12-02, Rivet Engine 3.1.2, OpenOrange 1.0.8, RustFS 1.0.7 (the S3-compatible store for all three) |
| Network | all gateway processes in one Linux network namespace; the only way out is an egress proxy that allows two model hosts; no DNS inside |
It was shared and oversubscribed. Other automated agents ran builds and tests on it while we measured. The one-minute load average ranged from 0.2 to about 207 on 8 vCPUs. Free memory often fell under 1.5 to 2 GB. The kernel logged memory-balloon exhaustion, and the out-of-memory killer fired twice on unrelated processes. This has three effects:
- Tail latency and throughput from the loaded runs are pessimistic and noisy.
- Some failures came from host memory and disk stalls, not only from the runtimes. All three self-hosted systems shut themselves down safely when they could not renew a storage lease in time, and all recovered under a supervisor.
- That is why we re-ran latency on a calm window with raw samples, and print the load next to every loaded number.
Latency on a calm host

Table 6. Latency on the calm window. It has n, mean with standard deviation, and the median, p95 and p99 with 95% ranges. Times are in milliseconds.
| System | Scenario | n | errors | mean ± sd | p50 [95% CI] | p95 [95% CI] | p99 [95% CI] | rps per rep (mean ± sd, n=3) | load1 |
|---|---|---|---|---|---|---|---|---|---|
| celld | version | 3000 | 0 | 1.21 +/- 0.45 | 1.11 [1.1, 1.1] | 1.71 [1.7, 1.8] | 2.61 [2.4, 2.9] | 1651 +/- 82 | 1.3–1.9 |
| celld | do_read | 3000 | 0 | 2.52 +/- 2.71 | 2.15 [2.1, 2.2] | 3.59 [3.4, 3.8] | 9.40 [6.9, 12.1] | 815 +/- 170 | 1.5–2.0 |
| celld | do_write | 3000 | 0 | 6.19 +/- 5.11 | 5.59 [5.5, 5.7] | 11.62 [10.8, 12.6] | 23.89 [22.0, 27.9] | 328 +/- 50 | 1.6–2.0 |
| workerd cluster | version | 3000 | 0 | 0.69 +/- 0.74 | 0.51 [0.5, 0.5] | 1.71 [1.6, 1.8] | 2.95 [2.6, 3.5] | 3088 +/- 907 | 1.8–2.1 |
| workerd cluster | do_read | 3000 | 0 | 1.78 +/- 2.28 | 1.55 [1.5, 1.6] | 2.26 [2.2, 2.4] | 6.54 [3.9, 9.4] | 1120 +/- 19 | 1.8–2.1 |
| workerd cluster | do_write | 3000 | 0 | 10.32 +/- 25.25 | 9.54 [9.4, 9.7] | 17.53 [16.9, 18.4] | 50.61 [31.0, 87.6] | 194 +/- 14 | 2.0–2.1 |
| Rivet/OpenOrange | version | 3000 | 0 | 0.91 +/- 1.13 | 0.70 [0.7, 0.7] | 1.51 [1.4, 1.6] | 3.00 [2.8, 3.3] | 2237 +/- 316 | 1.6–3.5 |
| Rivet/OpenOrange | do_read | 3000 | 0 | 7.70 +/- 2.59 | 7.15 [7.1, 7.2] | 10.09 [9.8, 10.8] | 22.24 [20.3, 23.8] | 259 +/- 11 | 2.4–3.5 |
| Rivet/OpenOrange | do_write | 3000 | 0 | 21.28 +/- 11.53 | 18.57 [18.5, 18.7] | 39.87 [38.7, 41.8] | 54.69 [49.7, 58.4] | 94 +/- 6 | 2.9–4.0 |
- Reads: workerd 1.55 ms, celld 2.15 ms, OpenOrange 7.15 ms. The ranges do not overlap. OpenOrange is about 4.6 times slower than workerd.
- Writes: celld is fastest at 5.59 ms. workerd's writes have two speeds: about a third (33% to 36%) finish in under 4 ms, and the rest take 8 to 10 ms while the bucket holds the write. Its p99 is 50.6 ms (range 31 to 88). OpenOrange is about 3.3 times slower than celld at the median.
- The path without storage (
version) is about 1 ms or less everywhere. That does not matter for an LLM gateway.
Latency and throughput under load
Table 7. Loaded runs. These runs stored percentiles only, and the host load at the start is in the last column.
| System | Scenario | n | conc | p50 | p95 | p99 | rps | errors | box load1 at start |
|---|---|---|---|---|---|---|---|---|---|
| celld | version | 2000 | 10 | 2.3 | 4.8 | 7.2 | 3828 | 0 | 2.44 |
| celld | auth401 | 2000 | 10 | 1.6 | 4.2 | 6.2 | 5076 | 0 | 2.44 |
| celld | do_read | 2000 | 20 | 7.3 | 15.7 | 20.1 | 2449 | 0 | 2.44 |
| celld | do_write | 2000 | 20 | 13.3 | 22.7 | 37.5 | 1447 | 0 | 2.44 |
| workerd cluster | version | 2000 | 10 | 1.8 | 4.2 | 6.4 | 4628 | 0 | 1.59 |
| workerd cluster | auth401 | 2000 | 10 | 1.6 | 4.7 | 9.2 | 4845 | 0 | 1.59 |
| workerd cluster | do_read | 2000 | 20 | 9.5 | 19.5 | 31.7 | 1855 | 0 | 1.59 |
| workerd cluster | do_write | 2000 | 20 | 53 | 143.6 | 531 | 314 | 0 | 1.59 |
| Rivet/OpenOrange | version | 2000 | 10 | 3 | 7.6 | 13.6 | 2636 | 0 | 4.45 |
| Rivet/OpenOrange | auth401 | 2000 | 10 | 2.1 | 6 | 15.5 | 3792 | 0 | 4.45 |
| Rivet/OpenOrange | do_read | 2000 | 20 | 36 | 56.1 | 62.4 | 545 | 0 | 4.45 |
| Rivet/OpenOrange | do_write | 2000 | 20 | 128.3 | 204.3 | 248 | 151 | 0 | 4.45 |
| Cloudflare (live) | version | 200 | 2 | 112.7 | 146.8 | 207.3 | 17 | 0 | n/a |
| Cloudflare (live) | auth401 | 200 | 2 | 112.3 | 143.8 | 837.5 | 15.7 | 0 | n/a |
| Cloudflare (live) | do_read | 200 | 2 | 137.4 | 545.3 | 722.5 | 10.8 | 0 | n/a |
| Cloudflare (live) | do_write | 200 | 2 | 200.1 | 671.5 | 903.9 | 7.6 | 0 | n/a |
Table 8. Throughput: 10 clients, a 50/50 read and write mix, 30 seconds, one run per system, zero errors in all three. celld served 1.5 times what workerd did and 4.8 times what OpenOrange did. Trust the ratios, not the exact numbers: it is one run each.
| System | requests | rps | errors | p50 | p95 | p99 | max | LB retries |
|---|---|---|---|---|---|---|---|---|
| celld | 65906 | 2197 | 0 | 3.8 | 9.3 | 13.8 | 542 | 0 |
| workerd cluster | 43748 | 1458 | 0 | 4.3 | 15.5 | 34.2 | 391 | 0 |
| Rivet/OpenOrange | 13845 | 462 | 0 | 16.1 | 52.6 | 74.7 | 282 | 0 |

Tenant scale
This test creates N brand-new tenants, 16 at a time. Each new tenant creates several SQLite objects, which is the hard case for these systems.

Table 9. Scale: 1,000 new tenants in parallel.
| System | run | N | ok | success % [95% CI] | seconds | box load1 | dominant error |
|---|---|---|---|---|---|---|---|
| celld | 1 | 200 | 101 | 50.5 [43.6, 57.4] | 35.1 | 6.58 | connection error |
| celld | 1 | 400 | 0 | 0.0 [0.0, 1.0] | 0.3 | 71.23 | connection error |
| celld | 1 | 1000 | 0 | 0.0 [0.0, 0.4] | 0.4 | 71.23 | connection error |
| celld | 2 | 200 | 200 | 100.0 [98.1, 100.0] | 5.8 | 10.92 | n/a |
| celld | 2 | 400 | 186 | 46.5 [41.7, 51.4] | 236.3 | 11.08 | connection error |
| celld | 2 | 1000 | 0 | 0.0 [0.0, 0.4] | 0.5 | 70.21 | connection error |
| celld | 3 | 400 | 317 | 79.2 [75.0, 82.9] | 146.5 | 8.84 | connection error |
| workerd cluster | 1 | 200 | 153 | 76.5 [70.2, 81.8] | 6.1 | 3.97 | 500 error |
| workerd cluster | 1 | 400 | 201 | 50.2 [45.4, 55.1] | 12.0 | 3.49 | 500 error |
| workerd cluster | 1 | 1000 | 485 | 48.5 [45.4, 51.6] | 35.4 | 7.45 | 500 error |
| Rivet/OpenOrange | 1 | 200 | 151 | 75.5 [69.1, 80.9] | 61.3 | 5.87 | 500 error |
| Rivet/OpenOrange | 1 | 400 | 0 | 0.0 [0.0, 1.0] | 1.1 | 11.16 | 500 error |
| Rivet/OpenOrange | 1 | 1000 | 0 | 0.0 [0.0, 0.4] | 2.3 | 11.16 | 500 error |
| Rivet/OpenOrange | 2 | 200 | 200 | 100.0 [98.1, 100.0] | 13.8 | 4.06 | n/a |
| Rivet/OpenOrange | 2 | 400 | 383 | 95.8 [93.3, 97.3] | 226.3 | 3.97 | 502 request_outcome_unknown |
| Rivet/OpenOrange | 2 | 1000 | 969 | 96.9 [95.6, 97.8] | 392.0 | 11.95 | 502 request_outcome_unknown |
- workerd: about half of new tenants fail from 200 up, at low host load. Every failure is a 500 "capture lost". This is upstream issue cloudflare/workerd#8275, open when we tested. After SQLite rewrites log frame headers below the replication capture start, the capture is called lost and that object cannot commit again. Acknowledged writes were never lost, but affected tenants cannot make progress.
- Rivet / OpenOrange: 100%, 95.8% and 96.9% once the engines ran under a supervisor. The failures were
request_outcome_unknown502s while engines restarted. In run 1, with no engine supervisor, all three engines stopped and the run collapsed. - celld: 100% at 200 tenants. The 400 and 1,000 runs coincided with host load 11 to 71. celld hit its memory cap and shut nodes down to stay safe. Treat them as a host problem first and a celld result second.
Crashes and restarts
Table 10. Resilience: kill -9, host stalls and rolling restarts.
| System | test | attempted / requests | acked | acked lost | errors | error % [95% CI] | outage s | notes |
|---|---|---|---|---|---|---|---|---|
| celld | kill -9 one of 2 nodes | 574 | 552 | 0 | 22 | 3.8 [2.5, 5.7] | 74.3 | n/a |
| celld | rolling restart, 10 clients | 155463 | n/a | n/a | 0 | 0.00 [0.0, 0.0] | n/a | LB retries 17; n1 restarted and healthy in 17.9s; n2 restarted and healthy in 21.6s |
| workerd cluster | kill -9 one of 2 nodes | 91 | 15 | 0 | 76 | 83.5 [74.6, 89.7] | 62.9 | 1 write first read back as lost (transient 500) was present on re-read 3 min later |
| workerd cluster | rolling restart, 10 clients | 92546 | n/a | n/a | 0 | 0.00 [0.0, 0.0] | n/a | LB retries 0; node 1 restarted and healthy in 7.4s; node 2 restarted and healthy in 7.2s |
| Rivet/OpenOrange | kill -9 one of 2 nodes | 337 | 267 | 0 | 70 | 20.8 [16.8, 25.4] | 34.9 | n/a |
| Rivet/OpenOrange | rolling restart, 10 clients | 283726 | n/a | n/a | 40494 | 14.27 [14.1, 14.4] | n/a | LB retries 13141; n1 307.1s (graceful TERM drain), n2 43.1s |
- No lost writes: after SIGKILL of one of two nodes, no system lost an acknowledged write (0 of 552, 0 of 15, 0 of 267). The workerd trial is weak: #8275 errors began before the kill, so few writes were acknowledged. One write first read back as missing, and was present on a re-read three minutes later.
- Outage window (first error to last error): celld 74 s, workerd 63 s, Rivet / OpenOrange 35 s. celld's window follows its 30 s lease. On the loaded host the killed celld node took 183 s to be ready again.
- Rolling restart: celld and workerd had no errors. OpenOrange had 14.3% errors. On SIGTERM it drained for 145 to 307 s, and during that time
/__versionkept answering 200 while real requests got 500. A real readiness route would likely remove most of this. We did not build one, so the number is OpenOrange as shipped. - Rollback (earlier rounds, same machine): celld 2.55 s by pointer swap, workerd 8.6 s by a supervisor restart onto the previous release. Not measured for OpenOrange or Cloudflare.
- Cold start (first DO read after a full stop and start): celld 3.1 s, workerd 0.5 s. OpenOrange took 19 to 23 s for the first request after a node start, and 40 to 60 s for engine placement after an engine start. These are observations, not a controlled test.
What happened when the host stalled. All three fenced themselves, which is the safe behavior, and all three did it on this machine. celld exited with code 3 (7 and 14 times on its two nodes). workerd exited with code 1 (5 and 8 times); the cases we inspected said the lease lapsed before it could be renewed. Rivet's three engines stopped together twice ("log shard" write timeouts and "singleton coordinator fenced this worker's lease") and restarted 7 to 9 times each during the scale run. All came back under a supervisor. Plan for a supervisor and for dedicated disk and memory with any of them.
Memory and CPU

Table 11. Memory and CPU.
| System | process group | samples n | RSS median (MB) | RSS mean ± sd | RSS p95 | RSS max | CPU mean % ± sd | CPU p95 % |
|---|---|---|---|---|---|---|---|---|
| celld | bin/celld | 426 | 1194 | 1226 +/- 930 | 2770 | 2845 | 79 +/- 137 | 369 |
| celld | rustfs server | 426 | 210 | 199 +/- 36 | 235 | 278 | 43 +/- 88 | 159 |
| workerd cluster | rustfs server | 774 | 359 | 360 +/- 20 | 409 | 449 | 11 +/- 23 | 64 |
| workerd cluster | workerd serve (contaminated: also matched an unrelated workerd) | 774 | 1533 | 1488 +/- 340 | 1998 | 2297 | 19 +/- 35 | 106 |
| Rivet/OpenOrange | engine-cli-linux-x64-musl/rivet-engine | 532 | 1254 | 1087 +/- 692 | 2154 | 2381 | 141 +/- 129 | 345 |
| Rivet/OpenOrange | oo-cli/node_modules | 532 | 2442 | 2422 +/- 414 | 3060 | 3250 | 81 +/- 93 | 213 |
| Rivet/OpenOrange | rustfs server | 532 | 732 | 779 +/- 185 | 1124 | 1155 | 50 +/- 60 | 166 |
Calm-host snapshots after the raw benchmark (3 x 3,000 requests, 50 tenants): workerd nodes 542 MB while serving and 157 MB idle. Rivet engines 161, 209 and 260 MB; OpenOrange node processes 195 + 247 MB and 200 + 338 MB (server plus runner). celld's median was about 0.6 GB per node, with peaks near 1.4 GB per node at its memory cap. Do not use the workerd time series in Table 7: it is contaminated. Earlier per-node measurements for workerd were 0.2 to 0.5 GB.
Quality in detail
Table 12. Pass counts, sample sizes and bootstrap ranges behind Table 1. Session wall time (median, gateway / direct) for Claude was 6.0 / 7.0 s on celld, 6.8 / 5.9 s on workerd, 6.3 / 7.5 s on Rivet / OpenOrange and 6.0 / 6.2 s on Cloudflare. The model dominates that time, not the gateway.
| Suite | System | G sessions n | G pass | G voids | saving % vs D | 95% bootstrap CI | D reference | Claude: saving vs historical pooled D |
|---|---|---|---|---|---|---|---|---|
| codex | celld | 14 | 14/14 | 0 | 66.0 | [62.5, 69.2] | direct run, n=14 (2/task) | n/a |
| codex | workerd cluster | 14 | 14/14 | 0 | 61.7 | [57.8, 65.3] | direct run, n=14 (2/task) | n/a |
| codex | Rivet/OpenOrange | 14 | 14/14 | 0 | 62.5 | [58.3, 66.3] | direct run, n=14 (2/task) | n/a |
| codex | Cloudflare (live) | 14 | 14/14 | 0 | 58.3 | [54.1, 62.2] | direct run, n=14 (2/task) | n/a |
| claude | celld | 14 | 13/13 | 1 | 71.2 | [67.9, 74.2] | P5 in-run D pooled over 4 runs, n=52 | 75.6 |
| claude | workerd cluster | 14 | 13/13 | 1 | 71.8 | [67.6, 75.6] | P5 in-run D pooled over 4 runs, n=52 | 76.2 |
| claude | Rivet/OpenOrange | 14 | 13/14 | 0 | 70.3 | [60.9, 79.4] | P5 in-run D pooled over 4 runs, n=52 | 74.9 |
| claude | Cloudflare (live) | 14 | 14/14 | 0 | 69.0 | [61.1, 76.4] | P5 in-run D pooled over 4 runs, n=52 | 73.8 |
The last column compares Claude against the pooled direct cost we used in earlier reports: 75.6%, 76.2%, 74.9% and 73.8%. The conclusion is the same: equal within noise.
Cloudflare, live
We measured the production gateway from the same machine, over the internet, with 200 requests per test and 2 clients at once. Requests entered at Cloudflare's Ashburn (IAD) edge. The Worker ran in Frankfurt (response header cf-placement: remote-FRA), because of Smart Placement. The gateway can return its own server-side time in a header when asked, so we can split network from gateway.

Table 13. The live Cloudflare gateway, 200 requests per scenario, measured over the internet.
| Scenario | client p50 / p95 / p99 | server p50 / p95 / p99 (n) | client − server at p50 |
|---|---|---|---|
| version | 112.7 / 146.8 / 207.3 | not reported by this route (0) | n/a |
| auth401 | 112.3 / 143.8 / 837.5 | not reported by this route (0) | n/a |
| do_read | 137.4 / 545.3 / 722.5 | 23 / 413 / 559 (200) | 114.4 |
| do_write | 200.1 / 671.5 / 903.9 | 81 / 533 / 581 (200) | 119.1 |
At the median, about 114 to 119 ms of each request is outside the gateway: TLS, the edge, and the hop from Ashburn to Frankfurt. The version route has no storage and sits at 112.7 ms, a good estimate of that floor. Server-side DO time at the median (23 ms read, 81 ms write) is higher than any self-hosted system on a calm host, and the p95 is long (413 to 533 ms). With 200 requests at a low rate we cannot say if that is cold objects, cross-region placement or noise.
Not measured, on purpose: throughput, scale, kill, rolling restart, cold start, rollback and resource use. It is production, and we only sent measurement traffic. The live build is newer than the one on the self-hosted three.
Air gap
Our rule: all gateway processes run in a Linux network namespace whose only route out leads to an egress proxy. The proxy allows CONNECT only to the two model hosts and logs every request. There is no DNS inside. We verify with a packet capture during real agent traffic. A packet counts as a violation unless it goes to the proxy, replies from a gateway listener, or is ARP. A DNS query counts even if nobody answered it. Cloudflare cannot be air-gapped, so it is out of this test.
Table 14. Air gap test: packets seen from each system's network namespace.
| System | Capture | Packets from the namespace | DNS queries | Unexpected packets | New outbound connections |
|---|---|---|---|---|---|
| celld | earlier phase, real agent traffic | n/a | 0 | 0 | 83, all to the egress proxy |
| workerd cluster | earlier phase, real agent traffic | n/a | 0 | 0 | 58, all to the egress proxy |
| OpenOrange, before our patch | 13:27 to 13:33 TRT, Codex and Claude | 7,227 | 48 (unanswered) | 48 | 20, all to the egress proxy |
| OpenOrange, after our patch | 13:43 to 13:52 TRT, Claude suite | 9,201 | 0 | 0 | 62, all to the egress proxy |
All three can be confined. celld and workerd honored the proxy setting out of the box. OpenOrange's worker fetch() uses its own HTTP agent and ignores HTTPS_PROXY, and Node 22 ignores NODE_USE_ENV_PROXY, so it tried DNS for the model host inside the namespace. Nothing left the namespace, but the product was broken. We patched 2 lines in OpenOrange so the worker fetch uses undici's EnvHttpProxyAgent when a proxy is set. After that, the capture showed no DNS and no unexpected packets.
Trade-offs, system by system
celld. Best write speed and throughput, the simplest operations (one binary, no errors in the rolling restart, 2.55 s rollback), and a clean air gap with no patch for the proxy. Costs: the highest memory per node of the two V8-based runtimes, nodes that shut themselves down under memory pressure, a small patch for the missing ctx.exports, and maintenance risk. The project had no commits for about six weeks when we tested and does not take pull requests, so an adopter must be ready to own a fork.
workerd cluster. Cloudflare's own engine, so the best fidelity, the lowest memory, the fastest cold start and clean restarts. But cluster mode is experimental, and for our write pattern it was not usable because of #8275. Write latency has a long tail because a write is acknowledged only after the bucket holds it. It looks the most attractive once #8275 is fixed.
Rivet / OpenOrange. The best crash result (35 s, nothing lost), good scale once supervised, and a clear public production checklist. In exchange: the slowest DO path (3 to 5 times slower than celld), the most processes and memory, two workarounds, and 14.3% errors in a rolling restart for lack of a readiness route. OpenOrange runs Workers on Node.js, not V8 isolates, which removes Workers limits but lowers fidelity. The project was three weeks old when we tested and moves fast. Some of these findings may already be fixed.
Cloudflare. No operations and full quality. Every request pays network distance to wherever the Worker is placed (about 115 ms from our machine), server-side tails were long at a low rate, and it cannot meet an air-gap or on-premises requirement.
Limits of this study
- Shared host. The biggest threat. We log load per step and re-ran latency on a calm window. Scale, resilience and throughput still ran at load 2 to 71.
- One machine, two nodes. Nodes and store share one VM and one disk. Real deployments use several machines and a replicated store. Network time between nodes was close to zero.
- Single trials for throughput, scale, kill and rolling restart. The ranges show uncertainty inside one trial, not run-to-run change.
- Quality uses n=2 per task and one model per suite. Model variance dominates.
- Tuning is not equal. We know celld and workerd better from earlier rounds. OpenOrange got a documented, checklist-based pass, but we may still have missed things. Its health check (
/__version) is weaker than the readiness routes used for the others. - Cloudflare is not like for like: a newer build, a different network path, a low rate. Server timing comes from our own header, not from Cloudflare.
- Our own harness. We publish the data and analysis code so others can find mistakes.
What we did not measure
Table 15. What we did not measure.
| Not measured | Systems | Why |
|---|---|---|
| Throughput, scale, kill, rolling restart, rollback, cold start, resources | Cloudflare | Production service. We sent measurement traffic only and did not deploy or change anything. |
| Rollback time | Rivet / OpenOrange | No in-place version swap; we did not build a rollback procedure. |
| Formal cold start | Rivet / OpenOrange | Skipped under host overload. We report observed first-request times. |
| 1,000-tenant scale on a calm host | celld, this campaign | The host was overloaded in that window. An earlier calm-host run is cited. |
| Memory and CPU time series | workerd, this campaign | Our sampler also matched an unrelated workerd process. We use a snapshot and earlier figures. |
| Run-to-run variance | throughput, scale, kill, rolling restart | One trial each. |
| Several machines, a replicated store | all self-hosted | One VM, one single-node store. |
Which one should we pick?
We build product, not runtimes. The numbers above do not give a clear winner, and we would rather ask than guess. These are open-source projects. To the celld team at Deno, the Cloudflare workerd team, the Rivet team, and anyone else in those communities: which one should we go with for an air-gapped, self-hosted Durable Object runtime, and where are we wrong?
If you correct anything, we will update this post and credit you.
Reproduce it
The measurement scripts, the analysis and the raw data are listed here so you can check the numbers. The files below are the ones behind every table and figure.
- raw.jsonl.gz: every calm-host latency sample (3 runs x 1,000 per system and test).
- Loaded runs, scale, kill, rolling restart and cold start: celld, workerd, OpenOrange, Cloudflare live.
- Memory and CPU samples every 2 s: celld, workerd, OpenOrange.
- quality-sessions.jsonl: one line per agent session (suite, system, arm, task, cost, pass, void, duration). No prompts, no tenant names.
- analyze.py, tables.md, stats.json and machine.txt. The analysis uses numpy and matplotlib with a fixed seed (20261204) and regenerates every table and figure.
How we ran each system: a restart-always supervisor per process; deploy of the release into the celld fleet; the workerd cluster with its bucket and key file; three Rivet engines, the default pool created through the API, then two OpenOrange nodes. Tests: a raw latency script (1,000 requests per run, 2 clients, 50 warm-up requests discarded), a closed-loop load script behind a health-gated load balancer, a 16-client tenant-creation script, a kill script (SIGKILL one node, then read back every acknowledged write), a rolling-restart script run under load, and a packet-capture classifier for the air-gap test. The two agent suites use 7 published tasks with 2 sessions each.
The OpenOrange patch, in dist/runtime/chunks, adds undici's EnvHttpProxyAgent to the import and picks it as the dispatcher for worker fetch when HTTPS_PROXY is set; otherwise the original dispatcher is used.