A measured comparison: the same JavaScript handlers on DataVec and, priced from its published rates, on Cloudflare Workers. Below are the results, exactly how they were taken, and what they can't tell you yet. More workloads and platforms follow.
| Workload | DataVec req/s | p50 / p99 ms | DataVec $/M | Cloudflare CPU ms | Cloudflare $/M |
|---|---|---|---|---|---|
| Light compute 1 round of JSON parse, filter, sort, stringify | 6,698 on 1 × 1 vCPU VM | 1.6 / 9.2 | $0.0010 | 0.198 | $0.30 |
| Medium compute 10 rounds | 4,067 on 1 × 1 vCPU VM | 1.2 / 6.7 | $0.0016 | 0.914 | $0.32 |
| Heavy compute 100 rounds | 812 on 1 × 1 vCPU VM | 11.5 / 39.1 | $0.0081 | 7.78 | $0.46 |
| SQL read one row by primary key | 4,819 on 4 × 1 vCPU VMs | 4 / 12.5 | $0.0054 | 0.105 | $0.30 |
| SQL write one row, committed on 2 of 3 log nodes (fsync) | 358 on 4 × 1 vCPU VMs | 10.3 / 39.9 | $0.0733 | 0.098 | $1.30 |
On DataVec, work lives on the connection: the TLS handshake is paid once and amortized over every request, the database session is pooled and reused across queries, and the compiled handler is always resident. A request-per-isolate runtime re-establishes that state per invocation — and a worker that can't carry a socket forward must reconnect to its database or rent a managed pooling tier. Connection-oriented execution is the root of the throughput and latency difference.
DataVec translates your handler to native C and runs it as a resident coroutine loop — ahead-of-time compiled (no JIT warm-up), no interpreter, no garbage-collection pauses, and no per-invocation isolate to spin up. Because you pay for a running service rather than per request, there is no economic pressure to evict idle handlers, so they never cold-start.
text/event-stream response (the AI-gateway shape, minus the model).How we measured
The methodology page states the setup behind every figure above: the VMs, the load generator, how each load step was run and judged, what each workload does, how Cloudflare's cost was estimated, and the limits of what these comparisons can tell you.
Standard Web Workers, Next.js static builds, and Elysia APIs with predictable pricing starting at $17/month.