Skip to content

fix(builders): improve hook graph detection in transformed bundles#1675

Draft
ijjk wants to merge 17 commits intomainfrom
ijjk/lazy-discovery-webhook
Draft

fix(builders): improve hook graph detection in transformed bundles#1675
ijjk wants to merge 17 commits intomainfrom
ijjk/lazy-discovery-webhook

Conversation

@ijjk
Copy link
Copy Markdown
Member

@ijjk ijjk commented Apr 9, 2026

Summary

  • fix workflow graph extraction for transformed bundles where step declarations include @__PURE__ annotations
  • detect createHook/createWebhook when wrapped by transpiled using helper calls
  • add regression tests covering both transformed patterns

Validation

  • pnpm -C packages/builders test -- workflows-extractor.test.ts
  • pnpm -C packages/builders typecheck

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 11, 2026 0:51am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 11, 2026 0:51am
example-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-astro-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-express-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-fastify-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-hono-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-nitro-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workbench-vite-workflow Ready Ready Preview, Comment Apr 11, 2026 0:51am
workflow-docs Ready Ready Preview, Comment, Open in v0 Apr 11, 2026 0:51am
workflow-swc-playground Ready Ready Preview, Comment Apr 11, 2026 0:51am

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 9, 2026

🦋 Changeset detected

Latest commit: 52d1e31

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

This PR includes changesets to release 21 packages
Name Type
@workflow/builders Patch
@workflow/utils Patch
@workflow/astro Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/vitest Patch
@workflow/core Patch
@workflow/errors Patch
@workflow/web-shared Patch
workflow Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/world-vercel Patch
@workflow/ai Patch

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
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 912 0 67 979
✅ 💻 Local Development 811 0 168 979
✅ 📦 Local Production 886 0 182 1068
✅ 🐘 Local Postgres 886 0 182 1068
✅ 🪟 Windows 81 0 8 89
❌ 🌍 Community Worlds 133 74 24 231
✅ 📋 Other 225 0 42 267
Total 3934 74 673 4681

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNX0D2T5FD7XC2XKCKRVVFXG
  • webhookWorkflow | wrun_01KNX0DCTZFM01RHXPNK8KF7AH
  • fetchWorkflow | wrun_01KNX0H163XMCEFKBBC83YF4CT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNX0NP6FFVD0P7SRWHVVPKC8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNX0WFH7V468XMZBZN5E7QPW

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNX0D2T5FD7XC2XKCKRVVFXG
  • webhookWorkflow | wrun_01KNX0DCTZFM01RHXPNK8KF7AH
  • fetchWorkflow | wrun_01KNX0H163XMCEFKBBC83YF4CT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNX0NP6FFVD0P7SRWHVVPKC8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNX0WFH7V468XMZBZN5E7QPW

turso (60 failed):

  • addTenWorkflow | wrun_01KNX0BK4GCZATF19MMMW9TSNZ
  • addTenWorkflow | wrun_01KNX0BK4GCZATF19MMMW9TSNZ
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNX0D7W36WAH9KXT9FHJX6GY
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNX0BVM6D249MW27C19R7YVZ
  • promiseRaceWorkflow | wrun_01KNX0C091KP3XSGE3KFCXF00Q
  • promiseAnyWorkflow | wrun_01KNX0CB3QDW83T7TZ7ZR18KDG
  • importedStepOnlyWorkflow | wrun_01KNX0DJGX5KEWJ2KDQWSA01ZR
  • hookWorkflow | wrun_01KNX0CQWCJ9ZHXEGCEZ6PV5Z6
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNX0D2T5FD7XC2XKCKRVVFXG
  • webhookWorkflow | wrun_01KNX0DCTZFM01RHXPNK8KF7AH
  • sleepingWorkflow | wrun_01KNX0DKW0E65VHH8GD76MKGHV
  • parallelSleepWorkflow | wrun_01KNX0DZR401V4MF8H6VCZH2TQ
  • nullByteWorkflow | wrun_01KNX0E4EMSR2RVGYBS92DRPEP
  • workflowAndStepMetadataWorkflow | wrun_01KNX0E79JNSRCJ7R2TVJ1XN2Z
  • fetchWorkflow | wrun_01KNX0H163XMCEFKBBC83YF4CT
  • promiseRaceStressTestWorkflow | wrun_01KNX0H4TS94BZ1YYCFRJ8KCXE
  • 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_01KNX0N01DH9ER5A4WHGR6WW6G
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNX0NP6FFVD0P7SRWHVVPKC8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNX0PCW6YFM99VC85K5G9MWC
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNX0Q210N9SXBX79XT7G6RSF
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNX0QC0VFZVSM0PQEJJHK6AZ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNX0QJ3VHBC50BW3T7JMGEDD
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNX0QMD83ZCSSFVKXQ39GZH1
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNX0R5C3XQT6EW5SFJED4GFC
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNX0RBDQDBZXHZ7BB44HXNNB
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNX0RJGH6GA2WJ0H8ETHNB86
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNX0RSTSDP5G2KNQG3QFNRF5
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNX0S0T8B32T0AA17PZ3TR0Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNX0S96J5GH5PPF8XP01DDJ8
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNX0SGVAP73JWD5SQY4TGSAT
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNX0SWMX48BBT82GYYS5XBZ2
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNX0T51THKFT2WXTPRPCE106
  • cancelRun - cancelling a running workflow | wrun_01KNX0TDCYYZFZZHJMS3CCY9GV
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNX0TQ3C3BW3GEYMAVQFCDJ7
  • 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_01KNX0V3NAC26HW3DSN0XES0XY
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNX0VS97PQ2X9PGKQE55V3BW
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNX0W3WEKXG4E53EBMH0K0WH
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNX0WAXPX6YQM2W5EPB4TAVG
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNX0WD8THYQDN4HYJZ9W85FG
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNX0WFH7V468XMZBZN5E7QPW
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNX0WNECCR96M01BPVX1NSYQ

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 82 0 7
✅ example 82 0 7
✅ express 82 0 7
✅ fastify 82 0 7
✅ hono 82 0 7
✅ nextjs-turbopack 87 0 2
✅ nextjs-webpack 87 0 2
✅ nitro 82 0 7
✅ nuxt 82 0 7
✅ sveltekit 82 0 7
✅ vite 82 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 75 0 14
✅ express-stable 75 0 14
✅ hono-stable 75 0 14
✅ nextjs-turbopack-canary 62 0 27
✅ nextjs-turbopack-stable 81 0 8
✅ nextjs-webpack-canary 62 0 27
✅ nextjs-webpack-stable 81 0 8
✅ nitro-stable 75 0 14
✅ nuxt-stable 75 0 14
✅ sveltekit-stable 75 0 14
✅ vite-stable 75 0 14
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 75 0 14
✅ express-stable 75 0 14
✅ fastify-stable 75 0 14
✅ hono-stable 75 0 14
✅ nextjs-turbopack-canary 62 0 27
✅ nextjs-turbopack-stable 81 0 8
✅ nextjs-webpack-canary 62 0 27
✅ nextjs-webpack-stable 81 0 8
✅ nitro-stable 75 0 14
✅ nuxt-stable 75 0 14
✅ sveltekit-stable 75 0 14
✅ vite-stable 75 0 14
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 75 0 14
✅ express-stable 75 0 14
✅ fastify-stable 75 0 14
✅ hono-stable 75 0 14
✅ nextjs-turbopack-canary 62 0 27
✅ nextjs-turbopack-stable 81 0 8
✅ nextjs-webpack-canary 62 0 27
✅ nextjs-webpack-stable 81 0 8
✅ nitro-stable 75 0 14
✅ nuxt-stable 75 0 14
✅ sveltekit-stable 75 0 14
✅ vite-stable 75 0 14
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 81 0 8
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 6 0 0
❌ mongodb 56 7 8
✅ redis-dev 6 0 0
❌ redis 56 7 8
✅ turso-dev 6 0 0
❌ turso 3 60 8
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 75 0 14
✅ e2e-local-postgres-nest-stable 75 0 14
✅ e2e-local-prod-nest-stable 75 0 14

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: success
  • Local Dev: failure
  • Local Prod: success
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.037s 0.042s 0.005s 119 1.00x
🐘 Postgres Next.js (Turbopack) 0.057s (+15.9% 🔺) 1.010s (~) 0.954s 10 1.54x
🐘 Postgres Express 0.061s (+6.6% 🔺) 1.010s (~) 0.948s 10 1.66x
🐘 Postgres Nitro 0.063s (-5.8% 🟢) 1.011s (~) 0.948s 10 1.71x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.234s (-9.5% 🟢) 2.403s (+33.4% 🔺) 2.169s 10 1.00x
▲ Vercel Nitro 0.326s (+26.1% 🔺) 2.348s (+16.4% 🔺) 2.022s 10 1.39x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.096s 2.049s 0.953s 10 1.00x
🐘 Postgres Next.js (Turbopack) 1.143s (+1.8%) 2.009s (~) 0.867s 10 1.04x
🐘 Postgres Express 1.153s (~) 2.011s (~) 0.858s 10 1.05x
🐘 Postgres Nitro 1.160s (+0.8%) 2.012s (~) 0.852s 10 1.06x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.856s (-2.6%) 3.738s (-2.4%) 1.882s 10 1.00x
▲ Vercel Express 1.881s (-5.1% 🟢) 3.754s (-2.8%) 1.873s 10 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 10.647s 11.062s 0.415s 3 1.00x
🐘 Postgres Next.js (Turbopack) 10.883s (+0.9%) 11.350s (+3.0%) 0.467s 3 1.02x
🐘 Postgres Nitro 10.902s (~) 11.024s (~) 0.122s 3 1.02x
🐘 Postgres Express 10.930s (~) 11.026s (~) 0.096s 3 1.03x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 16.390s (-7.5% 🟢) 18.903s (-6.5% 🟢) 2.512s 2 1.00x
▲ Vercel Nitro 17.146s (-9.7% 🟢) 19.329s (-5.8% 🟢) 2.183s 2 1.05x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 14.265s 15.064s 0.798s 4 1.00x
🐘 Postgres Next.js (Turbopack) 14.431s (+1.9%) 15.020s (~) 0.589s 4 1.01x
🐘 Postgres Express 14.619s (+0.5%) 15.024s (~) 0.405s 4 1.02x
🐘 Postgres Nitro 14.643s (+0.5%) 15.025s (~) 0.382s 4 1.03x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 31.017s (-9.1% 🟢) 33.188s (-8.1% 🟢) 2.172s 2 1.00x
▲ Vercel Express 37.684s (+5.5% 🔺) 40.618s (+7.4% 🔺) 2.934s 2 1.21x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 13.765s (+2.6%) 14.017s (-1.1%) 0.253s 7 1.00x
🐘 Postgres Nitro 14.057s (~) 14.595s (-1.0%) 0.538s 7 1.02x
🐘 Postgres Express 14.201s (+1.8%) 15.026s (+5.0%) 0.825s 6 1.03x
💻 Local Next.js (Turbopack) 15.023s 15.411s 0.388s 6 1.09x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 50.495s (-8.9% 🟢) 52.354s (-9.3% 🟢) 1.859s 2 1.00x
▲ Vercel Express 50.620s (-7.1% 🟢) 53.154s (-5.8% 🟢) 2.533s 2 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.220s (+2.8%) 2.009s (~) 0.789s 15 1.00x
🐘 Postgres Express 1.262s (-1.1%) 2.009s (~) 0.748s 15 1.03x
🐘 Postgres Nitro 1.271s (-0.8%) 2.010s (~) 0.738s 15 1.04x
💻 Local Next.js (Turbopack) 1.502s 2.057s 0.555s 15 1.23x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.359s (-19.3% 🟢) 4.266s (-8.4% 🟢) 1.907s 8 1.00x
▲ Vercel Express 2.378s (-11.5% 🟢) 4.044s (-9.2% 🟢) 1.665s 8 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.319s (-1.6%) 3.009s (~) 0.690s 10 1.00x
🐘 Postgres Express 2.342s (~) 3.011s (~) 0.668s 10 1.01x
🐘 Postgres Next.js (Turbopack) 2.381s (-2.7%) 3.010s (~) 0.629s 10 1.03x
💻 Local Next.js (Turbopack) 2.709s 3.051s 0.342s 10 1.17x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.148s (-18.5% 🟢) 3.754s (-14.6% 🟢) 1.607s 8 1.00x
▲ Vercel Nitro 2.614s (-4.4%) 4.328s (-5.8% 🟢) 1.714s 8 1.22x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 3.465s (-0.8%) 4.011s (~) 0.546s 8 1.00x
🐘 Postgres Nitro 3.500s (~) 4.013s (~) 0.513s 8 1.01x
🐘 Postgres Next.js (Turbopack) 3.624s (+0.7%) 4.008s (~) 0.384s 8 1.05x
💻 Local Next.js (Turbopack) 6.484s 7.124s 0.640s 5 1.87x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.626s (-16.0% 🟢) 4.331s (-12.2% 🟢) 1.705s 7 1.00x
▲ Vercel Nitro 2.678s (+2.8%) 4.450s (+5.1% 🔺) 1.772s 7 1.02x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.225s (+2.9%) 2.008s (~) 0.783s 15 1.00x
🐘 Postgres Nitro 1.254s (-1.1%) 2.009s (~) 0.755s 15 1.02x
🐘 Postgres Express 1.259s (-0.6%) 2.009s (~) 0.750s 15 1.03x
💻 Local Next.js (Turbopack) 1.460s 2.061s 0.601s 15 1.19x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.887s (-8.0% 🟢) 3.971s (-3.0%) 2.084s 8 1.00x
▲ Vercel Express 2.100s (-8.7% 🟢) 3.984s (-7.9% 🟢) 1.884s 8 1.11x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 2.347s (-0.7%) 3.009s (~) 0.662s 10 1.00x
🐘 Postgres Nitro 2.359s (~) 3.009s (~) 0.651s 10 1.01x
🐘 Postgres Next.js (Turbopack) 2.375s (~) 3.009s (~) 0.633s 10 1.01x
💻 Local Next.js (Turbopack) 2.911s 3.118s 0.207s 10 1.24x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.556s (-5.4% 🟢) 4.461s (+1.7%) 1.906s 8 1.00x
▲ Vercel Nitro 3.397s (+36.1% 🔺) 5.029s (+20.0% 🔺) 1.631s 6 1.33x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 3.459s (-1.4%) 4.011s (~) 0.551s 8 1.00x
🐘 Postgres Nitro 3.506s (~) 4.012s (~) 0.506s 8 1.01x
🐘 Postgres Next.js (Turbopack) 3.629s (+1.4%) 4.012s (~) 0.383s 8 1.05x
💻 Local Next.js (Turbopack) 6.717s 7.392s 0.676s 5 1.94x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.703s (-16.0% 🟢) 4.308s (-15.8% 🟢) 1.606s 7 1.00x
▲ Vercel Nitro 3.214s (+8.0% 🔺) 5.099s (+0.9%) 1.885s 7 1.19x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.682s 1.068s 0.386s 57 1.00x
🐘 Postgres Next.js (Turbopack) 0.743s (+15.9% 🔺) 1.006s (~) 0.263s 60 1.09x
🐘 Postgres Nitro 0.845s (+0.9%) 1.007s (~) 0.162s 60 1.24x
🐘 Postgres Express 0.848s (+1.7%) 1.023s (+1.7%) 0.176s 59 1.24x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 11.327s (+17.1% 🔺) 13.466s (+16.6% 🔺) 2.139s 5 1.00x
▲ Vercel Nitro 11.531s (+23.5% 🔺) 13.551s (+21.6% 🔺) 2.019s 5 1.02x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.823s (+10.8% 🔺) 2.006s (-1.1%) 0.184s 45 1.00x
🐘 Postgres Express 1.960s (~) 2.282s (+2.5%) 0.322s 40 1.08x
🐘 Postgres Nitro 2.001s (+3.3%) 2.509s (+11.4% 🔺) 0.507s 36 1.10x
💻 Local Next.js (Turbopack) 2.167s 2.988s 0.821s 31 1.19x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 28.056s (~) 30.101s (~) 2.045s 3 1.00x
▲ Vercel Express 28.262s (+1.2%) 30.422s (+0.6%) 2.160s 3 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 3.707s (+16.2% 🔺) 4.008s (+0.8%) 0.301s 30 1.00x
🐘 Postgres Express 3.971s (-1.3%) 4.455s (~) 0.483s 27 1.07x
🐘 Postgres Nitro 4.068s (+4.5%) 4.812s (+16.0% 🔺) 0.744s 25 1.10x
💻 Local Next.js (Turbopack) 7.092s 7.622s 0.530s 16 1.91x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 68.481s (-10.6% 🟢) 70.756s (-9.8% 🟢) 2.275s 2 1.00x
▲ Vercel Express 68.540s (-3.5%) 70.175s (-4.8%) 1.634s 2 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.244s (+14.5% 🔺) 1.007s (~) 0.763s 60 1.00x
🐘 Postgres Express 0.279s (-1.3%) 1.006s (~) 0.728s 60 1.14x
🐘 Postgres Nitro 0.282s (+2.4%) 1.007s (~) 0.725s 60 1.16x
💻 Local Next.js (Turbopack) 0.562s 1.086s 0.524s 56 2.31x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.350s (-1.6%) 2.831s (-3.6%) 1.481s 22 1.00x
▲ Vercel Express 1.563s (+8.4% 🔺) 3.225s (~) 1.662s 19 1.16x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.475s (+13.0% 🔺) 1.006s (~) 0.531s 90 1.00x
🐘 Postgres Express 0.485s (-3.5%) 1.006s (~) 0.521s 90 1.02x
🐘 Postgres Nitro 0.502s (~) 1.007s (~) 0.505s 90 1.06x
💻 Local Next.js (Turbopack) 2.409s 3.099s 0.690s 30 5.08x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.469s (-10.4% 🟢) 4.292s (-4.3%) 1.823s 22 1.00x
▲ Vercel Express 2.594s (-1.0%) 4.362s (-2.7%) 1.767s 21 1.05x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.758s (+14.2% 🔺) 1.006s (~) 0.248s 120 1.00x
🐘 Postgres Express 0.791s (~) 1.008s (~) 0.217s 120 1.04x
🐘 Postgres Nitro 0.818s (+4.5%) 1.009s (~) 0.192s 119 1.08x
💻 Local Next.js (Turbopack) 8.988s 9.557s 0.569s 13 11.85x
💻 Local Express ⚠️ missing - - - -
💻 Local Nitro ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 6.357s (-3.6%) 8.265s (-4.1%) 1.907s 15 1.00x
▲ Vercel Nitro 6.456s (-3.3%) 8.342s (-5.0% 🟢) 1.886s 15 1.02x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.139s 1.041s 0.009s 1.054s 0.914s 10 1.00x
🐘 Postgres Next.js (Turbopack) 0.187s (+12.9% 🔺) 1.002s (~) 0.001s (+30.0% 🔺) 1.010s (~) 0.823s 10 1.34x
🐘 Postgres Express 0.209s (+1.1%) 0.999s (~) 0.001s (-23.1% 🟢) 1.011s (~) 0.802s 10 1.50x
🐘 Postgres Nitro 0.214s (~) 0.996s (~) 0.001s (+7.7% 🔺) 1.010s (~) 0.796s 10 1.53x
💻 Local Express ⚠️ missing - - - - -
💻 Local Nitro ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.463s (-7.3% 🟢) 2.636s (-12.1% 🟢) 0.630s (+70.1% 🔺) 3.735s (-1.8%) 2.272s 10 1.00x
▲ Vercel Express 1.654s (+7.8% 🔺) 3.120s (+12.8% 🔺) 0.381s (-46.2% 🟢) 3.972s (~) 2.319s 10 1.13x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Nitro | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.554s 1.066s 0.009s 1.078s 0.524s 56 1.00x
🐘 Postgres Next.js (Turbopack) 0.594s (+3.0%) 1.009s (~) 0.005s (+23.3% 🔺) 1.022s (~) 0.428s 59 1.07x
🐘 Postgres Express 0.606s (~) 1.006s (~) 0.004s (-23.8% 🟢) 1.021s (~) 0.414s 59 1.09x
🐘 Postgres Nitro 0.637s (+3.9%) 1.006s (~) 0.004s (+10.5% 🔺) 1.023s (~) 0.386s 59 1.15x
💻 Local Express ⚠️ missing - - - - -
💻 Local Nitro ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.928s (-5.4% 🟢) 5.343s (-9.7% 🟢) 0.244s (-11.1% 🟢) 6.045s (-9.1% 🟢) 2.117s 10 1.00x
▲ Vercel Nitro 3.972s (-11.3% 🟢) 5.548s (-8.2% 🟢) 0.250s (-11.6% 🟢) 6.270s (-10.0% 🟢) 2.298s 10 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.898s (-5.0% 🟢) 1.106s (-5.4% 🟢) 0.000s (-37.0% 🟢) 1.118s (-5.6% 🟢) 0.221s 54 1.00x
🐘 Postgres Next.js (Turbopack) 0.911s (-2.1%) 1.111s (~) 0.000s (-33.3% 🟢) 1.118s (~) 0.207s 54 1.02x
🐘 Postgres Nitro 0.994s (+1.4%) 1.293s (+8.4% 🔺) 0.000s (-45.7% 🟢) 1.310s (+7.6% 🔺) 0.316s 47 1.11x
💻 Local Next.js (Turbopack) 1.184s 2.085s 0.000s 2.088s 0.904s 29 1.32x
💻 Local Express ⚠️ missing - - - - -
💻 Local Nitro ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.490s (-5.0%) 3.705s (-3.4%) 0.003s (+55.2% 🔺) 4.169s (-3.5%) 1.678s 15 1.00x
▲ Vercel Nitro 2.674s (-8.9% 🟢) 3.881s (-7.0% 🟢) 0.000s (-13.3% 🟢) 4.398s (-5.6% 🟢) 1.724s 15 1.07x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Express | Nitro

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

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.700s (-4.5%) 2.101s (-1.7%) 0.000s (+Infinity% 🔺) 2.113s (-1.6%) 0.413s 29 1.00x
🐘 Postgres Next.js (Turbopack) 1.806s (-4.0%) 2.106s (-6.9% 🟢) 0.000s (NaN%) 2.113s (-6.8% 🟢) 0.306s 29 1.06x
🐘 Postgres Nitro 1.814s (+2.9%) 2.178s (+3.7%) 0.000s (+107.1% 🔺) 2.188s (+3.6%) 0.374s 28 1.07x
💻 Local Next.js (Turbopack) 3.537s 4.098s 0.000s 4.102s 0.564s 15 2.08x
💻 Local Express ⚠️ missing - - - - -
💻 Local Nitro ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.534s (-9.2% 🟢) 4.973s (-8.6% 🟢) 0.002s (+312.5% 🔺) 5.420s (-9.0% 🟢) 1.885s 12 1.00x
▲ Vercel Express 3.629s (-14.2% 🟢) 4.866s (-13.9% 🟢) 0.001s (+150.0% 🔺) 5.409s (-14.2% 🟢) 1.780s 12 1.03x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 21/21
🐘 Postgres Next.js (Turbopack) 15/21
▲ Vercel Nitro 11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 18/21
Next.js (Turbopack) 🐘 Postgres 14/21
Nitro 🐘 Postgres 19/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: cancelled
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

ijjk added 11 commits April 10, 2026 12:31
…exts

Add argv/ancestor command --port fallbacks for local queue delivery and strengthen port parsing tests. Also disable SWC input source map sidecar loading in builder transforms to avoid deferred flow compile failures when dependencies omit .map files.
When queue workers lack PORT/TURBO_PORT and no parent argv includes --port, resolveBaseUrl now derives project root from WORKFLOW_LOCAL_DATA_DIR and scans live process commands for matching next dev --port values. Adds regression coverage for process-list fallback.
…handling

Disable implicit SWC sidecar source-map loading in next loader when no upstream map is provided, preventing missing .map dependency failures. Also ensure local workflow queue waits for first flow delivery attempt before returning to reduce dropped async deliveries in short-lived request contexts.
};

const isHttpReachablePort = async (port: number): Promise<boolean> => {
try {
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.

GET fallback in isHttpReachablePort shares an AbortController with the HEAD request, making it always fail immediately when the HEAD request times out.

Fix on Vercel

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant