Skip to content

SYSTEM Cited by 2 sources

V8 JavaScript Engine

V8 is Google's open-source JavaScript and WebAssembly engine, written in C++. Originally built for Chrome, V8 is now embedded by many other runtimes — the design was explicitly embedder-oriented from early on. Currently embedded by at least:

  • Google Chrome / Chromium
  • Node.js
  • Deno
  • Cloudflare Workers (via V8 isolates; see systems/cloudflare-workers)
  • Electron, Cypress, …

Embedder-visible knobs

V8 exposes runtime tuning knobs to the embedder. Relevant to ingested sources:

  • Young-generation size (see concepts/v8-young-generation) — the embedder can cap / size the young space manually or let V8 choose heuristically. Cloudflare Workers had historically set this manually based on 2017-era V8 guidance for 512 MB envs — they reverted that tuning in 2025-10 and got ~25 % benchmark wins plus a small memory-usage increase.
  • Compile-time flags such as V8_USE_LIBM_TRIG_FUNCTIONS that select between faster and more-portable implementations of math primitives. The flag is on by default in Cloudflare Workers (coincidentally, per the 2025-10 post) and off in Node.js — which explains the 3×-faster trig observed in the original benchmark and is the subject of Cloudflare's nodejs PR #60153.

Cross-ecosystem fix shape

Because so many runtimes embed V8, a V8-level fix compounds across all embedders. Cloudflare's 2025-10 upstream patch to JSON.parse(text, reviver) (Chromium CL 7027411) gives roughly 33 % speedup on that reviver path. It ships in V8 14.3 / Chrome 143 and benefits Node.js, Chrome, Deno, and the rest of the V8 embedder set — not just Workers. This is the load-bearing shape of patterns/upstream-the-fix.

"We've upstreamed a V8 patch that can speed up JSON.parse() with revivers by roughly 33 percent. That should be in V8 starting with version 14.3 (Chrome 143) and can help everyone using V8, not just Cloudflare: Node.js, Chrome, Deno, the entire ecosystem." (Source: sources/2025-10-14-cloudflare-unpacking-cloudflare-workers-cpu-performance-benchmarks)

Cloudflare's seat at V8

Cloudflare's Workers runtime team employs multiple core V8 contributors, which is why the "we fixed this in V8 upstream" pattern is cheap for them in engineering-effort terms.

Seen in

Last updated · 200 distilled / 1,178 read