---
title: "Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes"
description: "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."
url: "https://swe.quest/articles/benchmarking-aws-lambda-cold-starts-across-javascript-runtimes-7eb1f21624996f8c"
canonical: "https://deno.com/blog/aws-lambda-coldstart-benchmarks"
source: "Deno"
published: "2024-07-25"
difficulty: "medium"
kind: "Research"
reading_minutes: 8
tags: ["serverless","performance","runtimes","javascript"]
---

# Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-07-25, 8 min read, Research. Original: [https://deno.com/blog/aws-lambda-coldstart-benchmarks](https://deno.com/blog/aws-lambda-coldstart-benchmarks)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- AWS Lambda basics ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- Docker images ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Node.js web frameworks ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Deno, AWS Lambda, Node.js, Bun, Express, Fastify, Hono, hyperfine

## Related posts

- [Deno 1.43: Improved Language Server performance](https://swe.quest/articles/deno-1-43-improved-language-server-performance-ce41f07ca52bb667.md): Deno · 2024-05-01 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools
  Deno 1.43 cuts Language Server auto-completion latency in large codebases from 6-8 seconds to under one second and sharply reduces LSP memory use, fixing out-of-memory failures.
- [Deno 1.25 Release Notes](https://swe.quest/articles/deno-1-25-release-notes-71b49915c51a088f.md): Deno · 2022-08-25 · Medium · 6 min read · JavaScript, Runtimes & VMs, Performance engineering
  Deno 1.25 adds a \`deno init\` scaffolding command, experimental \`npm:\` specifiers that run npm packages and binaries without \`npm install\` or node\_modules, and an experimental \`Deno.serve()\` HTTP/1.1 server benchmarked at 4x Node.js and 3x the previous Deno server on hello-world requests.
- [Deno 2.9](https://swe.quest/articles/deno-2-9-919531dc50e2e28a.md): Deno · 2026-06-25 · Medium · 24 min read · JavaScript, Runtimes & VMs, Build systems, Performance engineering, Developer tools
  Deno 2.9 introduces experimental \`deno desktop\`, which compiles a web UI plus Deno logic into a single native binary using either the OS webview or bundled Chromium via CEF, with native window, tray and dock APIs and cross-compilation to installers for all five targets. \`deno install\` now seeds \`deno.lock\` from npm, pnpm, yarn and Bun lockfiles with exact versions and hashes, migrates pnpm workspace config, and shims \`node\` for tools that shell out to it.
- [How immutable scripts in Deno allow Windmill.dev (YC S22) to build production-grade ops](https://swe.quest/articles/how-immutable-scripts-in-deno-allow-windmill-dev-yc-s22-to-build-production-db6cb3961bcb6bf5.md): Deno · 2023-05-18 · Easy · 3 min read · TypeScript, Sandboxing & isolation, Multi-tenancy, Performance engineering
  Windmill.dev, an open-source platform for building internal workflows and UIs from scripts, runs TypeScript on Deno because inline, version-pinned imports make each script a self-contained, reproducible file that is hashed immutably and stored in Postgres.
- [Deno 1.20 Release Notes](https://swe.quest/articles/deno-1-20-release-notes-bca0b4c539f63df8.md): Deno · 2022-03-17 · Medium · 12 min read · JavaScript, Runtimes & VMs, Performance engineering, Developer tools, Rust
  Deno 1.20 cuts JavaScript-to-Rust op call overhead by up to ~60% by using Rust proc macros to generate a dedicated V8 binding per op, eliminating op routing and skipping deserialization of unused arguments; a 1 MB base64 roundtrip drops from ~125 ms to ~3.3 ms. The release also adds automatic gzip/brotli compression of non-streamed HTTP responses, an unstable \`deno bench\` subcommand (1000 warmup plus 1000 measured iterations by default), and a cross-platform \`deno task\` runner using a POSIX-like shell subset.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
