32.9 GB
31,201 files
Updated 2 months ago
Name
Size
benchmark-app
.env.dev212 Bytes
xet
.gitignore34 Bytes
xet
README.md897 Bytes
xet
bench.js2.76 kB
xet
chart.js2.82 kB
xet
gen-request.js1.14 kB
xet
generate-package-json.js1.44 kB
xet
package.json567 Bytes
xet
project-utils.js5.29 kB
xet
README.md

Benchmarking Next.js on production

This script allows you to measure some performance metrics of your local build of Next.js on production by uploading your current build to Vercel with an example app and running some basic benchmarks on it.

Requirements

  • the Vercel CLI

Setup

Rename the provided ./env.local file to ./env and fill in the required VERCEL_TEST_TOKEN and VERCEL_TEST_TEAM values. You can find and generate those from vercel.com.

Run pnpm install, pnpm bench and profit.

Note: if you made some changes to Next.js, make sure you compiled them by running at the root of the monorepo either pnpm dev or pnpm build --force.

How it works

  • with the Vercel CLI, we setup a project
  • we npm pack the local Next build and add it to the repo
  • we upload the repo to Vercel and let it build
  • once it builds, we get the deployment url and run some tests
Total size
32.9 GB
Files
31,201
Last updated
Sep 26
Pre-warmed CDN
US EU US EU

Contributors