Skip to content

Next

Next scores 25 of 28 points. That is 13 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 12 of 14 on the 7 other features.

Rank 2 of 2325/28 points: 13/14 first-paint, 12/14 other · 89% complete
Version checked
next 16.4.6 (npm latest)
Version notes
Cache Components, inlineCss, reactCompiler, partialPrefetching, ensureStatic = 'shell'
Performance guide
How to optimize your Next.js application for production
Issues
github.com/vercel/next.js/issues

Scorecard

All 14 features, in two groups. Each row shows Next's label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to Next's entry on that feature's page.

Next's labels across 14 features

  • 1st-party11
  • Experimental1
  • Third-party2
  • Manual0
  • of 14

How it compares

On 11 of 14 features, no framework has a higher-scoring label than Next. On the other 3, at least one does.

Tested in our port

The next-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/next-books@f924ee4. How we test labels

First-paint levers

13/14
  • Experimental, like 2 of the other 22 frameworks. 8 frameworks score higher.

    Show the how-to

    Set experimental.inlineCss: true in next.config.ts (documented as experimental). One flag.

    const nextConfig: NextConfig = {
      experimental: {
        inlineCss: true,
      },
    };

    From this repo's next-books/next.config.ts (other options omitted).

  • 02Font optimization1st-party2 pts

    1st-party, like 3 of the other 22 frameworks. None scores higher.

    Show the how-to

    next/font/google self-hosts, subsets, generates the @font-face, and preloads at build time. No config beyond using it in the layout.

    import { Geist } from 'next/font/google';
    
    const geistSans = Geist({
      display: 'block',
      subsets: ['latin'],
      variable: '--font-geist-sans',
    });

    From this repo's next-books/app/layout.tsx (the Geist_Mono import and instance omitted).

  • 03Image pipeline1st-party2 pts

    1st-party, like 8 of the other 22 frameworks. None scores higher.

    Show the how-to

    Use next/image plus the built-in optimizer, priority on the first ten covers (deprecated in v16 in favour of preload), sizes, and placeholder="blur" fed by ThumbHash data URIs generated by this port's own code.

    <Image
      alt={title}
      blurDataURL={thumbhash ? createPngDataUri(thumbhash) : undefined}
      fill
      placeholder={thumbhash ? 'blur' : 'empty'}
      priority={priority}
      sizes={sizes}
      src={resolved}
    />

    From this repo's next-books/features/book/components/book-cover.tsx (some props omitted).

    Art direction with <picture>

    Manual

    Serving a different crop or format per screen size. Not scored: the label shows how much the framework does for you.

    getImageProps() returns per-breakpoint props; you hand-write the <picture> and <source> elements (hence 🔧). getImageProps() is stable (v14.1.0) and the built-in optimizer already negotiates AVIF/WebP from the Accept header; this row scores only whether the framework emits a <picture> for you.

    const {
      props: { srcSet: desktop },
    } = getImageProps({ ...common, width: 1440, height: 875, quality: 80, src: '/desktop.jpg' })
    const {
      props: { srcSet: mobile, ...rest },
    } = getImageProps({ ...common, width: 750, height: 1334, quality: 70, src: '/mobile.jpg' })
    
    return (
      <picture>
        <source media="(min-width: 1000px)" srcSet={desktop} />
        <source media="(min-width: 500px)" srcSet={mobile} />
        <img {...rest} style={{ width: '100%', height: 'auto' }} />
      </picture>
    )

    Adapted from the image docs, where common is { alt: 'Art Direction Example', sizes: '100vw' }.

  • 04Data/HTML caching1st-party2 pts

    1st-party, like 16 of the other 22 frameworks. None scores higher.

    Show the how-to

    Turn on cacheComponents: true (enabled here), then mark queries with 'use cache' and cacheLife('hours').

    const nextConfig: NextConfig = {
      cacheComponents: true,
    };
    export async function getBooksPage(query: BookQuery): Promise<BookSummary[]> {
      'use cache';
      cacheLife('hours');
      // ...query the database
    }

    From this repo's next-books/next.config.ts (other options omitted) and features/book/book-queries.ts (query body omitted).

  • 05Route prefetching1st-party2 pts

    1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    Set partialPrefetching (needs cacheComponents; 16.3+), pass prefetch={true} on high-value links (<Link>), and optionally add the FastLink mouse-down navigation.

    const nextConfig: NextConfig = {
      cacheComponents: true,
      partialPrefetching: true,
    };
    <FastLink href={href} prefetch={true}>

    Adapted from this repo's next-books/next.config.ts (other options omitted) and features/book/components/book-pagination.tsx (href expression simplified; other props omitted); FastLink is this repo's wrapper around Link.

  • 06Streaming SSR1st-party2 pts

    1st-party, like 17 of the other 22 frameworks. None scores higher.

    Show the how-to

    Streaming is built into the App Router. Add a loading.tsx file next to a page, or wrap a slow component in <Suspense>; the fallback is sent with the shell and the content follows in the same response.

    import { Suspense } from 'react'
    
    export default function Page() {
      return (
        <Suspense fallback={<p>Loading feed...</p>}>
          <PostFeed />
        </Suspense>
      )
    }

    Adapted from the Next streaming guide (imports of the page's own components omitted).

  • 1st-party, like 3 of the other 22 frameworks. None scores higher.

    Show the how-to

    Nothing to enable in the App Router. During prerendering React emits preload headers for fonts, scripts, and stylesheets, and Next adds them to the response. reactMaxHeadersLength caps their total length (default 6000) for proxies that truncate long headers. Next does not document sending a 103 itself.

    module.exports = {
      reactMaxHeadersLength: 1000,
    }

    From the reactMaxHeadersLength docs.

Other features

12/14
  • 1st-party, like 14 of the other 22 frameworks. None scores higher.

    Show the how-to

    Server Components keep a component's JavaScript out of the browser (server and client components). Every Client Component still hydrates: no hydrate-on-visible/idle/never control is documented (next/dynamic with ssr: false is client-only rendering, not deferred hydration), although React hydrates each <Suspense> boundary as its own unit and prioritizes the one being interacted with (streaming guide). Enabling cacheComponents: true (the same flag as in section 4, enabled here) renders a cached shell and fills request-time holes. That is functionally close to a server island, but the API is an uncached data boundary inside Suspense, not a named island with its own cache entry.

    Code example

    Pages and layouts are Server Components by default and send no component JavaScript. Mark only the interactive part with 'use client'. That component still hydrates, but the rest of the page stays server-only.

    // app/[id]/page.tsx (Server Component)
    import LikeButton from '@/app/ui/like-button'
    import { getPost } from '@/lib/data'
    
    export default async function Page({ params }: { params: Promise<{ id: string }> }) {
      const { id } = await params
      const post = await getPost(id)
      return (
        <main>
          <h1>{post.title}</h1>
          <LikeButton likes={post.likes} />
        </main>
      )
    }
    // app/ui/like-button.tsx
    'use client'
    
    import { useState } from 'react'
    
    export default function LikeButton({ likes }: { likes: number }) {
      // …
    }

    Source: Next.js: Server and Client Components

  • 1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    Next documents stable per-route exports: without Cache Components, dynamic and revalidate (previous-model guide); with Cache Components, ensureStatic (v16.4.0+; this port sets ensureStatic = 'shell' in the root layout) plus 'use cache' boundaries (see section 4). This port enables Cache Components, where dynamic, revalidate, fetchCache, and dynamicParams are removed (route segment config).

    Code example

    With cacheComponents: true, a layout or page exports ensureStatic to say how much of the route must be static. The port sets 'shell' on the root layout, so the App Shell is prerendered and request-specific content streams in behind <Suspense>. 'navigation' would require the whole route to be static.

    // app/layout.tsx
    import { Suspense } from 'react'
    // …
    // Every route's App Shell (sidebar, header, Suspense fallbacks) must stay static;
    // request-specific content streams in behind Suspense at prefetch/navigation time.
    export const ensureStatic = 'shell'
    
    export default function RootLayout({ children }: { children: React.ReactNode }) {
      return (
        <html lang="en">
          <body>
            <Suspense fallback={<HomeLinkFallback />}>
              <HomeLink />
            </Suspense>
            {children}
          </body>
        </html>
      )
    }

    Source: Next.js: ensureStatic

  • 1st-party, like 21 of the other 22 frameworks. None scores higher.

    Show the how-to

    The first-party React Compiler, switched on with reactCompiler: true (stable since v16.0.0; enabled in this port). Next runs it through the Babel plugin, applied only to files with JSX or hooks; Next 16.4 also has an experimental native Rust build of the compiler, experimental.turbopackRustReactCompiler: true, used alongside reactCompiler: true.

    const nextConfig: NextConfig = {
      reactCompiler: true,
    };

    From this repo's next-books/next.config.ts (other options omitted).

  • 1st-party, like 1 of the other 22 frameworks. None scores higher.

    Show the how-to

    The Turbopack bundle analyzer (guide) shipped in v16.1 as next experimental-analyze and is next analyze as of v16.4.0 (the old name remains an alias). It opens the Turbopack module graph with per-route client/server filtering; --output saves a static report and next analyze export (v16.4.0+) streams the saved data. This port runs 16.4.6 and uses next analyze. The same guide covers the @next/bundle-analyzer plugin for webpack builds.

    npx next analyze
    npx next analyze --output

    From the package bundling guide.

  • 1st-party, like 4 of the other 22 frameworks. None scores higher.

    Show the how-to

    Use next/script with beforeInteractive, afterInteractive, and lazyOnload strategies for the App Router. worker is experimental, pages/-only, and needs experimental.nextScriptWorkers. The experimental @next/third-parties (guide) wraps common embeds.

    import Script from 'next/script'
    
    export default function Page() {
      return (
        <>
          <Script src="https://example.com/script.js" strategy="lazyOnload" />
        </>
      )
    }

    From the Script docs.

  • Third-party, like 5 of the other 22 frameworks. 8 frameworks score higher.

    Show the how-to

    A stable Adapter API (adapterPath, v16.2+) with verified Vercel and Bun adapters; Cloudflare and Netlify "are working on verified adapters" (deploying). They use their own integrations today: OpenNext for Cloudflare and @netlify/plugin-nextjs for Netlify in this port. output: 'standalone' covers self-hosting, though this port does not set it.

    const nextConfig = {
      adapterPath: require.resolve('./my-adapter.js'),
    }

    Adapted from the adapterPath docs.

  • Third-party, like 2 of the other 22 frameworks. 2 frameworks score higher.

    Show the how-to

    Next has no service worker build step. Its PWA guide hand-writes public/sw.js for push notifications and names the community Serwist package for offline caching. @serwist/next wraps the Next config, compiles your worker, and injects the precache list. Next's own experimental useOffline hook retries failed navigations once the network returns; it is not a service worker.

    import withSerwistInit from "@serwist/next";
    
    const withSerwist = withSerwistInit({
      swSrc: "app/sw.ts",
      swDest: "public/sw.js",
    });
    
    export default withSerwist({
      // Your Next.js config
    });

    Adapted from the Serwist getting-started guide (revision and offline-fallback entries omitted).

1st-party scores 2 points, Experimental and Third-party 1, Manual 0. How scoring works

The port

The books demo app built with this framework, and where each branch is deployed.

App
next-books
Repository
github.com/MaxwellCohen/next-books

Latest benchmark

Mobile Lighthouse lab results from PageSpeed Insights on : the median of 3 runs per host, averaged across the hosts listed. The benchmark page explains each metric and has every other framework.

Next: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/97(good)0.910.31(needs improvement)2.63(good)17(good)0.0001.592.651553/3 Vercel, Netlify, Cloudflare
optimized/94(good)0.981.43(needs improvement)2.93(good)29(good)0.0002.902.962533/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578799(good)0.810.81(good)2.25(good)31(good)0.0001.812.262973/3 Vercel, Netlify, Cloudflare
optimized/1014578797(good)0.981.27(good)2.33(good)45(good)0.0002.512.333953/3 Vercel, Netlify, Cloudflare
  • Good
  • Needs improvement
  • Poor

FCP 1.8 s / 3 s · LCP 2.5 s / 4 s · TBT 200 ms / 600 ms · CLS 0.1 / 0.25

Per host

The medians above before averaging. Runs is how many measured runs went into each median. Host names link to the deployment.

Next: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Next
baseline/Vercel99(good)0.910.25(good)2.27(good)1(good)0.0001.072.271073/3OK
baseline/Netlify95(good)0.910.32(needs improvement)2.83(good)40(good)0.0002.122.871573/3OK
baseline/Cloudflare96(good)0.910.35(needs improvement)2.78(good)9(good)0.0001.572.822003/3OK
baseline/10145787Vercel99(good)0.760.34(good)2.18(good)25(good)0.0001.002.182003/3OK
baseline/10145787Netlify98(good)0.911.39(good)2.33(good)15(good)0.0002.812.342223/3OK
baseline/10145787Cloudflare99(good)0.760.70(good)2.25(good)52(good)0.0001.642.254693/3OK
optimized/Vercel95(good)0.921.37(needs improvement)2.78(good)9(good)0.0002.712.812173/3OK
optimized/Netlify93(good)1.091.37(needs improvement)3.08(good)66(good)0.0003.223.113893/3OK
optimized/Cloudflare94(good)0.931.54(needs improvement)2.93(good)13(good)0.0002.762.961543/3OK
optimized/10145787Vercel99(good)0.920.29(good)2.25(good)36(good)0.0001.072.251513/3OK
optimized/10145787Netlify95(good)1.082.43(good)2.48(good)37(good)0.0004.152.483653/3OK
optimized/10145787Cloudflare98(good)0.931.09(good)2.25(good)62(good)0.0002.312.256683/3OK