[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

[next] make lazyDiscovery the default in withWorkflow - #1805

Merged
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true
May 22, 2026
Merged

[next] make lazyDiscovery the default in withWorkflow#1805
TooTallNate merged 6 commits into
mainfrom
nr/lazy-discovery-default-true

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Flip the default for workflows.lazyDiscovery in withWorkflow from false to true so new projects automatically get deferred workflow discovery on Next.js >= 16.2.0-canary.48
  • Users can opt back into eager discovery with workflows: { lazyDiscovery: false } on supported Next.js versions
  • Drop the now-redundant lazyDiscovery: true from the nextjs-turbopack and nextjs-webpack workbench apps
  • Reword the version-fallback warning and update the matching e2e assertion
  • Update the withWorkflow docs to reflect the new default

Companion PR

The companion change for stable (which keeps the current default but removes the workbench override so stable e2e tests still exercise eager mode) is in #1804.

Flips the default for `workflows.lazyDiscovery` from `false` to `true`
so new projects get deferred workflow discovery automatically on Next.js
versions that support deferred entries (>= 16.2.0-canary.48). Older
versions continue to fall back to eager discovery.
Users can still opt back into eager discovery explicitly by passing
`workflows: { lazyDiscovery: false }`.
Also:
- Remove the now-redundant `lazyDiscovery: true` from the Next.js
workbench apps.
- Reword the fallback warning for clarity when lazy is the default.
- Update the local-build e2e assertion to match the new warning text.
- Update the withWorkflow docs with the new default.
@vercel

vercelBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 17, 2026 21:23
CopilotAI review requested due to automatic review settings April 17, 2026 21:23
@changeset-bot

changeset-botBot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebc2d07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/nextMinor
workflowPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production122202191441
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 🪟 Windows13100131
✅ 📋 Other7410176917
Total6939010527991

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nextjs-turbopack12902
✅ nextjs-webpack12902
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13100
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.031s (-30.0% 🟢)1.005s (~)0.974s101.00x
💻 LocalNitro0.032s (-26.5% 🟢)1.005s (~)0.974s101.02x
💻 LocalNext.js (Turbopack)0.047s1.005s0.958s101.53x
🐘 PostgresNitro0.050s (-47.3% 🟢)1.012s (-3.0%)0.961s101.62x
🐘 PostgresNext.js (Turbopack)0.059s1.011s0.952s101.91x
🐘 PostgresExpress0.108s (+85.9% 🔺)1.017s (+0.6%)0.909s103.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.242s (-3.7%)2.255s (-3.4%)2.012s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.071s (-5.3% 🟢)2.005s (~)0.934s101.00x
💻 LocalExpress1.076s (-4.4%)2.005s (~)0.929s101.00x
🐘 PostgresNitro1.081s (-5.2% 🟢)2.009s (~)0.928s101.01x
💻 LocalNext.js (Turbopack)1.115s2.006s0.891s101.04x
🐘 PostgresNext.js (Turbopack)1.131s2.010s0.880s101.06x
🐘 PostgresExpress1.212s (+5.7% 🔺)2.036s (+1.3%)0.824s101.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.603s (-21.2% 🟢)3.584s (-6.4% 🟢)1.981s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.401s (-5.0%)11.020s (~)0.619s31.00x
🐘 PostgresNitro10.406s (-4.3%)11.015s (~)0.609s31.00x
💻 LocalExpress10.416s (-4.6%)11.019s (~)0.603s31.00x
💻 LocalNext.js (Turbopack)10.687s11.022s0.335s31.03x
🐘 PostgresNext.js (Turbopack)10.727s11.020s0.293s31.03x
🐘 PostgresExpress10.786s (-1.6%)11.372s (+3.2%)0.587s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.752s (-14.8% 🟢)16.208s (-16.4% 🟢)1.456s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.459s (-7.8% 🟢)14.017s (-6.7% 🟢)0.558s51.00x
💻 LocalExpress13.465s (-10.1% 🟢)14.025s (-6.7% 🟢)0.561s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
💻 LocalNext.js (Turbopack)14.086s15.030s0.944s41.05x
🐘 PostgresNext.js (Turbopack)14.125s15.020s0.895s41.05x
🐘 PostgresExpress14.203s (-2.6%)14.845s (-1.2%)0.643s51.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)23.853s (-54.6% 🟢)25.769s (-52.8% 🟢)1.916s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.883s (-28.4% 🟢)12.021s (-29.4% 🟢)0.138s81.00x
🐘 PostgresNitro11.932s (-14.6% 🟢)12.268s (-14.3% 🟢)0.336s81.00x
💻 LocalNitro11.935s (-28.9% 🟢)12.147s (-28.7% 🟢)0.211s81.00x
💻 LocalNext.js (Turbopack)13.118s13.883s0.766s71.10x
🐘 PostgresNext.js (Turbopack)13.136s14.017s0.881s71.11x
🐘 PostgresExpress13.242s (-5.5% 🟢)13.738s (-5.9% 🟢)0.496s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)35.553s (-91.0% 🟢)37.774s (-90.4% 🟢)2.221s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.149s (-9.9% 🟢)2.007s (~)0.858s151.00x
💻 LocalExpress1.150s (-22.8% 🟢)2.006s (~)0.856s151.00x
💻 LocalNitro1.151s (-29.5% 🟢)2.006s (-3.3%)0.855s151.00x
🐘 PostgresNext.js (Turbopack)1.204s2.007s0.803s151.05x
💻 LocalNext.js (Turbopack)1.290s2.006s0.716s151.12x
🐘 PostgresExpress1.472s (+16.8% 🔺)2.106s (+4.8%)0.634s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.133s (-7.8% 🟢)4.424s (-10.3% 🟢)1.291s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.006s (-33.3% 🟢)0.804s151.00x
🐘 PostgresNext.js (Turbopack)1.373s2.008s0.635s151.14x
💻 LocalNitro1.571s (-50.0% 🟢)2.006s (-48.4% 🟢)0.435s151.31x
💻 LocalExpress1.598s (-45.9% 🟢)2.005s (-41.9% 🟢)0.407s151.33x
💻 LocalNext.js (Turbopack)1.680s2.073s0.392s151.40x
🐘 PostgresExpress1.905s (-19.3% 🟢)2.548s (-15.3% 🟢)0.643s121.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.533s (-36.2% 🟢)6.164s (-30.8% 🟢)1.631s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.341s (-61.5% 🟢)2.007s (-49.9% 🟢)0.666s151.00x
🐘 PostgresExpress1.619s (-53.6% 🟢)2.501s (-37.6% 🟢)0.882s131.21x
🐘 PostgresNext.js (Turbopack)1.630s2.007s0.377s151.22x
💻 LocalExpress4.065s (-51.2% 🟢)4.581s (-49.2% 🟢)0.516s73.03x
💻 LocalNitro4.094s (-51.0% 🟢)4.870s (-46.0% 🟢)0.776s73.05x
💻 LocalNext.js (Turbopack)4.810s5.179s0.368s63.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)7.521s (-15.6% 🟢)8.871s (-19.1% 🟢)1.350s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.165s (-7.3% 🟢)2.007s (~)0.842s151.00x
💻 LocalNitro1.209s (-35.2% 🟢)2.006s (-14.3% 🟢)0.797s151.04x
🐘 PostgresNext.js (Turbopack)1.223s2.008s0.786s151.05x
💻 LocalNext.js (Turbopack)1.319s2.006s0.686s151.13x
💻 LocalExpress1.322s (-30.2% 🟢)2.006s (-15.1% 🟢)0.684s151.13x
🐘 PostgresExpress1.421s (+13.0% 🔺)2.010s (~)0.589s151.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.142s (+7.2% 🔺)4.723s (+1.7%)1.581s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.205s (-48.5% 🟢)2.007s (-33.3% 🟢)0.803s151.00x
🐘 PostgresNext.js (Turbopack)1.356s2.008s0.652s151.13x
🐘 PostgresExpress1.647s (-29.7% 🟢)2.331s (-22.6% 🟢)0.684s131.37x
💻 LocalExpress1.674s (-46.5% 🟢)2.072s (-44.9% 🟢)0.398s151.39x
💻 LocalNitro1.753s (-42.8% 🟢)2.005s (-48.4% 🟢)0.252s151.46x
💻 LocalNext.js (Turbopack)2.008s2.316s0.308s131.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.498s (+43.1% 🔺)5.919s (+30.9% 🔺)1.421s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.314s (-62.2% 🟢)2.006s (-50.0% 🟢)0.692s151.00x
🐘 PostgresExpress1.586s (-54.7% 🟢)2.338s (-41.7% 🟢)0.751s131.21x
🐘 PostgresNext.js (Turbopack)1.644s2.007s0.363s151.25x
💻 LocalExpress4.588s (-47.9% 🟢)5.179s (-44.1% 🟢)0.591s63.49x
💻 LocalNitro4.611s (-49.6% 🟢)5.178s (-48.3% 🟢)0.567s63.51x
💻 LocalNext.js (Turbopack)4.845s5.345s0.501s63.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.309s (-6.6% 🟢)8.141s (-4.7%)1.832s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.462s (-53.0% 🟢)1.003s (-6.8% 🟢)0.541s601.00x
💻 LocalNitro0.489s (-50.2% 🟢)1.021s (-6.7% 🟢)0.532s591.06x
🐘 PostgresNitro0.501s (-38.9% 🟢)1.042s (+3.5%)0.540s581.08x
🐘 PostgresNext.js (Turbopack)0.660s1.006s0.346s601.43x
🐘 PostgresExpress0.707s (-15.7% 🟢)1.135s (+10.9% 🔺)0.428s531.53x
💻 LocalNext.js (Turbopack)0.739s1.005s0.265s601.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.583s (-61.5% 🟢)7.119s (-55.7% 🟢)1.536s91.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.048s (-45.6% 🟢)1.757s (-16.4% 🟢)0.709s521.00x
💻 LocalExpress1.148s (-61.9% 🟢)2.005s (-44.1% 🟢)0.857s451.09x
💻 LocalNitro1.211s (-60.1% 🟢)2.005s (-46.6% 🟢)0.794s451.16x
🐘 PostgresExpress1.551s (-21.5% 🟢)2.113s (-6.4% 🟢)0.562s431.48x
🐘 PostgresNext.js (Turbopack)1.638s2.008s0.369s451.56x
💻 LocalNext.js (Turbopack)1.868s2.028s0.160s451.78x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)13.578s (-72.7% 🟢)15.253s (-70.5% 🟢)1.675s71.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.129s (-48.1% 🟢)2.616s (-43.2% 🟢)0.487s461.00x
💻 LocalExpress2.555s (-72.3% 🟢)3.007s (-70.0% 🟢)0.452s401.20x
💻 LocalNitro2.638s (-71.6% 🟢)3.008s (-70.0% 🟢)0.370s401.24x
🐘 PostgresExpress2.953s (-26.0% 🟢)3.436s (-21.4% 🟢)0.482s351.39x
🐘 PostgresNext.js (Turbopack)3.243s4.010s0.767s301.52x
💻 LocalNext.js (Turbopack)3.971s4.330s0.359s281.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.093s (-69.1% 🟢)34.975s (-67.9% 🟢)1.883s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.207s (-27.0% 🟢)1.023s (+1.5%)0.816s591.00x
🐘 PostgresNext.js (Turbopack)0.243s1.010s0.766s601.18x
💻 LocalExpress0.360s (-35.7% 🟢)1.004s (~)0.643s601.74x
💻 LocalNitro0.363s (-39.9% 🟢)1.004s (-1.7%)0.640s601.76x
🐘 PostgresExpress0.387s (+37.1% 🔺)1.037s (+2.9%)0.650s581.87x
💻 LocalNext.js (Turbopack)0.533s1.004s0.472s602.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.698s (+33.4% 🔺)4.021s (+6.0% 🔺)1.322s161.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.301s (-39.4% 🟢)1.006s (~)0.705s901.00x
🐘 PostgresNext.js (Turbopack)0.458s1.006s0.548s901.52x
🐘 PostgresExpress0.605s (+18.7% 🔺)1.151s (+14.4% 🔺)0.546s792.01x
💻 LocalExpress1.987s (-20.9% 🟢)2.440s (-18.9% 🟢)0.453s376.61x
💻 LocalNitro2.070s (-18.4% 🟢)2.565s (-14.8% 🟢)0.495s366.89x
💻 LocalNext.js (Turbopack)2.367s2.945s0.578s317.88x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.920s (+67.5% 🔺)7.534s (+45.1% 🔺)1.614s131.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.622s (-21.2% 🟢)1.006s (~)0.383s1201.00x
🐘 PostgresNext.js (Turbopack)0.926s1.244s0.318s971.49x
🐘 PostgresExpress0.935s (+14.1% 🔺)1.431s (+40.7% 🔺)0.497s851.50x
💻 LocalExpress9.209s (-17.7% 🟢)9.638s (-19.3% 🟢)0.430s1314.79x
💻 LocalNitro9.239s (-17.4% 🟢)9.715s (-16.7% 🟢)0.476s1314.84x
💻 LocalNext.js (Turbopack)10.682s11.299s0.617s1117.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)18.953s (+83.5% 🔺)20.574s (+67.5% 🔺)1.621s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.117s (+461.0% 🔺)2.005s (+99.6% 🔺)0.010s (-20.7% 🟢)2.017s (+98.1% 🔺)0.900s101.00x
💻 LocalNitro1.119s (+423.9% 🔺)2.005s (+99.6% 🔺)0.009s (-27.2% 🟢)2.016s (+97.9% 🔺)0.896s101.00x
🐘 PostgresNitro1.139s (+455.6% 🔺)1.996s (+99.6% 🔺)0.001s (-13.3% 🟢)2.010s (+98.8% 🔺)0.871s101.02x
💻 LocalNext.js (Turbopack)1.190s2.003s0.010s2.017s0.827s101.07x
🐘 PostgresNext.js (Turbopack)1.195s2.001s0.001s2.010s0.816s101.07x
🐘 PostgresExpress1.276s (+522.0% 🔺)1.998s (+100.1% 🔺)0.003s (+68.8% 🔺)2.022s (+99.9% 🔺)0.746s101.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.216s (-67.7% 🟢)3.418s (-60.5% 🟢)2.066s (+226.9% 🔺)5.916s (-39.6% 🟢)3.700s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.500s (+140.4% 🔺)2.003s (+99.0% 🔺)0.004s (-8.1% 🟢)2.024s (+97.9% 🔺)0.523s301.00x
💻 LocalNitro1.526s (+82.0% 🔺)2.011s (+98.7% 🔺)0.010s (+5.3% 🔺)2.023s (+81.3% 🔺)0.497s301.02x
💻 LocalExpress1.675s (+121.3% 🔺)2.009s (+95.3% 🔺)0.010s (+2.4%)2.200s (+111.6% 🔺)0.525s281.12x
💻 LocalNext.js (Turbopack)1.680s2.012s0.010s2.025s0.346s301.12x
🐘 PostgresNext.js (Turbopack)1.696s2.010s0.004s2.024s0.328s301.13x
🐘 PostgresExpress2.338s (+271.1% 🔺)2.862s (+184.4% 🔺)0.003s (-14.2% 🟢)2.907s (+184.1% 🔺)0.569s211.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.898s (-65.1% 🟢)7.336s (-59.8% 🟢)0.218s (+3.3%)7.964s (-57.9% 🟢)2.065s81.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.644s (-33.5% 🟢)1.029s (-17.5% 🟢)0.000s (-100.0% 🟢)1.052s (-16.4% 🟢)0.408s581.00x
🐘 PostgresNext.js (Turbopack)0.802s1.053s0.000s1.060s0.258s571.25x
💻 LocalExpress1.305s (+6.6% 🔺)2.014s (~)0.000s (~)2.016s (~)0.711s302.03x
🐘 PostgresExpress1.316s (+37.0% 🔺)1.810s (+41.6% 🔺)0.000s (+178.8% 🔺)1.878s (+43.8% 🔺)0.562s332.04x
💻 LocalNitro1.339s (+9.5% 🔺)2.014s (~)0.000s (+166.7% 🔺)2.016s (~)0.677s302.08x
💻 LocalNext.js (Turbopack)1.469s2.015s0.000s2.018s0.550s302.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.111s (-59.6% 🟢)5.460s (-52.6% 🟢)0.001s (+Infinity% 🔺)5.897s (-51.1% 🟢)1.787s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-21.9% 🟢)1.995s (-6.8% 🟢)0.000s (-100.0% 🟢)2.020s (-7.1% 🟢)0.620s301.00x
🐘 PostgresNext.js (Turbopack)1.629s2.262s0.000s2.270s0.641s271.16x
💻 LocalNext.js (Turbopack)2.997s3.557s0.001s3.562s0.565s172.14x
💻 LocalExpress3.020s (-12.9% 🟢)3.674s (-8.9% 🟢)0.000s (-70.6% 🟢)3.677s (-8.9% 🟢)0.657s172.16x
💻 LocalNitro3.069s (-9.4% 🟢)3.839s (-4.8%)0.001s (-6.2% 🟢)3.842s (-4.8%)0.773s162.19x
🐘 PostgresExpress3.924s (+121.4% 🔺)4.357s (+100.1% 🔺)0.000s (NaN%)4.394s (+99.9% 🔺)0.471s142.80x

▲ Production (Vercel)

No data available

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro21/21
▲ VercelNext.js (Turbopack)20/20
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local16/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres16/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes deferred workflow discovery (“lazyDiscovery”) the default behavior for withWorkflow on the next branch, updates examples/docs accordingly, and adjusts workbench/e2e expectations to match the new default and warning text.

Changes:

  • Flip withWorkflow’s default workflows.lazyDiscovery behavior to enabled unless explicitly set to false.
  • Remove redundant lazyDiscovery: true overrides from Next.js workbench apps and update tests to validate the new default.
  • Reword the Next.js version fallback warning and update docs and e2e assertions to match.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
workbench/nextjs-webpack/next.config.tsRemoves explicit lazyDiscovery: true now that it’s the default.
workbench/nextjs-turbopack/next.config.tsRemoves explicit lazyDiscovery: true and keeps config minimal.
packages/next/src/index.tsImplements default-on lazyDiscovery behavior (opt-out with false).
packages/next/src/index.test.tsAdds unit tests asserting default/explicit true/explicit false env-var behavior.
packages/next/src/builder.tsUpdates the fallback warning message when Next.js is too old for deferred mode.
packages/core/e2e/local-build.test.tsUpdates e2e warning assertion to match the new warning text.
docs/content/docs/api-reference/workflow-next/with-workflow.mdxUpdates docs to reflect default true and how to force eager discovery.
.changeset/lazy-discovery-default.mdAdds changeset documenting the default change and opt-out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expect(process.env.WORKFLOW_NEXT_LAZY_DISCOVERY).toBe('1');
});

it('disables lazyDiscovery when explicitly set to false', async () => {

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These it(...) blocks are marked async but don't await anything. Consider removing async (or adding awaited behavior if intended) to avoid misleading tests / potential lints about unused promises.

Suggested change
it('disables lazyDiscovery when explicitly set to false',async()=>{
it('disables lazyDiscovery when explicitly set to false',()=>{

Copilot uses AI. Check for mistakes.
VaguelySerious
VaguelySerious previously approved these changes Apr 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 070bd0c (AI decision).

This commit flips the default value of lazyDiscovery to true, which is a behavior change intended for the next major release on main. The PR description explicitly notes that a companion PR (#1804) already handles the stable branch differently — keeping the current default but removing the workbench override — so backporting this commit would conflict with that intentional split.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

070bd0cea960a0d56d7812a6147455f75a06d859

Sign up for freeto 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.

4 participants

@TooTallNate@ijjk@VaguelySerious