From 3af7c0599fdfd841b6b47113ef3db1e728a7ecec Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 25 Nov 2026 23:06:20 +0000 Subject: [PATCH 1/2] docs: add some more nuxt impacts --- packages/docs/src/content/docs/impact.md | 74 ++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/packages/docs/src/content/docs/impact.md b/packages/docs/src/content/docs/impact.md index 0b06088d2..ed54b6633 100644 --- a/packages/docs/src/content/docs/impact.md +++ b/packages/docs/src/content/docs/impact.md @@ -29,6 +29,80 @@ came out of the project or were influenced by its output. server-rendered links roughly 1.5-2.2x faster. Proposed upstream to Vue Router. +- [perf(nuxt): resolve ssr nuxt link route lazily from a prototype getter](https://github.com/nuxt/nuxt/pull/36891) + builds the slot props of each server-rendered `` from a class + with a prototype getter rather than an object literal with its own + `get route()` accessor, which V8 creates about 20x more slowly. That takes + about 12% off rendering the 1,000-link table. Merged into Nuxt and released + in `4.7.0`. + +- [perf(nuxt): render nuxt links without a component instance](https://github.com/nuxt/nuxt/pull/36904) + compiles a template `` with a static internal `to` into a plain + anchor in its parent's render function on the client, with shared click and + prefetch handlers, so each link no longer needs its own component + instance. On the client-rendered 1,000-link table this took about 14ms off + first contentful paint in local runs. Merged into Nuxt and released in + `4.7.0`. + +- [perf(nuxt): preload matched page chunks for client-only responses](https://github.com/nuxt/nuxt/pull/36901) + adds `modulepreload` links for the matched page's chunks to the HTML shell + of client-only (`ssr: false`) routes, so the browser no longer waits for + the entry to run before it discovers the page chunk. Locally that was + worth about 25ms of first contentful paint on the client-rendered test. + Merged into Nuxt and released in `4.7.0`. + +- [perf(nuxt): transcode large non-latin1 html chunks to utf-8 with icu](https://github.com/nuxt/nuxt/pull/36892) + is the same `→` problem as the Solid compiler fix below, solved at the + other end: when a rendered chunk contains a character outside Latin1, + Nuxt encodes it with `buffer.transcode` rather than V8's UTF-8 writer, + which is about 40x slower for two-byte strings on Node 24. That makes the + 1,000-row tables 10-12% faster to render on Node 22 and 24. Node 26.8 fixed + the slow path in V8, so it's skipped there. Merged into Nuxt and released + in `4.7.0`. + +- [perf(nuxt): reduce per-request server rendering overhead](https://github.com/nuxt/nuxt/pull/36890) + is five small server rendering changes found by profiling the project's + SSR routes, including skipping payload reducers for primitive values + (similar to [sveltejs/devalue#231](https://github.com/sveltejs/devalue/pull/231), + proposed upstream). Between them they take 5-10% off each route. Merged + into Nuxt and released in `4.7.0`. + +- A handful of smaller changes trim what the initial-load page downloads: + no prefetch of the built-in error page chunks from the entry + ([#36898](https://github.com/nuxt/nuxt/pull/36898), 4 requests and 5.5 kB + on every page load), no refetch of CSS already inlined into the response + ([#36900](https://github.com/nuxt/nuxt/pull/36900)), no idle app manifest + fetch ([#36903](https://github.com/nuxt/nuxt/pull/36903)), no + `modulepreload` for the entry script itself + ([#36896](https://github.com/nuxt/nuxt/pull/36896)), no empty containers in + the inline payload ([#36897](https://github.com/nuxt/nuxt/pull/36897)), and + no `ofetch` or unhead in the client bundle when nothing on the client uses + them ([#35790](https://github.com/nuxt/nuxt/pull/35790), + [#37035](https://github.com/nuxt/nuxt/pull/37035), + [#37243](https://github.com/nuxt/nuxt/pull/37243)). All merged into Nuxt + and released in `4.7.0`. + +On the project's CI runner, Nuxt `4.7.0` measured against `4.6.4` a day +apart: + +| | `4.6.4` | `4.7.0` | +| --- | ---: | ---: | +| SSR load, 1,000 ``s, 25 connections | 134 req/s | 547 req/s | +| SSR load, 1,000 plain links, 25 connections | 321 req/s | 701 req/s | +| SSR request throughput | 311 ops/s | 413 ops/s | +| SSR first contentful paint | 85ms | 75ms | +| CSR first contentful paint | 225ms | 106ms | +| initial load | 80 kB, 14 requests | 61 kB, 3 requests | + +Not all of that comes from the changes above. Several others in `4.7.0` +came from profiling a Nuxt UI site at the same time, such as encoding +rendered HTML chunk by chunk +([#36719](https://github.com/nuxt/nuxt/pull/36719)), skipping route +resolution for links that can't be active +([#36759](https://github.com/nuxt/nuxt/pull/36759)) and grouping the +modules the entry always needs into one chunk +([#36862](https://github.com/nuxt/nuxt/pull/36862)). + ## Next.js - [[Server Components] Walk parsed JSON instead of using reviver for parsing RSC payload](https://github.com/react/react/pull/35776) From e9f845b4b1e92f0e78fcb9d5dfc0b4ebc2d7acc4 Mon Sep 17 00:00:00 2001 From: Alexander Karan <47707063+AlexanderKaran@users.noreply.github.com> Date: Thu, 26 Nov 2026 08:39:50 +0800 Subject: [PATCH 2/2] Formatting --- packages/docs/src/content/docs/impact.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/docs/src/content/docs/impact.md b/packages/docs/src/content/docs/impact.md index ed54b6633..79d3b4ead 100644 --- a/packages/docs/src/content/docs/impact.md +++ b/packages/docs/src/content/docs/impact.md @@ -85,14 +85,14 @@ came out of the project or were influenced by its output. On the project's CI runner, Nuxt `4.7.0` measured against `4.6.4` a day apart: -| | `4.6.4` | `4.7.0` | -| --- | ---: | ---: | -| SSR load, 1,000 ``s, 25 connections | 134 req/s | 547 req/s | -| SSR load, 1,000 plain links, 25 connections | 321 req/s | 701 req/s | -| SSR request throughput | 311 ops/s | 413 ops/s | -| SSR first contentful paint | 85ms | 75ms | -| CSR first contentful paint | 225ms | 106ms | -| initial load | 80 kB, 14 requests | 61 kB, 3 requests | +| | `4.6.4` | `4.7.0` | +| --------------------------------------------- | -----------------: | ----------------: | +| SSR load, 1,000 ``s, 25 connections | 134 req/s | 547 req/s | +| SSR load, 1,000 plain links, 25 connections | 321 req/s | 701 req/s | +| SSR request throughput | 311 ops/s | 413 ops/s | +| SSR first contentful paint | 85ms | 75ms | +| CSR first contentful paint | 225ms | 106ms | +| initial load | 80 kB, 14 requests | 61 kB, 3 requests | Not all of that comes from the changes above. Several others in `4.7.0` came from profiling a Nuxt UI site at the same time, such as encoding