Railway ran the same SSR CPU benchmarks that Theo Browne originally published comparing Cloudflare Workers and Vercel Functions, adding Railway (Node.js) and Railway (Bun) to the mix. Results were mixed: Railway (Bun) won the SvelteKit benchmark by ~3×, Railway (Node) won Vanilla JS by ~3.8×, Cloudflare won React SSR and Math, and Vercel won Next.js. Key findings include: Bun generally outperforms Node on Railway except for math-heavy workloads; scaling to more replicas improves Railway's standing; Next.js is limited to a single CPU core outside Vercel; container runtimes add ~40% performance overhead vs native; and Cloudflare's V8 math flag gives it an edge on trigonometric workloads. Railway is migrating to its own baremetal infrastructure and developing a new VM runtime to close performance gaps.

12m read timeFrom blog.railway.com
Post cover image
Table of contents
Table of ContentsBenchmark overviewAdding Railway to the mixRunning the benchmarkScaling and deployment models: Serverless vs. long-running serversOverview of the benchmark resultsFinal thoughts

Sort: