Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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

Followup fixes for sync step function support - #1664

Merged
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup
Apr 9, 2026
Merged

Followup fixes for sync step function support#1664
TooTallNate merged 3 commits into
mainfrom
nr/sync-step-followup

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #1633 (already merged):

  • Remove dangling incomplete comment left over from validate_async_function removal
  • Restore export validation for file-level "use step" files: sync/async function exports are allowed, but non-function exports (constants, classes, re-exports) emit an error since they can pull Node-only code into the workflow/client bundles
  • Fix InvalidExport error message to say "Only functions can be exported" for step files vs "Only async functions can be exported" for workflow files
  • Update spec.md error table and supported function forms to document sync step support
  • Add sync-step-class test fixture covering sync static class methods and sync function expressions (var/let)
  • Add sync-workflow error test verifying sync "use workflow" still errors while sync "use step" passes

Address review feedback from #1633 (merged):
- Remove dangling incomplete comment from validate_async_function removal
- Restore export validation for file-level 'use step' files: allow
sync/async function exports, reject non-function exports (constants,
classes, re-exports) which can pull Node-only code into bundles
- Fix InvalidExport error message: 'Only functions can be exported'
for step files vs 'Only async functions can be exported' for workflow
- Update spec.md error table and supported function forms to document
sync step support
- Add sync-step-class test fixture (sync static methods, sync function
expressions with var/let)
- Add sync-workflow error test (sync workflow still errors)
@TooTallNate
TooTallNate requested a review from a team as a code ownerApril 9, 2026 01:05
@vercel

vercelBot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

CopilotAI review requested due to automatic review settings April 9, 2026 01:05
@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 Worlds1376424225
✅ 📋 Other219042261
Total3923646754662

❌ Failed Tests

🌍 Community Worlds (64 failed)

mongodb (3 failed):

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

redis (3 failed):

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

turso (58 failed):

  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • addTenWorkflow | wrun_01KNRGM468ZVFMXRMGMYWZ45KR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNRGNG1XKVANAQYDRTGSC4N1
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNRGMAVYSATMQ4TS5CWNHTQ8
  • promiseRaceWorkflow | wrun_01KNRGMF8MDPMJ3GZ9Z6W3TG4S
  • promiseAnyWorkflow | wrun_01KNRGMHAK8R4V1B8ZBGA97KF2
  • importedStepOnlyWorkflow | wrun_01KNRGNWTJPDVT00RDTVMZMQ7X
  • hookWorkflow | wrun_01KNRGMX5NKQ8538VF2BCF6HF9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNRGN8M1ZGG1HS8TG94RMH53
  • webhookWorkflow | wrun_01KNRGNHT5BWW0ACN2Q81RAGM3
  • sleepingWorkflow | wrun_01KNRGNR112R2D319N62PS8REN
  • parallelSleepWorkflow | wrun_01KNRGP4S36PZB0PEPDKEY26K8
  • nullByteWorkflow | wrun_01KNRGP80J75VQ2BSAR3MFEEME
  • workflowAndStepMetadataWorkflow | wrun_01KNRGPADXWR573SN3549ZYV61
  • fetchWorkflow | wrun_01KNRGSG4PW1RZPSSD6GC1PCDZ
  • promiseRaceStressTestWorkflow | wrun_01KNRGSKGGHNF5Q29X6HA9A0XR
  • 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_01KNRGX4CCR5J9M1FANEW2910M
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNRGXSMPBFYVCC7SSBMCMG3W
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNRGYFAB5P51S4H62Z2M9NY5
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNRGZ4S177GJK1J5RHX66NEG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNRGZDQQGM4Q2JNMWHWAP6Z4
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNRGZK7PT9STJH2V5QZHMFZE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNRGZNBZYTHVD5XW7HYVCCB1
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNRH041H5H7HXRP4G26JE6AX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNRH09PMVCMAZVRW2A7GY423
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNRH0FZ94Y7SVB2GWJZNX9KK
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNRH0QP99Z9AHYR6HDBR3ZNG
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNRH0YCMHMKJ7B9BHDQT2B2K
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNRH152JJ5MGCPEHXW7NX5FX
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNRH1BNRNHHDHR8V1B02D493
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNRH1PT2KTYDGHG6M360S288
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNRH1YSP57GWKSKHJD21XQER
  • cancelRun - cancelling a running workflow | wrun_01KNRH25DX2Z6237RR0DGN047G
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNRH2ENBE8W7S75WB2GTQGJH
  • 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_01KNRH2TWF0TP8106WATWXATP6
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNRH3H40WB9DKTPDJRDV6YDT
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNRH3V8X4MJJ2FH087R7XRF3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNRH423PPCBFZ3F2RF5SRTPP
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNRH446DH05N3HM1HM66VYYF
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNRH46EHFDT1NZFBYGEA9X0T
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNRH4AW9014CJH00DZDMVE73

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
❌ mongodb5938
✅ 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

@changeset-bot

changeset-botBot commented Apr 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d6d56

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/vitestPatch
@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

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.043s (-3.4%)1.006s (~)0.963s101.00x
💻 LocalNitro0.043s (-6.7% 🟢)1.006s (~)0.963s101.01x
🐘 PostgresNitro0.043s (-29.5% 🟢)1.010s (~)0.966s101.02x
💻 LocalNext.js (Turbopack)0.048s (+3.2%)1.006s (~)0.958s101.14x
🌐 RedisNext.js (Turbopack)0.052s (-7.9% 🟢)1.005s (~)0.953s101.23x
🐘 PostgresNext.js (Turbopack)0.060s (+0.8%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.061s (+2.5%)1.011s (~)0.949s101.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.259s (-32.5% 🟢)2.105s (-14.5% 🟢)1.846s101.00x
▲ VercelNitro0.260s (-5.9% 🟢)2.308s (+8.6% 🔺)2.048s101.01x
▲ VercelNext.js (Turbopack)0.301s (-25.4% 🟢)2.425s (+1.2%)2.125s101.16x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.114s (-3.4%)2.010s (~)0.896s101.00x
💻 LocalNext.js (Turbopack)1.115s (-0.8%)2.005s (~)0.891s101.00x
🌐 RedisNext.js (Turbopack)1.128s (~)2.006s (~)0.879s101.01x
💻 LocalNitro1.129s (~)2.006s (~)0.877s101.01x
💻 LocalExpress1.134s (~)2.007s (~)0.873s101.02x
🐘 PostgresExpress1.145s (-0.8%)2.010s (~)0.865s101.03x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.011s (~)0.865s101.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.914s (+1.1%)4.100s (+6.4% 🔺)2.186s101.00x
▲ VercelNitro2.179s (+15.8% 🔺)4.207s (+12.4% 🔺)2.027s101.14x
▲ VercelNext.js (Turbopack)2.776s (+37.3% 🔺)4.777s (+26.7% 🔺)2.001s101.45x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.660s (-2.8%)11.018s (~)0.359s31.00x
🌐 RedisNext.js (Turbopack)10.757s (~)11.024s (~)0.266s31.01x
💻 LocalNext.js (Turbopack)10.805s (~)11.023s (~)0.219s31.01x
🐘 PostgresNext.js (Turbopack)10.901s (~)11.025s (~)0.124s31.02x
💻 LocalNitro10.916s (~)11.024s (~)0.108s31.02x
🐘 PostgresExpress10.917s (~)11.025s (~)0.108s31.02x
💻 LocalExpress10.946s (~)11.023s (~)0.077s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.590s (-1.4%)18.674s (-2.1%)2.084s21.00x
▲ VercelNitro17.131s (-4.1%)19.017s (-5.4% 🟢)1.887s21.03x
▲ VercelNext.js (Turbopack)17.240s (~)19.160s (~)1.920s21.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.996s (-4.6%)14.421s (-4.0%)0.425s51.00x
🌐 RedisNext.js (Turbopack)14.300s (+1.2%)15.029s (~)0.729s41.02x
🐘 PostgresExpress14.549s (~)15.026s (~)0.477s41.04x
🐘 PostgresNext.js (Turbopack)14.567s (~)15.025s (~)0.459s41.04x
💻 LocalNext.js (Turbopack)14.710s (+1.0%)15.028s (~)0.318s41.05x
💻 LocalExpress15.027s (~)15.532s (+3.3%)0.505s41.07x
💻 LocalNitro15.055s (~)16.032s (+3.2%)0.977s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express30.915s (-10.7% 🟢)32.871s (-11.0% 🟢)1.956s21.00x
▲ VercelNext.js (Turbopack)32.235s (-8.8% 🟢)33.898s (-9.4% 🟢)1.663s21.04x
▲ VercelNitro32.244s (-5.3% 🟢)34.518s (-4.9%)2.274s21.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.957s (-9.6% 🟢)13.023s (-13.3% 🟢)0.066s71.00x
🌐 RedisNext.js (Turbopack)13.469s (+1.8%)14.025s (~)0.556s71.04x
🐘 PostgresExpress13.979s (-1.4%)14.449s (-3.8%)0.470s71.08x
🐘 PostgresNext.js (Turbopack)14.060s (+2.6%)14.741s (+5.1% 🔺)0.681s71.09x
💻 LocalNext.js (Turbopack)16.121s (+3.4%)16.864s (+5.2% 🔺)0.743s61.24x
💻 LocalExpress16.800s (+1.4%)17.198s (+1.0%)0.397s61.30x
💻 LocalNitro16.824s (+2.1%)17.031s (~)0.207s61.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express49.225s (-10.4% 🟢)51.098s (-10.7% 🟢)1.872s21.00x
▲ VercelNitro51.242s (-11.7% 🟢)53.662s (-11.3% 🟢)2.420s21.04x
▲ VercelNext.js (Turbopack)53.371s (-8.1% 🟢)55.518s (-7.7% 🟢)2.147s21.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (-4.0%)2.009s (~)0.800s151.00x
🐘 PostgresNext.js (Turbopack)1.228s (~)2.010s (~)0.781s151.02x
🐘 PostgresExpress1.272s (-4.0%)2.009s (~)0.738s151.05x
🌐 RedisNext.js (Turbopack)1.312s (+5.8% 🔺)2.007s (~)0.694s151.09x
💻 LocalExpress1.522s (+1.3%)2.006s (~)0.484s151.26x
💻 LocalNext.js (Turbopack)1.543s (+4.5%)2.006s (~)0.463s151.28x
💻 LocalNitro1.561s (+5.2% 🔺)2.006s (~)0.445s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.145s (-2.6%)3.808s (-0.8%)1.663s81.00x
▲ VercelExpress2.362s (-2.2%)4.126s (+2.8%)1.764s81.10x
▲ VercelNitro2.411s (-18.2% 🟢)4.035s (-11.6% 🟢)1.624s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.268s (-2.0%)3.008s (~)0.741s101.00x
🐘 PostgresExpress2.321s (-2.0%)3.010s (~)0.688s101.02x
🐘 PostgresNext.js (Turbopack)2.474s (+3.0%)3.009s (~)0.535s101.09x
🌐 RedisNext.js (Turbopack)2.568s (+5.5% 🔺)3.008s (~)0.440s101.13x
💻 LocalNext.js (Turbopack)2.817s (+14.0% 🔺)3.453s (+14.8% 🔺)0.636s91.24x
💻 LocalExpress2.986s (+4.6%)3.677s (+10.0% 🔺)0.691s91.32x
💻 LocalNitro3.012s (+7.3% 🔺)3.453s (+14.8% 🔺)0.442s91.33x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.167s (+14.8% 🔺)5.012s (+16.3% 🔺)1.845s61.00x
▲ VercelNitro3.184s (+6.5% 🔺)4.504s (-4.2%)1.321s71.01x
▲ VercelNext.js (Turbopack)3.501s (+29.7% 🔺)5.228s (+16.6% 🔺)1.727s61.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.388s (-2.9%)4.010s (~)0.622s81.00x
🐘 PostgresExpress3.470s (~)4.011s (~)0.541s81.02x
🐘 PostgresNext.js (Turbopack)3.656s (-0.7%)4.010s (~)0.354s81.08x
🌐 RedisNext.js (Turbopack)4.135s (+4.6%)4.869s (+13.3% 🔺)0.734s71.22x
💻 LocalNext.js (Turbopack)7.924s (+39.2% 🔺)8.518s (+41.6% 🔺)0.594s42.34x
💻 LocalNitro8.054s (+2.0%)8.774s (+6.1% 🔺)0.720s42.38x
💻 LocalExpress8.555s (+4.2%)9.024s (+2.9%)0.469s42.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.751s (-9.1% 🟢)4.343s (-10.5% 🟢)1.592s71.00x
▲ VercelExpress3.123s (+1.2%)4.736s (-3.2%)1.613s71.14x
▲ VercelNext.js (Turbopack)3.542s (-1.8%)5.378s (+0.7%)1.836s61.29x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.197s (-5.0%)2.008s (~)0.811s151.00x
🐘 PostgresNext.js (Turbopack)1.219s (-0.5%)2.009s (~)0.790s151.02x
🐘 PostgresExpress1.252s (~)2.008s (~)0.756s151.05x
🌐 RedisNext.js (Turbopack)1.337s (+4.0%)2.006s (~)0.669s151.12x
💻 LocalNext.js (Turbopack)1.488s (-4.2%)2.006s (-3.2%)0.518s151.24x
💻 LocalExpress1.557s (+2.4%)2.006s (~)0.449s151.30x
💻 LocalNitro1.571s (~)2.006s (~)0.435s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.015s (-3.7%)3.874s (-2.6%)1.859s81.00x
▲ VercelNext.js (Turbopack)2.030s (-2.8%)3.882s (+8.9% 🔺)1.852s81.01x
▲ VercelNitro2.262s (+4.2%)3.984s (+2.2%)1.721s81.12x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.299s (-1.4%)3.009s (~)0.709s101.00x
🐘 PostgresExpress2.327s (-1.2%)3.009s (~)0.683s101.01x
🐘 PostgresNext.js (Turbopack)2.374s (-0.9%)3.009s (~)0.635s101.03x
🌐 RedisNext.js (Turbopack)2.551s (+3.9%)3.008s (~)0.457s101.11x
💻 LocalNext.js (Turbopack)3.014s (-4.2%)3.676s (+3.1%)0.662s91.31x
💻 LocalNitro3.154s (+4.1%)3.884s (+3.3%)0.729s81.37x
💻 LocalExpress3.268s (+10.2% 🔺)4.009s (+12.5% 🔺)0.741s81.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.385s (-7.2% 🟢)3.807s (-9.4% 🟢)1.422s81.00x
▲ VercelExpress2.459s (+5.6% 🔺)3.958s (+0.6%)1.499s81.03x
▲ VercelNext.js (Turbopack)2.642s (+3.9%)4.561s (+9.6% 🔺)1.918s71.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.402s (-1.2%)4.008s (~)0.606s81.00x
🐘 PostgresExpress3.494s (+1.1%)4.011s (~)0.517s81.03x
🐘 PostgresNext.js (Turbopack)3.638s (-0.5%)4.012s (~)0.374s81.07x
🌐 RedisNext.js (Turbopack)4.136s (+2.7%)4.867s (+6.2% 🔺)0.731s71.22x
💻 LocalNext.js (Turbopack)8.029s (+3.6%)8.518s (+3.0%)0.489s42.36x
💻 LocalExpress9.146s (+6.3% 🔺)9.773s (+8.3% 🔺)0.627s42.69x
💻 LocalNitro9.707s (+14.6% 🔺)10.357s (+14.8% 🔺)0.650s32.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.991s (+5.2% 🔺)4.445s (+2.8%)1.454s81.00x
▲ VercelExpress2.997s (+10.0% 🔺)4.650s (+9.7% 🔺)1.653s71.00x
▲ VercelNext.js (Turbopack)3.348s (-11.0% 🟢)5.247s (-4.9%)1.899s61.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.607s (-27.7% 🟢)1.006s (~)0.398s601.00x
🌐 RedisNext.js (Turbopack)0.712s (+12.0% 🔺)1.004s (~)0.292s601.17x
🐘 PostgresNext.js (Turbopack)0.847s (+9.8% 🔺)1.041s (+1.7%)0.194s581.39x
🐘 PostgresExpress0.856s (+3.2%)1.023s (+1.7%)0.167s591.41x
💻 LocalNext.js (Turbopack)0.930s (+5.2% 🔺)1.116s (+7.4% 🔺)0.186s541.53x
💻 LocalExpress1.005s (+2.9%)1.401s (+25.6% 🔺)0.396s431.65x
💻 LocalNitro1.033s (~)2.006s (~)0.973s301.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.582s (-11.9% 🟢)10.469s (-8.7% 🟢)1.886s61.00x
▲ VercelExpress8.809s (-13.0% 🟢)11.301s (-6.8% 🟢)2.492s61.03x
▲ VercelNext.js (Turbopack)9.135s (-27.0% 🟢)10.981s (-21.9% 🟢)1.846s61.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.464s (-27.1% 🟢)2.007s (-20.8% 🟢)0.543s451.00x
🌐 RedisNext.js (Turbopack)1.684s (+16.1% 🔺)2.006s (~)0.322s451.15x
🐘 PostgresNext.js (Turbopack)2.003s (+6.7% 🔺)2.376s (+15.8% 🔺)0.374s381.37x
🐘 PostgresExpress2.082s (+4.0%)2.685s (+11.8% 🔺)0.603s341.42x
💻 LocalNext.js (Turbopack)2.651s (-2.0%)3.008s (~)0.357s301.81x
💻 LocalExpress3.065s (~)3.801s (~)0.736s242.09x
💻 LocalNitro3.082s (+0.8%)4.010s (+2.2%)0.928s232.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.805s (-8.1% 🟢)28.789s (-8.0% 🟢)1.984s41.00x
▲ VercelNext.js (Turbopack)27.106s (-9.2% 🟢)28.561s (-11.2% 🟢)1.455s41.01x
▲ VercelNitro27.753s (-6.4% 🟢)29.833s (-5.3% 🟢)2.080s41.04x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.050s (-27.2% 🟢)3.370s (-32.7% 🟢)0.320s361.00x
🌐 RedisNext.js (Turbopack)3.417s (+13.3% 🔺)4.009s (+15.7% 🔺)0.592s301.12x
🐘 PostgresNext.js (Turbopack)4.087s (+8.3% 🔺)4.743s (+18.2% 🔺)0.656s261.34x
🐘 PostgresExpress4.159s (+2.6%)4.892s (+2.3%)0.732s251.36x
💻 LocalNext.js (Turbopack)8.712s (+2.2%)9.017s (~)0.305s142.86x
💻 LocalNitro9.104s (+2.1%)9.942s (+5.7% 🔺)0.838s132.99x
💻 LocalExpress9.303s (+1.6%)10.018s (+2.4%)0.716s123.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro70.956s (~)73.054s (~)2.098s21.00x
▲ VercelNext.js (Turbopack)74.172s (-9.0% 🟢)76.284s (-8.2% 🟢)2.112s21.05x
▲ VercelExpress78.647s (-8.6% 🟢)80.361s (-8.6% 🟢)1.714s21.11x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.225s (-22.9% 🟢)1.006s (~)0.781s601.00x
🐘 PostgresNext.js (Turbopack)0.258s (+7.9% 🔺)1.008s (~)0.750s601.15x
🐘 PostgresExpress0.290s (+4.6%)1.007s (~)0.717s601.29x
🌐 RedisNext.js (Turbopack)0.295s (+11.8% 🔺)1.004s (~)0.709s601.31x
💻 LocalNext.js (Turbopack)0.555s (+7.6% 🔺)1.004s (~)0.450s602.46x
💻 LocalNitro0.586s (+4.6%)1.005s (~)0.419s602.60x
💻 LocalExpress0.591s (+0.5%)1.005s (~)0.414s602.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.324s (-33.2% 🟢)2.785s (-22.1% 🟢)1.462s221.00x
▲ VercelNitro1.485s (-21.5% 🟢)3.267s (-5.9% 🟢)1.782s191.12x
▲ VercelNext.js (Turbopack)1.719s (-3.9%)3.216s (-7.0% 🟢)1.497s191.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.363s (-27.7% 🟢)1.006s (~)0.642s901.00x
🐘 PostgresNext.js (Turbopack)0.498s (+2.6%)1.007s (~)0.509s901.37x
🐘 PostgresExpress0.501s (~)1.007s (~)0.505s901.38x
🌐 RedisNext.js (Turbopack)1.179s (+6.1% 🔺)2.006s (+17.7% 🔺)0.826s453.25x
💻 LocalNext.js (Turbopack)2.585s (+4.1%)3.009s (~)0.425s307.12x
💻 LocalNitro2.602s (+12.0% 🔺)3.009s (~)0.407s307.16x
💻 LocalExpress2.643s (+4.4%)3.010s (~)0.367s307.28x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.555s (-13.2% 🟢)4.158s (-12.2% 🟢)1.602s221.00x
▲ VercelNext.js (Turbopack)3.112s (-12.5% 🟢)4.800s (-9.6% 🟢)1.688s191.22x
▲ VercelNitro3.299s (+23.6% 🔺)5.177s (+17.1% 🔺)1.878s181.29x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.574s (-29.7% 🟢)1.006s (~)0.432s1201.00x
🐘 PostgresNext.js (Turbopack)0.799s (+4.2%)1.025s (+1.8%)0.226s1181.39x
🐘 PostgresExpress0.803s (+1.7%)1.008s (~)0.205s1201.40x
🌐 RedisNext.js (Turbopack)2.830s (+2.1%)3.084s (+1.7%)0.255s394.93x
💻 LocalNext.js (Turbopack)10.621s (+3.1%)11.208s (+4.0%)0.587s1118.50x
💻 LocalNitro11.386s (+9.5% 🔺)12.032s (+9.1% 🔺)0.646s1019.83x
💻 LocalExpress11.560s (+5.8% 🔺)12.029s (+3.9%)0.469s1020.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.275s (-9.1% 🟢)7.871s (-10.4% 🟢)1.596s161.00x
▲ VercelNitro7.409s (+17.5% 🔺)9.397s (+17.1% 🔺)1.988s131.18x
▲ VercelNext.js (Turbopack)21.742s (+257.6% 🔺)23.522s (+202.2% 🔺)1.780s113.46x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.157s (-27.2% 🟢)0.999s (~)0.001s (+10.0% 🔺)1.010s (~)0.854s101.00x
💻 LocalNext.js (Turbopack)0.174s (+2.9%)1.003s (~)0.012s (+15.7% 🔺)1.018s (~)0.844s101.11x
🐘 PostgresNext.js (Turbopack)0.200s (+5.1% 🔺)1.000s (~)0.001s (~)1.011s (~)0.810s101.28x
💻 LocalNitro0.208s (~)1.004s (~)0.012s (+17.3% 🔺)1.019s (~)0.811s101.33x
💻 LocalExpress0.213s (+4.2%)1.005s (~)0.013s (+11.1% 🔺)1.020s (~)0.806s101.36x
🐘 PostgresExpress0.217s (+2.5%)0.995s (~)0.002s (~)1.010s (~)0.793s101.39x
🌐 RedisNext.js (Turbopack)0.249s (+67.7% 🔺)1.001s (~)0.042s (+2370.6% 🔺)1.048s (+4.0%)0.799s101.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.470s (-13.4% 🟢)2.527s (-22.4% 🟢)0.887s (+69.0% 🔺)3.885s (-8.0% 🟢)2.415s101.00x
▲ VercelExpress1.587s (+4.6%)2.519s (-13.5% 🟢)0.851s (+11.2% 🔺)3.861s (-6.8% 🟢)2.274s101.08x
▲ VercelNext.js (Turbopack)1.630s (-3.8%)2.978s (-6.8% 🟢)0.630s (-34.1% 🟢)4.037s (-12.6% 🟢)2.407s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.498s (+18.7% 🔺)1.002s (~)0.003s (+7.1% 🔺)1.012s (~)0.513s601.00x
🐘 PostgresNitro0.505s (-21.3% 🟢)1.006s (~)0.003s (-21.1% 🟢)1.020s (~)0.514s591.01x
🐘 PostgresExpress0.620s (-0.8%)1.004s (~)0.004s (-7.7% 🟢)1.022s (~)0.402s591.24x
🐘 PostgresNext.js (Turbopack)0.642s (+6.5% 🔺)1.009s (~)0.004s (+12.1% 🔺)1.023s (~)0.381s591.29x
💻 LocalNext.js (Turbopack)0.748s (+11.5% 🔺)1.012s (~)0.010s (-5.9% 🟢)1.109s (+8.3% 🔺)0.361s591.50x
💻 LocalExpress0.748s (+4.6%)1.014s (~)0.010s (+2.9%)1.025s (~)0.277s591.50x
💻 LocalNitro0.836s (-12.4% 🟢)1.012s (~)0.010s (+7.7% 🔺)1.117s (-9.0% 🟢)0.281s541.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.133s (-7.7% 🟢)5.540s (-9.5% 🟢)0.455s (+127.5% 🔺)6.456s (-4.3%)2.323s101.00x
▲ VercelNitro4.218s (~)5.662s (+0.9%)0.687s (+158.3% 🔺)6.838s (+7.5% 🔺)2.620s91.02x
▲ VercelExpress5.265s (+30.5% 🔺)6.659s (+15.8% 🔺)0.401s (+60.8% 🔺)7.509s (+16.0% 🔺)2.244s101.27x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.927s (+4.9%)1.053s (+5.2% 🔺)0.000s (+110.5% 🔺)1.057s (+5.2% 🔺)0.130s571.00x
🐘 PostgresNitro0.934s (-1.2%)1.152s (+5.8% 🔺)0.000s (-100.0% 🟢)1.161s (+3.9%)0.227s521.01x
🐘 PostgresNext.js (Turbopack)0.945s (+2.0%)1.225s (+10.0% 🔺)0.000s (+Infinity% 🔺)1.233s (+8.4% 🔺)0.287s491.02x
🐘 PostgresExpress0.991s (+2.3%)1.271s (+4.4%)0.000s (+108.5% 🔺)1.297s (+5.2% 🔺)0.306s471.07x
💻 LocalNitro1.254s (+5.4% 🔺)2.022s (~)0.000s (-57.1% 🟢)2.024s (~)0.769s301.35x
💻 LocalNext.js (Turbopack)1.273s (+1.7%)2.020s (~)0.000s (+44.4% 🔺)2.023s (~)0.750s301.37x
💻 LocalExpress1.478s (+20.3% 🔺)2.022s (~)0.000s (-46.4% 🟢)2.203s (+8.9% 🔺)0.725s281.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.713s (-4.0%)3.823s (-3.1%)0.000s (-53.3% 🟢)4.272s (-3.1%)1.558s151.00x
▲ VercelNitro2.721s (+2.2%)3.848s (-2.4%)0.000s (-100.0% 🟢)4.338s (-0.8%)1.617s141.00x
▲ VercelNext.js (Turbopack)3.122s (-30.4% 🟢)4.435s (-25.9% 🟢)0.000s (-48.7% 🟢)4.915s (-23.6% 🟢)1.793s131.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.670s (-4.5%)2.033s (-3.3%)0.000s (+Infinity% 🔺)2.065s (-3.2%)0.395s301.00x
🌐 RedisNext.js (Turbopack)1.734s (-1.6%)2.071s (+3.5%)0.000s (+3.4%)2.075s (+3.4%)0.342s291.04x
🐘 PostgresExpress1.797s (+2.2%)2.140s (+3.6%)0.000s (-31.0% 🟢)2.154s (+3.5%)0.357s281.08x
🐘 PostgresNext.js (Turbopack)1.859s (+1.0%)2.146s (+0.6%)0.000s (NaN%)2.161s (~)0.303s281.11x
💻 LocalNext.js (Turbopack)3.458s (-4.2%)4.031s (-3.2%)0.001s (~)4.035s (-3.2%)0.576s152.07x
💻 LocalExpress3.593s (+3.2%)4.033s (~)0.000s (+100.0% 🔺)4.036s (~)0.443s152.15x
💻 LocalNitro3.606s (+12.5% 🔺)4.034s (+1.6%)0.000s (+6.7% 🔺)4.036s (+1.6%)0.430s152.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.788s (-10.4% 🟢)4.979s (-8.6% 🟢)0.001s (+600.0% 🔺)5.501s (-6.6% 🟢)1.713s111.00x
▲ VercelNext.js (Turbopack)3.835s5.212s0.001s5.671s1.836s111.01x
▲ VercelNitro4.161s (-21.7% 🟢)5.476s (-17.6% 🟢)0.000s (-100.0% 🟢)5.960s (-15.5% 🟢)1.799s111.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNitro21/21
▲ VercelExpress13/21
Fastest World by Framework

Winner determined by most benchmark wins

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

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

Follow-up fixes to the @workflow/swc-plugin SWC transform to fully support synchronous "use step" functions while preserving "use workflow" async-only behavior, including stricter module-level export validation to prevent Node-only code from leaking into workflow/client bundles.

Changes:

  • Restore/extend file-level "use step" export validation (allow only function exports; reject non-function exports and re-exports) and refine InvalidExport messaging to distinguish step vs workflow rules.
  • Add/adjust SWC plugin fixtures to cover sync step usage (including class static methods and var/let function expressions) and to assert sync "use workflow" still errors.
  • Update spec.md error table + supported forms docs, and add a patch changeset for @workflow/swc-plugin.

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsAdjusts InvalidExport messaging and reintroduces file-level "use step" export validation logic.
packages/swc-plugin-workflow/spec.mdDocuments sync step support and clarifies export restrictions for "use step" vs "use workflow".
.changeset/sync-step-followup.mdPublishes the export-validation behavior change as a patch.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/input.jsNew fixture input covering sync step usage in class + function-expression contexts.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-workflow.jsExpected workflow-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.jsExpected step-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-client.jsExpected client-bundle output for the new sync-step-class fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/input.jsNew error fixture asserting sync "use workflow" errors while sync "use step" passes.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.jsExpected workflow-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.jsExpected step-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.jsExpected client-mode output for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-workflow.stderrExpected workflow-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.stderrExpected step-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-client.stderrExpected client-mode stderr for sync-workflow error fixture.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-workflow.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-client.stderrUpdates/records expected stderr for invalid exports in file-level "use step" files.

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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs

@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

Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated
Comment threadpackages/swc-plugin-workflow/spec.md
- Reject uninitialized var exports (export let x) in step files
- Reject local named exports (export { value }) in step files since
we cannot statically verify the binding is a function
- Add test coverage for both new rejection cases
- Add sync variants for let/var arrow functions in spec.md
- Add re-export with specifiers to invalid-exports (export { x } from)
- Add error fixture for default class export in step files
- Add fixture for sync default function export (should pass)
- Total: 220 tests (165 fixture + 33 error + 22 unit)
@TooTallNate
TooTallNate enabled auto-merge (squash) April 9, 2026 17:25
@TooTallNate
TooTallNate merged commit ebb0a4a into mainApr 9, 2026
178 of 183 checks passed
@TooTallNate
TooTallNate deleted the nr/sync-step-followup branch April 9, 2026 17:32
@ghostghost mentioned this pull request Apr 9, 2026
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