Skip to content

perf(ci): parallelize Next.js E2E Webpack builds - #26966

Draft
nicohrubec wants to merge 2 commits into
developfrom
feat/benchmark-nextjs-webpack-parallel
Draft

nicohrubec wants to merge 2 commits into
developfrom
feat/benchmark-nextjs-webpack-parallel

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What

Benchmark Webpack production builds across 11 Next.js E2E apps with build workers, parallel server compilation and parallel server tracing. Print successful Webpack build output to identify the expensive phases.

Why

The current app build takes about 55s, plus 13s installing dependencies, while tests take 34s. Build parallelism may use the four-core runners better without reducing test coverage. This experiment uses the same develop baseline as #26964 and leaves that PR unchanged.

Next.js 16 Webpack production Before Parallel build
next build --webpack wall time ~55s ~29s
App installation + build step 1:09 0:39
Test step 0:34 0:30
Whole job 2:44 2:02

Both pinned and latest Webpack production jobs passed. The pinned variant retained all 85 active tests without retries. Installation and SDK preparation were also faster in this run, so the full 42s job reduction cannot be attributed solely to build parallelism. These are single-run measurements; the three build options are benchmarked together.

Before · Parallel build.

Expanded to Next.js 14, Supabase, 15, basepath, intl, 16, cache components, OTLP, source maps, standalone and tunnel apps. The expanded run passed all required checks. A targeted cache-components repeat also passed. No tests or dependencies were changed.

Wider rollout

App installation + build step, compared with the same-base full run before and expanded run:

Variant Before Parallel build
nextjs-15 (release not injected, production) 45s 28s
nextjs-14 (production) 47s 42s
nextjs-15 (production) 41s 36s
nextjs-15-intl 24s 32s
nextjs-15-basepath 28s 21s
nextjs-16-cacheComponents (webpack, static trace lifecycle) 42s 34s
nextjs-16-otlp (webpack) 27s 33s
nextjs-16-cacheComponents (webpack, production) 43s 42s (89s first attempt)
nextjs-16 (webpack, production) 48s 41s
nextjs-16-sourcemaps (delete, webpack) 37s 34s
nextjs-16-standalone (webpack) 43s 33s
nextjs-16 (latest, webpack, production) 57s 58s
nextjs-16-sourcemaps (delete, webpack, bun) 40s 31s
nextjs-16-sourcemaps (manual upload, webpack) 38s 25s
nextjs-16-sourcemaps (delete option, webpack) 31s 28s
nextjs-16-tunnel (tunnelRoute: true, webpack) 39s 35s
nextjs-16-tunnel (managed, webpack, edge middleware) 40s 37s

Single-run figures include dependency installation and runner variability; they are not isolated compiler timings. The cache-components production outlier spent about 65s in the build itself; a targeted repeat reduced the install/build step from 89s to 42s, versus 43s before. Smaller regressions in intl and OTLP remain inconclusive. No framework or dependency versions were changed. SDK builds already run four Nx tasks concurrently; no worker-count changes were made there. The Nuxt 4.6 schema does not expose the newer parallel-build switch, so no Nuxt builder migration was included.

Co-Authored-By: OpenAI Codex <codex@openai.com>
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 8df43ef (PR test merge using develop at 6dab20b)

Against: 6dab20b (develop) · base run #68250

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.55 kB - -
@sentry/browser - with treeshaking flags 28.74 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.61 kB - -
@sentry/browser (incl. Tracing) 53.69 kB - -
@sentry/browser (incl. Tracing Core) 40.62 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.69 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.58 kB - -
@sentry/browser (incl. Tracing, Replay) 93.61 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.42 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.47 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.42 kB - -
@sentry/browser (incl. Feedback) 48.41 kB - -
@sentry/browser (incl. sendFeedback) 31.12 kB - -
@sentry/browser (incl. FeedbackAsync) 36.18 kB - -
@sentry/browser (incl. Metrics) 31.87 kB - -
@sentry/browser (incl. Logs) 32.15 kB - -
@sentry/browser (incl. Metrics & Logs) 32.81 kB - -
@sentry/react 32.58 kB - -
@sentry/react (incl. Tracing) 56.43 kB - -
@sentry/vue 38.76 kB - -
@sentry/vue (incl. Tracing) 56.7 kB - -
@sentry/svelte 30.58 kB - -
@sentry/effect (client) 42.23 kB - -
@sentry/effect (client, incl. Tracing) 54.97 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.32 kB - -
@sentry/remix (Remix 3 client bundle) 59.43 kB - -
CDN Bundle 32.39 kB - -
CDN Bundle (incl. Tracing) 54.07 kB - -
CDN Bundle (incl. Logs, Metrics) 35.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.53 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.1 kB - -
CDN Bundle (incl. Tracing, Replay) 91.86 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.8 kB - -
CDN Bundle - uncompressed 94.58 kB - -
CDN Bundle (incl. Tracing) - uncompressed 159.89 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 102.92 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.52 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.32 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.33 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 287.96 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.26 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 299.88 kB - -
@sentry/nextjs (client) 60.11 kB - -
@sentry/sveltekit (client) 55.04 kB - -
@sentry/core/server 45.84 kB - -
@sentry/core/browser 14.49 kB - -
@sentry/node 157.64 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.54 kB - -
@sentry/node - without tracing 89.91 kB - -
@sentry/node - without channel injection 146.63 kB - -
@sentry/aws-serverless 100.56 kB -0.01% -3 B 🔽
@sentry/cloudflare (withSentry) - minified 211.97 kB - -
@sentry/cloudflare (withSentry) 491.78 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 214.92 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 237.19 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 6 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details

Co-Authored-By: OpenAI Codex <codex@openai.com>
@nicohrubec nicohrubec changed the title perf(ci): benchmark parallel Next.js Webpack builds perf(ci): parallelize Next.js E2E Webpack builds Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant