This is the sixth post in the series after Next.js 16, 16.1, 16.2, 16.3 and 16.4. Vercel’s Next.js 16.5 release post came out on December 2, 2026, and it’s the source for everything below. This is the plain-English version, with our own numbers next to theirs.
16.5 is a speed release. Vercel’s headline is that their own dashboard app now compiles about four times faster from a cold start. We upgraded this site the same afternoon and timed everything we could. On our 18-core machine, our cold production build went from a median of 31.3 seconds to 20.7 seconds, and most of that came from generating static pages, not from the compile step Vercel’s chart is about. On Vercel’s 2-core Basic build machine it went from 108.0 to 81.1 seconds, though those builds varied a lot.
What’s new, in plain English
Eight things in the release post. We measured three of them on our site: the faster builds, the new bundle report and the cache cleanup. We didn’t set up a fourth, and four don’t apply to a site like ours. For each one: what it is, what it means if you run a Next.js site, and what happened when we tried it.
Turbopack builds are faster and lighter
Sources: release post.
Turbopack is the part of Next.js that turns your code into the files a browser downloads. Think of it as the kitchen that cooks your site from its recipe. In 16.5 it uses all of your machine’s CPU cores more evenly, copes better with apps that have thousands of routes, and needs less memory and disk space while it works.
Vercel tested on their own dashboard, vercel.com, on a 30-core build machine with 60GB of memory, the same size as Vercel’s Turbo build machine. Their numbers, 16.4.6 against 16.5.0:
| Vercel’s dashboard | 16.4.6 | 16.5.0 |
|---|---|---|
| Compile, cold | 183s | 44s (~4.2x faster) |
| Compile, warm | 12.0s | 4.4s (~2.7x faster) |
| Full production build, cold | 325s | 159s (~2.0x faster) |
| Full production build, warm | 134s | 107s (~1.3x faster) |
| Peak memory while compiling, cold | 24.1GB | 15.0GB (38% less) |
| Cache on disk after a cold build | 2.96GB | 2.56GB (14% smaller) |
Across five other Vercel apps, including nextjs.org, they report peak memory down 6% to 27% and disk caches up to 23% smaller.
What it means for you: if your app is big, builds get quicker and your build machine needs less memory. If your app is small, the absolute saving is a few seconds, because there wasn’t much to save. Our site sits in the middle. Our cold builds got about a third faster, and the compile step Vercel charted accounts for less than 2 seconds of that. The full numbers are in the benchmarks section below.
Cross-deployment caching for 'use cache: remote'
Sources: release post, docs: 'use cache: remote'.
Next.js can remember the result of a slow function (a database query, an API call) so the next visitor gets it instantly. That memory used to be wiped every time you deployed, like a shop that throws out its whole stockroom every time it repaints the sign. In 16.5, functions marked 'use cache: remote' keep their cached results across deployments, as long as the function, the code it imports and the environment values it reads haven’t changed.
If Next.js can’t work out what a function depends on (the release post’s example is reading process.env[variable] with a variable name), it falls back to the old per-deployment behavior, so you never get a stale result from a function whose code changed.
What it means for you: if you deploy often and run expensive cached queries, the first visitors after each deploy stop paying for a cold cache. For us: doesn’t apply. This site doesn’t use 'use cache' anywhere. Every page is built ahead of time from MDX files, so there’s no request-time data to cache. We wrote about the Cache Components adoption we parked in the last post; that PR is still parked.
Bundle reports come straight out of the build
Sources: release post, docs: next build options.
A bundle report is a map of every file your site sends to the browser and what’s inside it, so you can see which library made your JavaScript huge. Until now you made one with next analyze, which compiles your whole app a second time just to draw the map. 16.5 adds a flag to the normal build, so the map comes from the same compile that produces your deployed files:
What it means for you: one compile instead of two, and the report matches what you actually shipped, source maps included. For us: a build with the report took a median of 26.3 seconds (26.1-33.2s over 3 runs), against 37.7 seconds (31.6-53.0s) for a build followed by a separate next analyze --output on the same version. That’s the second compile you no longer pay for.
The Turbopack cache cleans up after itself
Sources: release post, docs: turbopackGc.
When you run next dev, Turbopack saves its work to disk so the next start is fast. The catch was that the saved work only ever grew: every edit, every deleted route, every old version of a file stayed in there. 16.4 added an experimental garbage collector (turbopackGc) that throws out the stale bits. In 16.5 it’s on by default for everyone, so the cache grows with the size of your app rather than with the number of edits you’ve made. It’s a cleaner who now comes round on their own instead of only when you remember to book them.
What it means for you: a project you’ve worked on for months stops carrying cache entries for code that no longer exists, so you have less reason to delete .next by hand. For us: no difference we could measure. We ran three next dev sessions back to back on each version, editing the site footer 60 times in each, and measured the .next folder after every session. 16.4.6 went from 344MB to 349MB to 353MB. 16.5.0 went from 356MB to 362MB to 367MB. Both grew about 5MB per session of 60 edits, and three sessions is nowhere near the months of edits the collector is meant for. A test this short can’t show the difference, so we’re not claiming one.
Per-link navigation prefetching
Sources: release post, docs: <Link> prefetch.
Prefetching is Next.js loading the next page in the background while a link is on screen, so the click feels instant. 16.4 gave you await navigation() to keep heavy parts of a page out of that background load. 16.5 adds the opposite switch, for the one link you’re sure people will click:
That link prefetches all the cached content on the target page, including the parts you held back with navigation(). Vercel’s example is an inbox, where the “Next unread” button should load the whole thread early and the other links shouldn’t. The docs add a catch: the held-back parts only exist with Partial Prefetching on. Without it, "navigation" behaves like a plain prefetch={true}.
What it means for you: finer control over how much a page loads before anyone clicks. For us: doesn’t apply. We don’t use navigation(), so there’s nothing held back for this to undo. Our pages are static files that already prefetch whole.
Upgrades from CI with next upgrade --ci
Sources: release post, docs: scheduled upgrades on GitHub.
16.4 gave us next upgrade --agent, which hands a version bump to a coding agent. 16.5 puts that on a schedule. npx next@canary upgrade --ci asks a few questions (security fixes only or every stable release, Codex or Claude Code, which API key) and opens a pull request that adds a GitHub Actions workflow. Once that’s merged, the workflow checks daily for a new release and has the agent upgrade your app and open a PR.
What it means for you: if nobody on your team owns dependency upgrades, a workflow can do the bump for you. It needs an OpenAI, Anthropic or AI Gateway key, or a Claude subscription, so the agent runs aren’t free. For us: didn’t set it up. Dependabot already opens our dependency PRs every day, and this post is the upgrade. Two bots opening PRs against the same package.json is one more than we need.
Safe mode for image optimization (experimental)
Sources: release post.
next/image resizes and converts images on your server. An image is a file someone else made, and image decoders have a long history of security bugs. Safe mode swaps in decoders written in memory-safe code, runs them in a separate process and, on Linux, locks that process down with seccomp, so a booby-trapped image can’t reach the rest of your server. Turn it on with experimental.imgOptSafeMode: true.
What it means for you: worth turning on if you self-host and optimize images that users upload. For us: doesn’t apply. We’re on Vercel, which runs next/image through its own image optimization pipeline, and the release post says the option “may be ignored in production” on platforms like that.
Go route handlers (experimental)
Sources: release post, docs: route.go.
You can now drop a route.go file into your app folder, and Turbopack compiles it into a native program served at that URL. The rest of your app stays in TypeScript. It needs Go 1.24 or later and experimental.goRoutes: true.
What it means for you: if you have one endpoint that’s CPU-heavy, you can write it in Go without running a second service. For us: doesn’t apply. We don’t have any Go, and our API routes spend their time waiting on other people’s APIs, not on CPU.
Three things the release post doesn’t mention
These are in the docs that ship inside the next package, in the version history tables, and on nextjs.org.
Minify before chunking is on by default. Turbopack now minifies each module before it decides how to split your JavaScript into files, and measures chunk sizes in minified bytes. You’ll see slightly different chunk files. Our build has two fewer JavaScript files on 16.5 (205 to 203), though we can’t tell you that this is the reason.
next dev now rewrites AGENTS.md on every start. Next.js keeps a managed block of instructions for coding agents in AGENTS.md. In 16.4 that only happened when it detected an agent; in 16.5 it syncs on every start, and adds a second block for upgrade reminders. Your first next dev after upgrading can leave a modified AGENTS.md in your git tree; ours did. Commit the change, or turn the blocks off with agentRules: false and experimental.agentUpgrade: false. We did one of each: committed the block in this site, and turned both off in our services app, which keeps its agent instructions elsewhere.
<Link> accepts new prefetch values. Alongside "navigation", 16.5 adds "shell" and "prefetch", but the docs say those two are new names for the default and for prefetch={true}, so only "navigation" does anything new. router.prefetch() gets a matching kind option.
Our upgrade, step by step
We bumped this site from 16.4.6 to 16.5.0 a few hours after the release post went up. The site is a pnpm monorepo with two Next.js apps (this site and our internal services app), both pinned to exact versions.
- Changed
"next": "16.4.6"to"16.5.0"in both apps’package.json. - Moved our pnpm override floor, the line that stops any dependency dragging in an older copy of Next.js, from
"next@<16.4.6": 16.4.6to"next@<16.5.0": 16.5.0. - Ran
pnpm install. 42.6 seconds.
No codemods: the latest upgrade guide is for 16.0 and lists none for 16.5. After the duplicate-Next problem in the last three releases, the lockfile came out with one next in it on the first install. We also raised our sharp range and renamed one image prop in seven places, both covered below.
Four things we tripped over, none of them bugs:
pnpm wrote itself some exceptions. pnpm 11 and later won’t install a package version that’s less than a day old unless it’s on an exception list, which is a good guard against a hijacked release. Next.js 16.5.0 was a few hours old, so pnpm added ten entries to the minimumReleaseAgeExclude list in pnpm-workspace.yaml: one for next and nine for its @next/* packages, eight of which are native compiler binaries. It did that without asking: pnpm only prompts first if you set minimumReleaseAgeStrict: true. Upgrading on release day means skipping that guard. We’re keeping the exceptions until the 24 hours pass, then deleting them.
The AGENTS.md change above. Our first next dev on 16.5 appended a new nextjs-agent-upgrade block to apps/web/AGENTS.md, a short paragraph telling coding agents to follow Next.js upgrade reminders. The same runs on 16.4.6 left the file alone. We committed the block with the bump, so nobody else’s first next dev leaves them a modified file.
Two copies of sharp. Next.js 16.5 asks for sharp 0.35.6 or later for image processing, and both our apps asked for ^0.35.5, so pnpm kept 0.35.5 for our code and added 0.35.6 for Next.js. Raising our own range to ^0.35.6 put the apps and Next.js on the same copy. A 3D tool in our dev dependencies still resolves to 0.35.5 in the lockfile, and that never ships.
Seven priority props failed our lint. pnpm verify failed on the bump with seven no-deprecated errors, one for every <Image priority> in the site. priority has been deprecated in favor of preload since Next.js 16.0, but in 16.4.6 the Image component’s published type copied its props in without the deprecation note, so our type-aware linter never saw it. 16.5 points the type at the documented props, and the note came with it. The fix is renaming the prop: inside Next.js, priority and preload are the same code path, so the pages render the same.
The crash-test-dummy note, as ever: this goes to production on our site first. Client projects get it at their next monthly bump, after it’s had a few weeks on ours.
The benchmarks
Everything below was measured on this site’s real codebase: 1,659 static pages, React Compiler on, Turbopack for both dev and build. One machine, an Apple M5 Pro with 18 cores and 64GB of memory, on mains power. Every series was run at least three times, alternating versions so that anything else happening on the machine hit both as evenly as we could manage. We report the median and the range. Memory is in gigabytes; disk sizes are as macOS’s du reports them, in binary megabytes.
A caveat we can’t get around: this is a shared work machine, and the antivirus scanner spent most of the session using four or five cores to scan every file the builds wrote. The load average sat around 30 for most runs. That’s why some ranges are wide, and why we ran the default build eight times per version instead of three. Five runs, four on 16.4.6 and one on 16.5.0, overlapped with another heavy job on the same machine (a full test run for a different change), which made them slower, so the headline numbers below leave those out. With them in, the 16.4.6 medians are worse: 35.9 seconds cold and 32.4 warm.
Production build time
Our setup turns off Turbopack’s persistent build cache (turbopackFileSystemCacheForBuild: false). Two previews shipped CSS with missing rules and we turned it off to rule the cache out, though a later build dropped a rule with it off too. So “warm” for us means the .next folder from the last build is still there, not that Turbopack is reusing its cache. We ran a second series with the cache switched back on, which is the Next.js default, because that’s the setup Vercel’s warm numbers come from.
next build, our config | 16.4.6 median (range) | 16.5.0 median (range) |
|---|---|---|
Cold, .next deleted | 31.3s (27.0-40.2s), 6 runs | 20.7s (16.0-41.4s), 8 runs |
Warm, .next kept | 30.4s (27.4-39.4s), 6 runs | 22.4s (21.1-25.6s), 7 runs |
next build, persistent cache on (3 runs each) | 16.4.6 median (range) | 16.5.0 median (range) |
|---|---|---|
| Cold | 28.9s (27.0-30.0s) | 17.9s (17.3-30.8s) |
| Warm | 25.4s (24.5-26.0s) | 19.3s (18.9-21.0s) |
| Warm, compile step only | 3.1s (2.0-3.1s) | 3.1s (2.7-3.4s) |
| Cache folder on disk, cold | 230MB | 187MB |
next build on this site, 16.4.6 vs 16.5.0 (seconds, median)#
- 16.4.6 (s)
- 16.5.0 (s)
Our measurements: apps/web, Apple M5 Pro, December 2, 2026. Our config: 6 to 8 runs per bar, excluding runs that overlapped another heavy job. Cache on: 3 runs per bar.
Bar chart of 16.4.6 (s), 16.5.0 (s) across 4 build values: 16.4.6 (s) is highest for Cold (31.3) and lowest for Warm, cache on (25.4); 16.5.0 (s) is highest for Warm (22.4) and lowest for Cold, cache on (17.9).
| Build | 16.4.6 (s) | 16.5.0 (s) | Change |
|---|---|---|---|
| Cold | 31.3 | 20.7 | −34% |
| Warm | 30.4 | 22.4 | −26% |
| Cold, cache on | 28.9 | 17.9 | −38% |
| Warm, cache on | 25.4 | 19.3 | −24% |
That’s 34% off a cold build and 26% off a warm one on our config, and 38% and 24% with the cache on. The cache folder came out 19% smaller, a bit better than Vercel’s 14%.
One number didn’t move. With the cache on, the warm compile step took 3.1 seconds on both versions. That’s the step where Vercel measured 2.7 times faster, and on our site it was already too short to get shorter.
Where the time went
Vercel’s chart is about the compile step. On our site, compile isn’t where most of the time goes. A next build prints how long each stage took, so we pulled those numbers out of the same cold build logs:
| Cold build stage | 16.4.6 median (6 runs) | 16.5.0 median (8 runs) |
|---|---|---|
| Compile | 8.6s | 6.8s |
| TypeScript check | 4.7s | 4.2s |
| Generating 1,659 static pages | 15.6s | 6.9s |
Cold next build by stage (seconds, median of 6 and 8 runs)#
- 16.4.6 (s)
- 16.5.0 (s)
Our measurements: stage times printed by next build, apps/web, December 2, 2026, excluding runs that overlapped another heavy job
Bar chart of 16.4.6 (s), 16.5.0 (s) across 3 stage values: 16.4.6 (s) is highest for Static pages (15.6) and lowest for TypeScript (4.7); 16.5.0 (s) is highest for Static pages (6.9) and lowest for TypeScript (4.2).
| Stage | 16.4.6 (s) | 16.5.0 (s) | Change |
|---|---|---|---|
| Compile | 8.6 | 6.8 | −21% |
| TypeScript | 4.7 | 4.2 | −11% |
| Static pages | 15.6 | 6.9 | −56% |
Compile got 1.8 seconds faster. Static page generation got 8.7 seconds faster, and its range shrank from 9.8-18.4 seconds to 6.0-8.6. The release post doesn’t mention page generation at all; it talks about Turbopack scaling better to thousands of routes, which may be related, but we haven’t proven it. What we can say is that on a site made mostly of pre-built pages, this stage is where 16.5 saved us time. If your app is a dashboard with a handful of routes, this stage barely exists for you and the compile number is the one to watch.
Memory
We measured peak memory for the biggest single process in each build, and the answer depends on the cache setting. With the persistent cache on, which is the default, a cold build peaked at 2.63GB on 16.4.6 and 2.26GB on 16.5.0 (3 runs each, ranges 2.58-2.74GB and 2.25-2.36GB), about 14% less. Warm builds with the cache on were 2.22GB and 2.21GB, the same. With the cache off, as we run it, it was 2.33GB on both versions over 8 runs each. Vercel’s 38% is on an app whose compile peaked at 24.1GB, so expect the saving to be bigger the bigger your app is.
What we ship to browsers
Same builds, measured on disk in .next/static:
| Production output | 16.4.6 | 16.5.0 | Change |
|---|---|---|---|
| JavaScript, all files, raw | 7,035,937 bytes | 6,974,866 bytes | -0.9% |
| JavaScript, gzipped file by file | 2,333,678 bytes | 2,324,359 bytes | -0.4% |
| JavaScript files | 205 | 203 | -2 |
| CSS | 490,138 bytes | 490,138 bytes | unchanged |
Whole .next folder after a build | 539MB | 455MB | -16% |
The JavaScript visitors download is effectively the same. Don’t upgrade for a smaller bundle. The .next folder shrinking by 84MB is nice for CI caches and nothing else.
Development server
The release post makes no dev server claims, and we didn’t find much to report. We started next dev three times per version with its cache deleted (cold) and three times with the cache from the previous run (warm), loaded three pages in Chrome in order, then edited the site footer five times and timed how long each change took to show up on screen.
next dev, median of 3 runs (range) | 16.4.6 | 16.5.0 |
|---|---|---|
| Ready, cold | 1.5s (0.4-2.3s) | 2.1s (2.1-7.3s) |
| Ready, warm | 0.4s (0.3-2.2s) | 0.3s (0.3-1.8s) |
| First load of the home page, cold | 10.8s (6.1-13.1s) | 14.7s (12.0-28.0s) |
| First load of the home page, warm | 6.5s (5.4-8.9s) | 3.0s (3.0-11.0s) |
| First load of a blog post, cold | 2.9s (2.8-3.2s) | 3.5s (3.1-5.7s) |
| First load of /services/sanity, cold | 1.8s (1.7-2.1s) | 1.6s (1.5-3.1s) |
| Fast Refresh, edits 2 to 5 (24 edits) | 120ms (110-148ms) | 118ms (107-187ms) |
| Fast Refresh, first edit after load (6 edits) | 204ms (190-248ms) | 327ms (185-482ms) |
| Dev server memory at the end of a cold run | 6.0GB (5.7-6.0GB) | 5.8GB (5.5-6.2GB) |
| Dev server memory at the end of a warm run | 5.7GB (5.3-6.9GB) | 2.9GB (2.6-5.5GB) |
Most of that is noise. The ranges overlap on every page load, and three runs on a shared machine isn’t enough to call a 4-second difference either way, so we’re not claiming 16.5 made the dev server faster or slower. Fast Refresh, the delay between saving a file and seeing the change, is the same 120ms on both.
Two numbers we’d keep an eye on. The first edit after a page loaded took longer on 16.5 than 16.4.6’s slowest first edit (248ms) in four of our six runs, up to 482ms. In the two slowest runs the second edit was slow too (187ms and 182ms), and by the third edit both versions were back at about 120ms. And two of the three warm 16.5 runs ended under 3GB of memory, against 5.3GB to 6.9GB for 16.4.6. Cold runs were the same on both, and in our cache test both versions ran under 2GB on warm starts, so memory here depends on what the session did as much as on the version. Neither is a result yet. Both are worth a look on your own app.
Real-world page speed
Build speed is for developers. To check whether visitors notice anything, we deployed both versions as Vercel previews with identical content and ran Lighthouse 13.6.0 on each page five times in mobile mode (it simulates a mid-range phone on a slow 4G connection), alternating versions.
| Lighthouse mobile, median of 5 | 16.4.6 | 16.5.0 |
|---|---|---|
| Home page: score / LCP / TBT | 98 / 1.23s / 68ms | 99 / 1.23s / 51ms |
| Blog post: score / LCP / TBT | 85 / 4.10s / 80ms | 85 / 4.05s / 76ms |
| /services/sanity: score / LCP / TBT | 95 / 1.53s / 173ms | 96 / 1.52s / 156ms |
| Layout shift (CLS), all three pages | 0 | 0 |
| JavaScript transferred, home / blog / sanity | 880 / 935 / 935KB | 884 / 925 / 938KB |
Lighthouse can’t tell the two versions apart. LCP (how long until the biggest thing on screen appears) moved by 0.05 seconds at most, and the JavaScript each page downloads moved by 10KB at most, in both directions. Blocking time came out slightly lower on 16.5 on all three pages, but one home page run on each version spiked into seconds, in a first round taken separately from the rest, so we wouldn’t read anything into a 4ms to 17ms gap.
Build time on Vercel
Vercel’s build log for each preview shows how long next build took on their build machine. Our project builds on Vercel’s Basic machine, which has 2 vCPUs (virtual CPU cores) and 8GB of memory. It’s the only option on the Hobby plan; new Pro teams get a bigger “Elastic” machine by default. We built each version three times from the same code, and every build restored Vercel’s build cache first, as normal deployments do:
| Vercel preview build, median of 3 (range) | 16.4.6 | 16.5.0 |
|---|---|---|
| Compile | 44.0s (34.3-57.0s) | 32.3s (29.7-39.6s) |
| TypeScript check | 15.1s (11.2-20.5s) | 11.2s (11.0-15.8s) |
| Generating 1,667 static pages, 1 worker | 46.0s (45.0-57.0s) | 34.9s (32.9-50.0s) |
Whole next build | 108.0s (94.5-138.9s) | 81.1s (76.8-108.9s) |
| Whole deployment, start to finish | 159.7s (133.0-192.1s) | 121.6s (121.4-165.9s) |
16.5 came out about 25% faster at the median, but read the ranges before you quote that. Our first pair of builds took 108.0 and 108.9 seconds, a dead heat. The next two pairs went 16.5’s way by 18 and 58 seconds, and the cleaner of those, where the TypeScript step took the same 11.2 seconds on both, is the 18-second (19%) one. And look at the TypeScript line: that step is the TypeScript compiler checking our code, which 16.5 didn’t change, and it still moved by a quarter between versions. So the same build on the same size of machine can take a quarter longer from one run to the next. Our reading is that 16.5 is faster on Vercel too, by an amount three builds can’t pin down.
Static pages also got faster on 1 worker in two of the three pairs, with the same caveat. Every 16.5 install took 3 to 6 seconds longer, because pnpm re-checked the changed lockfile against its supply-chain policies (4.7 to 7 seconds each time), where the 16.4.6 builds reused a check it had already passed. (Previews generate 1,667 pages; production and our local builds generate 1,659.)
Should you upgrade?
Yes, if you build on Turbopack and your build has more than a few hundred pages. On our 18-core machine the static page generation speedup was the biggest thing in this release, and it cost us an afternoon, including the gotchas above. Our cold build went from 31 seconds to 21.
Expect a smaller, noisier gain on a 2-core build machine. Our Vercel preview builds on the Basic machine took a median of 108.0 seconds on 16.4.6 and 81.1 on 16.5.0, three builds each, with ranges wide enough that we wouldn’t promise a number.
Yes, if you have a big app and your build machine is short on memory. That’s who Vercel’s 38% figure is for. On our much smaller build we saw 14% with the default cache settings.
It won’t change much if your site is small and already builds in under 30 seconds. We said the same about 16.2. The release is real, but a few seconds off a short build doesn’t change anyone’s day, and the JavaScript your visitors download is the same.
Wait a day if you can. pnpm’s release-age guard exists for a reason, and skipping it for a framework that runs native binaries on your build machine is a choice you should make on purpose. We made it because this site is where we break things first.
How to upgrade
Option 1: bump it yourself. What we did:
If you’re in a monorepo, update any override or resolution that pins next, then run pnpm why next and check there’s one version. Then three checks from our list above: raise your own sharp range to ^0.35.6 if you have one, rename priority to preload on next/image if your linter flags it, and run next dev once and check git status for AGENTS.md changes.
Option 2: let an agent do it.
Option 3: put it on a schedule. npx next@canary upgrade --ci sets up the GitHub Actions workflow that does this for every future release.
The bump goes to production on this site with this post, and the ten pnpm exceptions come out once 16.5.0 is a day old. Client projects get it at their next monthly bump, and on retainer clients’ sites that bump is part of our support retainer.







