Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 9 min read Research mediumAdept

Which serverless edge platform has the fastest git deployments?

A push-to-live benchmark of git deployments across edge platforms, timed with a Deno script that pushes to main and polls the site until a marker string appears. Cloudflare Workers (~60s, mostly edge propagation after a 22s GitHub Action), Fly.io (~57s, mostly flyctl Docker image builds) and a Next.js site on Vercel (~54s, mostly build) all land near a minute. A later update deploying only a Vercel edge function brought the median to about 12.6s. Deno Deploy went live in 3.5s, which the vendor attributes to uploading code directly and running it in V8 isolates instead of provisioning VMs or containers. AWS Lambda@Edge was not measured because wiring CloudFront triggers via GitHub Actions proved difficult.

Related posts

  • Static Files on Deno Deploy

    Deno mediumAdept

    Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch. Because user code still controls responses, static assets can be auth-gated, given CORS headers, rewritten dynamically or streamed, and std's serveFile or oak handle Content-Type and Range requests. Files come from a linked GitHub repo automatically, or from build output uploaded with deployctl or a GitHub Action using OIDC without secrets. A Lume static site example deploys in about 25 seconds from push, 15 of which is runner startup; automatic mode deploys take 1-10s.

  • Edge Functions are now available in Supabase

    Supabase easyNovice

    Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers. Supabase chose functions-as-a-service over containers for simpler developer experience and faster start-ups, and global deployment over a single region, with Postgres-colocated Database Functions covering DB-heavy work. Requests pass through a Relay gateway that verifies JWTs, rate-limits and logs, then maps function metadata to a Deno Deploy deployment ID. Cold starts fetch code and secrets from Supabase, and logs flow through Logflare into the dashboard. Functions are POST-only, and static hosting is ruled out after phishing abuse on Supabase Storage got the domain denylisted.

  • Server rendering benchmarks: Railway vs Cloudflare vs Vercel

    Railway mediumAdept

    Running Theo Browne's SSR benchmark suite (400 requests, 20 concurrent connections, from an EC2 client in us-west-1) against Railway with 10 replicas, Cloudflare Workers and Vercel Functions gave mixed results. Railway won SvelteKit and Vanilla JS by roughly 3-4×, React SSR was close, and Vercel and Cloudflare led on Next.js and the math workload. Bun beat Node on Railway for most tests but lost on math. Next.js is limited to a single CPU core, so it only scales horizontally. Node also builds V8 without a faster trig-function path that Workers enables, and container runtimes cost about 40% versus native, a gap Railway expects a new VM runtime to close.

  • Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes

    Deno mediumAdept

    Across Express, Fastify and Hono URL-shortener apps deployed to AWS Lambda via Docker and the Lambda Web Adapter, Deno 1.45 showed lower cold-start Init Duration than Node 22 and Bun 1.1, with the Lambda-managed Node runtime included as a reference. Cold starts were forced by changing an environment variable between invocations and measured from CloudWatch. Hyperfine runs on a GCP VM confirmed the gap: Deno started 1.33–1.77x faster, with Hono at about 58 ms versus roughly 100 ms for Node and Bun. The key optimization is to prepopulate Deno's caches (npm/JSR modules, module graph, transpiled TypeScript, V8 code cache) during Docker image build by running the app once with a timeout. Graviton was slower than x86_64 for all runtimes, and the benchmark comes from Deno's own team.

  • Build Your Own Cloud IDE with the Subhosting API

    Deno mediumAdept

    A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds. The walkthrough builds a Hono server with routes to list and create projects and deployments, plus a small TypeScript client that wraps the Subhosting REST endpoints with bearer-token auth. It also covers a server-rendered JSX page and an Ace Editor frontend that polls deployment status every five seconds. The deployment payload is explained in detail: entryPointUrl must map to a key in an assets map of files, and envVars inject credentials into the deployed code.

The quest for software engineering knowledge.

Look:
Layout: