fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@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

fix(builders): improve step bundle discovery and externalization for SDK serde classes - #1669

Merged
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization
Apr 9, 2026
Merged

fix(builders): improve step bundle discovery and externalization for SDK serde classes#1669
TooTallNate merged 2 commits into
mainfrom
fix/builders-discovery-externalization

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Broaden importParents tracking in the discovery plugin to all imports (not just file extensions) so parentHasChild() works through bare specifier imports like @workflow/core/runtime
  • Include workflow/runtime in discovery inputs so SDK serde classes like Run are always discovered even when no user code imports them
  • Bundle node_modules deps instead of externalizing with relative paths that break when downstream bundlers (Rollup/Vite) rebundle to a different directory

…SDK serde classes
- Broaden importParents tracking to all imports (not just file extensions)
so parentHasChild() works through bare specifier imports
- Include workflow/runtime in discovery inputs so SDK serde classes like
Run are always discovered
- Bundle node_modules deps instead of externalizing with broken relative
paths in CJS shims
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 17:41
CopilotAI review requested due to automatic review settings April 9, 2026 17:41
@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aebee64

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

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

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 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1366524225
✅ 📋 Other219042261
Total3922656754662

❌ Failed Tests

🌍 Community Worlds (65 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6

turso (58 failed):

  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • addTenWorkflow | wrun_01KNST3F1K774XNK8DH0GQBAGG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNST5G3H2GSHK4MGX5QJDHAE
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNST3N04BQYW1WEXQEQ70M4K
  • promiseRaceWorkflow | wrun_01KNST3S3J8JR0YE6QNEAJXBNN
  • promiseAnyWorkflow | wrun_01KNST3V0JAVTW58NGFCXEAWQM
  • importedStepOnlyWorkflow | wrun_01KNST5TCK5473XARF5ZA8Q37N
  • hookWorkflow | wrun_01KNST4729X84KSMVECBK1C9JP
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNST4H4R5X2XMHH05SWHF08C
  • webhookWorkflow | wrun_01KNST4SP7R911MN9R4YNVFHVZ
  • sleepingWorkflow | wrun_01KNST50C32PYW98P27PC432TW
  • parallelSleepWorkflow | wrun_01KNST5CFTVRPTKB0GKDJVXK6H
  • nullByteWorkflow | wrun_01KNST5GJNEW1CWZAKFVC34FSF
  • workflowAndStepMetadataWorkflow | wrun_01KNST5JFFP24CRSNAMNR5WRCG
  • fetchWorkflow | wrun_01KNST86R4B2AQFNAM0PQAFNEB
  • promiseRaceStressTestWorkflow | wrun_01KNST89QQCAAF44Z0TZ5NVH43
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNSTBGMYCT4SKR8D8E5BCNSN
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNSTC3E5X5VZCHG9EZNE0H6T
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNSTCPSE9529E1TT8QQ6AJ1N
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNSTDA2HDKQBR43JDXTRJMVR
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNSTDJ29KBCKJJDR3E7NWT7Y
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNSTDQ1VR06KCH8ZV234955V
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNSTDS4GM13W05ZVQ7C9XCJ8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNSTE77E72AF0FAEWBEH3KJS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNSTECEZYQNART24MSV8QDB3
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNSTEJDX75R88MXC5D7D2DRY
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNSTER9KFK8BDYZN01Q8TW46
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNSTEY7PTQ8FY0G9V2R2G50N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNSTF4418P90ZX27W74V987V
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNSTFB24H7RAX348H1QRWR8X
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNSTFNHAAAVGBHSEW2EWFHMW
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNSTFXRGPYXHZANS3WH7A967
  • cancelRun - cancelling a running workflow | wrun_01KNSTG3M31G7QCBQPSQ92AG9D
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNSTGC6VDTQ4EYYC29K58SC2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNSTGQA3X1EWN0BH1RZPMSH1
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNSTHAP350ZNJH6V0HY0Z95Z
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNSTHMEGZJH6RT2CDVSVS46F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNSTHTAQF0PT1VEVTQ52KWXW
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNSTHWDMTPD4E0BN40DP9RA1
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNSTHZKEY4AW3ERHDM7YA6D6
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNSTJ2MHB30ZPPPYE535NST7

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5848
✅ redis-dev500
❌ redis5938
✅ turso-dev500
❌ turso4588
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 9, 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.041s (-4.9%)1.006s (~)0.965s101.00x
💻 LocalNitro0.041s (+9.7% 🔺)1.005s (~)0.964s101.00x
💻 LocalNext.js (Turbopack)0.048s1.005s0.957s101.18x
🐘 PostgresExpress0.050s (-24.4% 🟢)1.010s (~)0.959s101.23x
🌐 RedisNext.js (Turbopack)0.054s1.005s0.951s101.33x
🐘 PostgresNext.js (Turbopack)0.059s1.010s0.950s101.46x
🐘 PostgresNitro0.060s (-5.2% 🟢)1.009s (~)0.950s101.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.247s (-44.5% 🟢)2.251s (+1.3%)2.005s101.00x
▲ VercelNitro0.294s (+4.0%)2.120s (-14.6% 🟢)1.826s101.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.113s (-2.8%)2.010s (~)0.897s101.00x
💻 LocalNext.js (Turbopack)1.119s2.007s0.887s101.01x
🌐 RedisNext.js (Turbopack)1.124s2.006s0.882s101.01x
💻 LocalNitro1.128s (+2.4%)2.005s (~)0.877s101.01x
💻 LocalExpress1.133s (~)2.006s (~)0.873s101.02x
🐘 PostgresNext.js (Turbopack)1.137s2.011s0.874s101.02x
🐘 PostgresNitro1.137s (-1.2%)2.008s (~)0.871s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.969s (-4.9%)3.662s (-0.8%)1.693s101.00x
▲ VercelNitro2.238s (+6.8% 🔺)3.376s (-12.1% 🟢)1.137s101.14x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.700s (-1.6%)11.020s (~)0.320s31.00x
🌐 RedisNext.js (Turbopack)10.786s11.022s0.237s31.01x
💻 LocalNext.js (Turbopack)10.831s11.024s0.193s31.01x
🐘 PostgresNitro10.858s (~)11.022s (~)0.163s31.01x
💻 LocalExpress10.932s (~)11.023s (~)0.091s31.02x
💻 LocalNitro10.932s (+2.4%)11.023s (~)0.091s31.02x
🐘 PostgresNext.js (Turbopack)10.935s11.022s0.087s31.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.101s (+1.7%)19.232s (+1.3%)2.131s21.00x
▲ VercelNext.js (Turbopack)18.279s (+2.9%)20.101s (+6.1% 🔺)1.822s21.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.043s (-3.6%)14.625s (-2.6%)0.582s51.00x
🌐 RedisNext.js (Turbopack)14.349s15.029s0.680s41.02x
🐘 PostgresNitro14.500s (~)15.021s (~)0.520s41.03x
🐘 PostgresNext.js (Turbopack)14.574s15.028s0.454s41.04x
💻 LocalNext.js (Turbopack)14.657s15.032s0.375s41.04x
💻 LocalNitro14.994s (+5.4% 🔺)15.028s (~)0.034s41.07x
💻 LocalExpress15.023s (~)15.530s (-3.1%)0.507s41.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro33.423s (+6.4% 🔺)34.386s (+2.3%)0.963s21.00x
▲ VercelNext.js (Turbopack)34.922s (+2.9%)36.616s (+1.8%)1.694s21.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.043s (-7.4% 🟢)13.737s (-6.8% 🟢)0.693s71.00x
🌐 RedisNext.js (Turbopack)13.394s14.025s0.631s71.03x
🐘 PostgresNext.js (Turbopack)13.757s14.020s0.263s71.05x
🐘 PostgresNitro13.866s (~)14.019s (~)0.153s71.06x
💻 LocalNext.js (Turbopack)16.029s16.531s0.501s61.23x
💻 LocalNitro16.634s (+11.5% 🔺)17.032s (+13.3% 🔺)0.398s61.28x
💻 LocalExpress16.788s (-0.9%)17.031s (~)0.242s61.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)59.849s (+9.4% 🔺)61.683s (+8.1% 🔺)1.834s21.00x
▲ VercelNitro61.209s (+13.5% 🔺)62.282s (+11.3% 🔺)1.073s21.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.202s (-5.5% 🟢)2.009s (~)0.807s151.00x
🐘 PostgresNext.js (Turbopack)1.242s2.010s0.769s151.03x
🐘 PostgresNitro1.273s (~)2.009s (~)0.737s151.06x
🌐 RedisNext.js (Turbopack)1.289s2.006s0.717s151.07x
💻 LocalNext.js (Turbopack)1.508s2.006s0.498s151.25x
💻 LocalExpress1.511s (-1.1%)2.006s (~)0.495s151.26x
💻 LocalNitro1.514s (+1.2%)2.005s (~)0.492s151.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.233s (-6.0% 🟢)3.844s (-0.6%)1.611s81.00x
▲ VercelNitro2.687s (+7.7% 🔺)3.960s (~)1.273s81.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.269s (-2.6%)3.009s (~)0.740s101.00x
🐘 PostgresNitro2.332s (-1.2%)3.009s (~)0.677s101.03x
🐘 PostgresNext.js (Turbopack)2.417s3.010s0.592s101.07x
🌐 RedisNext.js (Turbopack)2.533s3.008s0.475s101.12x
💻 LocalNext.js (Turbopack)2.779s3.308s0.530s101.22x
💻 LocalNitro2.934s (+7.6% 🔺)3.109s (-3.1%)0.174s101.29x
💻 LocalExpress3.241s (+1.8%)4.010s (~)0.769s81.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.147s (+2.5%)4.505s (~)1.358s71.00x
▲ VercelNext.js (Turbopack)3.200s (+5.8% 🔺)5.027s (+14.1% 🔺)1.828s71.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.459s (-1.2%)4.009s (~)0.550s81.00x
🐘 PostgresExpress3.477s (-0.7%)4.013s (~)0.537s81.01x
🐘 PostgresNext.js (Turbopack)3.707s4.009s0.303s81.07x
🌐 RedisNext.js (Turbopack)4.117s4.725s0.608s71.19x
💻 LocalNext.js (Turbopack)7.340s8.019s0.679s42.12x
💻 LocalNitro8.230s (+6.3% 🔺)8.773s (+3.0%)0.542s42.38x
💻 LocalExpress9.021s (+8.1% 🔺)9.524s (+5.5% 🔺)0.502s42.61x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.197s (+6.4% 🔺)4.507s (-3.5%)1.310s71.00x
▲ VercelNext.js (Turbopack)4.121s (+35.7% 🔺)5.718s (+24.1% 🔺)1.596s61.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.208s (-6.8% 🟢)2.008s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s2.009s0.781s151.02x
🐘 PostgresNitro1.263s (~)2.010s (~)0.747s151.04x
🌐 RedisNext.js (Turbopack)1.309s2.006s0.697s151.08x
💻 LocalNext.js (Turbopack)1.485s2.006s0.521s151.23x
💻 LocalNitro1.543s (+2.5%)2.005s (~)0.463s151.28x
💻 LocalExpress1.544s (-1.3%)2.006s (~)0.462s151.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.324s (+7.2% 🔺)3.724s (+4.0%)1.401s91.00x
▲ VercelNitro2.501s (+28.0% 🔺)3.820s (~)1.318s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.278s (-4.3%)3.010s (~)0.732s101.00x
🐘 PostgresNitro2.335s (~)3.008s (~)0.673s101.03x
🐘 PostgresNext.js (Turbopack)2.412s3.009s0.596s101.06x
🌐 RedisNext.js (Turbopack)2.622s3.108s0.486s101.15x
💻 LocalNext.js (Turbopack)2.954s3.759s0.805s81.30x
💻 LocalNitro2.973s (-15.0% 🟢)3.762s (-6.2% 🟢)0.789s81.31x
💻 LocalExpress3.163s (~)4.011s (+3.2%)0.848s81.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.530s (-3.4%)3.777s (-11.5% 🟢)1.247s81.00x
▲ VercelNext.js (Turbopack)2.735s (+10.3% 🔺)4.070s (+5.2% 🔺)1.336s81.08x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.418s (-2.0%)4.011s (~)0.593s81.00x
🐘 PostgresNitro3.469s (~)4.009s (~)0.540s81.01x
🐘 PostgresNext.js (Turbopack)3.660s4.014s0.354s81.07x
🌐 RedisNext.js (Turbopack)4.131s4.725s0.594s71.21x
💻 LocalNext.js (Turbopack)8.394s9.020s0.626s42.46x
💻 LocalNitro8.845s (+4.0%)9.527s (+5.6% 🔺)0.683s42.59x
💻 LocalExpress9.271s (-9.3% 🟢)10.022s (-9.1% 🟢)0.751s32.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.868s (+10.7% 🔺)3.956s (-7.9% 🟢)1.087s81.00x
▲ VercelNext.js (Turbopack)3.480s (~)4.971s (+3.2%)1.491s71.21x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.615s (-28.9% 🟢)1.006s (~)0.391s601.00x
🌐 RedisNext.js (Turbopack)0.689s1.004s0.315s601.12x
🐘 PostgresNext.js (Turbopack)0.788s1.007s0.219s601.28x
🐘 PostgresNitro0.815s (-2.5%)1.005s (-1.7%)0.190s601.33x
💻 LocalNext.js (Turbopack)0.861s1.021s0.161s591.40x
💻 LocalNitro0.987s (+33.9% 🔺)1.201s (+19.5% 🔺)0.214s511.61x
💻 LocalExpress1.028s (+1.4%)1.800s (+5.9% 🔺)0.772s341.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.961s (+4.6%)10.154s (-0.6%)1.192s61.00x
▲ VercelNext.js (Turbopack)9.365s (+4.8%)10.957s (+2.8%)1.592s61.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.499s (-30.5% 🟢)2.007s (-32.6% 🟢)0.508s451.00x
🌐 RedisNext.js (Turbopack)1.668s2.006s0.338s451.11x
🐘 PostgresNext.js (Turbopack)1.929s2.124s0.195s431.29x
🐘 PostgresNitro1.940s (~)2.150s (+2.4%)0.210s421.29x
💻 LocalNext.js (Turbopack)2.726s3.041s0.315s301.82x
💻 LocalNitro3.016s (+17.5% 🔺)3.586s (+12.7% 🔺)0.570s262.01x
💻 LocalExpress3.063s (-0.9%)3.966s (-1.1%)0.903s232.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.848s (-1.9%)30.229s (-4.1%)1.381s31.00x
▲ VercelNext.js (Turbopack)29.824s (+4.2%)31.971s (+5.3% 🔺)2.147s31.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.012s (-30.2% 🟢)3.437s (-31.4% 🟢)0.425s351.00x
🌐 RedisNext.js (Turbopack)3.344s4.008s0.664s301.11x
🐘 PostgresNext.js (Turbopack)3.920s4.043s0.123s301.30x
🐘 PostgresNitro3.922s (-1.7%)4.108s (-4.4%)0.186s301.30x
💻 LocalNext.js (Turbopack)8.577s9.017s0.440s142.85x
💻 LocalNitro9.214s (+19.5% 🔺)9.941s (+21.0% 🔺)0.727s133.06x
💻 LocalExpress9.226s (~)9.787s (-2.3%)0.562s133.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro78.600s (+9.7% 🔺)80.485s (+8.2% 🔺)1.884s21.00x
▲ VercelNext.js (Turbopack)79.084s (+2.8%)80.370s (+2.0%)1.286s21.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.228s (-22.8% 🟢)1.007s (~)0.778s601.00x
🐘 PostgresNext.js (Turbopack)0.260s1.007s0.747s601.14x
🐘 PostgresNitro0.283s (~)1.007s (~)0.724s601.24x
🌐 RedisNext.js (Turbopack)0.288s1.004s0.716s601.26x
💻 LocalNext.js (Turbopack)0.573s1.004s0.432s602.51x
💻 LocalNitro0.581s (-12.4% 🟢)1.004s (~)0.424s602.54x
💻 LocalExpress0.595s (~)1.021s (~)0.427s592.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.439s (-47.3% 🟢)3.034s (-31.8% 🟢)1.595s201.00x
▲ VercelNext.js (Turbopack)1.724s (+19.0% 🔺)3.432s (+14.1% 🔺)1.708s181.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.364s (-30.8% 🟢)1.005s (~)0.642s901.00x
🐘 PostgresNitro0.492s (+0.7%)1.006s (~)0.514s901.35x
🐘 PostgresNext.js (Turbopack)0.501s1.007s0.506s901.38x
🌐 RedisNext.js (Turbopack)1.145s2.005s0.861s453.15x
💻 LocalExpress2.492s (-0.8%)3.009s (~)0.517s306.85x
💻 LocalNext.js (Turbopack)2.591s3.009s0.418s307.12x
💻 LocalNitro2.671s (-2.8%)3.181s (~)0.510s297.34x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.158s (-6.1% 🟢)4.681s (-3.0%)1.523s201.00x
▲ VercelNitro3.749s (+51.6% 🔺)5.029s (+21.5% 🔺)1.280s181.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.575s (-31.6% 🟢)1.006s (-1.3%)0.431s1201.00x
🐘 PostgresNitro0.785s (~)1.007s (~)0.222s1201.36x
🐘 PostgresNext.js (Turbopack)0.834s1.017s0.183s1191.45x
🌐 RedisNext.js (Turbopack)2.682s3.007s0.325s404.66x
💻 LocalNext.js (Turbopack)10.674s11.299s0.625s1118.56x
💻 LocalNitro11.053s (-0.8%)11.575s (-2.3%)0.522s1119.22x
💻 LocalExpress11.234s (+2.1%)11.847s (+1.6%)0.612s1119.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.412s (-3.5%)8.704s (-6.9% 🟢)1.292s141.00x
▲ VercelNext.js (Turbopack)7.912s (+9.3% 🔺)9.691s (+12.5% 🔺)1.779s131.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.157s (-26.8% 🟢)1.000s (+0.6%)0.001s (-35.3% 🟢)1.009s (~)0.852s101.00x
💻 LocalNext.js (Turbopack)0.173s1.002s0.012s1.018s0.845s101.10x
🌐 RedisNext.js (Turbopack)0.177s1.001s0.001s1.007s0.830s101.12x
🐘 PostgresNext.js (Turbopack)0.191s1.000s0.001s1.010s0.819s101.21x
💻 LocalNitro0.201s (+36.1% 🔺)1.004s (~)0.012s (+28.6% 🔺)1.018s (~)0.817s101.28x
💻 LocalExpress0.207s (-1.1%)1.004s (~)0.012s (~)1.019s (~)0.812s101.31x
🐘 PostgresNitro0.215s (+7.8% 🔺)0.992s (-0.6%)0.002s (~)1.010s (~)0.795s101.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.618s (+4.1%)2.849s (-4.8%)0.661s (+12.9% 🔺)3.859s (-3.7%)2.241s101.00x
▲ VercelNext.js (Turbopack)1.632s (~)2.826s (-4.9%)0.658s (+52.8% 🔺)3.924s (+3.6%)2.293s101.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.483s1.002s0.003s1.011s0.528s601.00x
🐘 PostgresExpress0.520s (-19.7% 🟢)1.006s (~)0.003s (-33.9% 🟢)1.020s (~)0.500s591.08x
🐘 PostgresNitro0.612s (+1.1%)1.004s (~)0.004s (~)1.021s (~)0.410s591.27x
🐘 PostgresNext.js (Turbopack)0.650s1.009s0.004s1.023s0.373s591.35x
💻 LocalNext.js (Turbopack)0.657s1.011s0.010s1.024s0.367s591.36x
💻 LocalExpress0.734s (~)1.012s (~)0.009s (-6.3% 🟢)1.023s (~)0.289s591.52x
💻 LocalNitro0.921s (+39.2% 🔺)1.010s (~)0.009s (-12.1% 🟢)1.218s (+18.7% 🔺)0.297s511.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.125s (-5.8% 🟢)5.255s (-12.3% 🟢)0.271s (-8.0% 🟢)5.882s (-13.7% 🟢)1.757s111.00x
▲ VercelNext.js (Turbopack)6.111s (+48.7% 🔺)7.339s (+31.4% 🔺)0.203s (-72.0% 🟢)8.095s (+21.2% 🔺)1.984s81.48x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.902s (-9.1% 🟢)1.051s (-21.2% 🟢)0.000s (-22.8% 🟢)1.059s (-22.7% 🟢)0.158s571.00x
🌐 RedisNext.js (Turbopack)0.903s1.017s0.000s1.021s0.118s591.00x
🐘 PostgresNitro0.964s (+2.0%)1.144s (~)0.000s (-66.7% 🟢)1.161s (~)0.197s521.07x
🐘 PostgresNext.js (Turbopack)0.988s1.272s0.000s1.279s0.291s481.10x
💻 LocalNitro1.212s (-8.6% 🟢)2.019s (~)0.000s (-41.2% 🟢)2.021s (~)0.810s301.34x
💻 LocalExpress1.239s (-2.8%)2.022s (~)0.000s (~)2.024s (~)0.785s301.37x
💻 LocalNext.js (Turbopack)1.284s2.022s0.001s2.025s0.742s301.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.955s (+16.0% 🔺)4.037s (+12.6% 🔺)0.000s (-46.4% 🟢)4.500s (+9.6% 🔺)1.545s141.00x
▲ VercelNext.js (Turbopack)3.107s (-4.5%)4.395s (~)0.000s (-100.0% 🟢)4.839s (+1.5%)1.732s131.05x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.646s (-7.9% 🟢)2.069s (-3.4%)0.000s (NaN%)2.110s (-1.9%)0.464s291.00x
🌐 RedisNext.js (Turbopack)1.701s2.070s0.000s2.075s0.374s291.03x
🐘 PostgresNitro1.772s (-0.6%)2.175s (+3.7%)0.000s (-100.0% 🟢)2.219s (+5.1% 🔺)0.447s281.08x
🐘 PostgresNext.js (Turbopack)1.863s2.108s0.000s2.133s0.270s291.13x
💻 LocalNitro3.448s (-12.6% 🟢)4.032s (-11.1% 🟢)0.000s (-66.1% 🟢)4.034s (-11.1% 🟢)0.587s152.09x
💻 LocalExpress3.606s (-1.5%)4.101s (-1.6%)0.001s (-9.1% 🟢)4.104s (-1.6%)0.497s152.19x
💻 LocalNext.js (Turbopack)3.691s4.300s0.001s4.304s0.613s152.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.999s (-8.1% 🟢)5.025s (-9.9% 🟢)0.000s (-33.3% 🟢)5.457s (-8.7% 🟢)1.458s111.00x
▲ VercelNitro4.031s (+13.4% 🔺)5.187s (+6.0% 🔺)0.000s (-63.6% 🟢)5.504s (+3.3%)1.473s111.01x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)17/21
🐘 PostgresExpress20/21
▲ VercelNitro14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres20/21
Next.js (Turbopack)🌐 Redis9/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates @workflow/builders bundling/discovery behavior to better detect SDK-provided serde classes and avoid generating fragile externalized paths that break when downstream tools rebundle step bundles.

Changes:

  • Track parent→child import relationships for all imports (including bare specifiers) so parentHasChild() works through SDK entrypoints.
  • Add workflow/runtime to the discovery inputs so SDK serde classes (e.g. Run) are discovered even when not imported by user code.
  • Avoid externalizing resolved node_modules files via deep relative paths by letting esbuild bundle them instead.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
packages/builders/src/swc-esbuild-plugin.tsStops externalizing resolved node_modules files via relative paths; lets esbuild bundle them.
packages/builders/src/discover-entries-esbuild-plugin.tsBroadens onResolve tracking to all imports to improve transitive parent/child detection through bare specifiers.
packages/builders/src/base-builder.tsAdds workflow/runtime to discovery entrypoints to ensure SDK serde class discovery.
.changeset/builders-discovery-fixes.mdPatch changeset documenting the behavior fixes.

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

Comment on lines +428 to +436
const discoveryInputs = [...inputFiles];
if (resolvedWorkflowRuntime) {
discoveryInputs.push(resolvedWorkflowRuntime);
}
const discovered =
discoveredEntries ??
(await this.discoverEntries(inputFiles, dirname(outfile), tsconfigPath));
(await this.discoverEntries(
discoveryInputs,
dirname(outfile),

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

discoveryInputs is always created as a new array ([...inputFiles]), which defeats discoverEntries() caching (it uses a WeakMap keyed by the inputs array reference). This can cause discovery to re-run on every call/watch rebuild even when inputFiles is unchanged. Consider passing inputFiles directly when no extra entry is needed, or memoizing a stable augmented array when adding resolvedWorkflowRuntime.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed. discoveryInputs now only creates a new array when resolvedWorkflowRuntime is present. When no extra entries are needed, inputFiles is passed directly to discoverEntries(), preserving the array reference for WeakMap caching.

Comment on lines +82 to 90
// Track parent→child import relationships for ALL imports (not just
// those with file extensions) so that `parentHasChild()` can correctly
// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {
try {
const resolved = await enhancedResolve(args.resolveDir, args.path);

CopilotAIApr 9, 2026

Copy link

Choose a reason for hiding this comment

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

The new onResolve({ filter: /.*/ }) behavior is intended to support bare specifier chains, but there’s no test asserting that importParents/parentHasChild() works through a bare specifier import (e.g. entry -> workflow/runtime -> serde file). Please add a vitest case that builds a small fixture with a bare specifier dependency and verifies parentHasChild() (or the downstream bundling decision) reflects that relationship.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added. New test tracks importParents through bare specifier imports sets up a fixture with entry.ts -> 'bare-pkg' -> ./serde.js and verifies:

  • importParents tracks both the bare specifier resolution (entry -> bare-pkg/index.js) and the relative import (index.js -> serde.js)
  • parentHasChild(entry, serde) returns true transitively through the bare specifier

- Preserve inputFiles array reference for discoverEntries() WeakMap
caching when no extra entries are needed
- Add test verifying importParents/parentHasChild works through bare
specifier imports (entry -> bare-pkg -> serde file)

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI review: no blocking issues

// identify transitive parents of serde/step files even when the
// dependency chain passes through bare specifier imports like
// `@workflow/core/runtime` or `workflow/runtime`.
build.onResolve({ filter: /.*/ }, async (args) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Using onResolve with filter: /.*/ means this hook runs for every resolved request during discovery. That tradeoff is reasonable for correctness, but it may increase discovery CPU on very large graphs. If this shows up in profiles later, consider whether a narrower filter plus a second pass is worth it.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Good point. The discovery pass runs once (or once per watch rebuild) and the graph is bounded by the project's actual import tree, so this shouldn't be a bottleneck in practice. But agreed it's worth keeping an eye on for very large monorepos.

// can't rewrite opaque `__require()` calls in CJS shims, so
// relative paths computed for `outdir` break once the output
// is rebundled to a different directory.
if (normalizedResolvedPath.includes('/node_modules/')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Note

Bundling any resolved file under /node_modules/ avoids brittle relative externals for downstream rebundlers. That is likely the right default here; still worth watching step-bundle size regressions after this change, since it is broader than only fixing the broken externals case.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Agreed. This is intentionally broad to fix the class of broken relative externals, but we should monitor step bundle sizes. In practice the node_modules files that hit this path are small CJS shims with internal require() calls (like @vercel/functions/headers.js), not large libraries.

// traces through it and discovers serde classes (like `Run`) that
// live inside SDK packages. Without this, files like `run.js` are
// only discovered when user code happens to import them.
const resolvedWorkflowRuntime = await enhancedResolve(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI Review: Nit

Silently skipping when workflow/runtime cannot be resolved preserves prior behavior, but it also means discovery still misses SDK-only serde files in misconfigured installs. If that scenario is worth surfacing, a debug log (or a more explicit warning mode) might help.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fair point. The silent catch is intentional to avoid breaking builds when workflow isn't installed yet (e.g. during initial setup), but a debug-level log would be helpful. Will add if this becomes a support issue.

@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 19:28
@TooTallNate
TooTallNate merged commit dc0c0dc into mainApr 9, 2026
224 of 230 checks passed
@TooTallNate
TooTallNate deleted the fix/builders-discovery-externalization branch April 9, 2026 19:37
@ghostghost mentioned this pull request Apr 9, 2026
VaguelySerious added a commit that referenced this pull request May 2, 2026
PR #1609 was authored on top of #1669 (`fix(builders): improve step bundle
discovery and externalization for SDK serde classes`), which is on `main`
but not on `stable`. Bring along just the bits #1609 depends on:
- Broaden discover-entries onResolve filter from `jsTsRegex` to `/.*/` so
the import graph captures bare and extensionless imports.
- Switch the new test fixtures from `Set<string>` back to `string[]` to
match stable's still-array-based state interface in
`createDiscoverEntriesPlugin`.
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.

3 participants

@TooTallNate@VaguelySerious