Skip to content

Fix CLI health check for Astro/Sveltekit and add debug http logs to world-vercel#1442

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/debug-logs
Mar 18, 2026
Merged

Fix CLI health check for Astro/Sveltekit and add debug http logs to world-vercel#1442
VaguelySerious merged 3 commits into
mainfrom
peter/debug-logs

Conversation

@VaguelySerious
Copy link
Copy Markdown
Member

No description provided.

VaguelySerious and others added 2 commits March 18, 2026 12:29
When DEBUG=workflow:* is set:

1. Runtime emits timing logs for each event page load (page number,
   event count, ms) and total event loading (total events, pages, ms).

2. World-vercel emits timing logs for every HTTP request to
   workflow-server (method, endpoint, status code, duration ms).

These logs help diagnose performance issues in the V2 inline execution
loop, such as slow event loading or high-latency API calls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The CLI's getEnvVars() function reads a fixed list of env vars but was
missing WORKFLOW_LOCAL_BASE_URL. The health check command defaults to
port 3000 when this var is absent. Frameworks that use non-standard
ports (Astro: 4321, SvelteKit: 5173) need this env var to be read
for the health check to connect to the correct port.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: 9c390e2

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

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

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

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

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 18, 2026

WORKFLOW_VERCEL_PROJECT: env.WORKFLOW_VERCEL_PROJECT || '',
WORKFLOW_VERCEL_PROJECT_NAME: env.WORKFLOW_VERCEL_PROJECT_NAME || '',
WORKFLOW_VERCEL_TEAM: env.WORKFLOW_VERCEL_TEAM || '',
WORKFLOW_LOCAL_BASE_URL: env.WORKFLOW_LOCAL_BASE_URL || '',
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The CLI's getEnvVars() function reads a fixed list of env vars but was
missing WORKFLOW_LOCAL_BASE_URL. The health check command defaults to
port 3000 when this var is absent. Frameworks that use non-standard
ports (Astro: 4321, SvelteKit: 5173) need this env var to be read
for the health check to connect to the correct port.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 756 2 67 825
✅ 💻 Local Development 782 0 118 900
✅ 📦 Local Production 782 0 118 900
❌ 🐘 Local Postgres 781 1 118 900
✅ 🪟 Windows 72 0 3 75
❌ 🌍 Community Worlds 119 55 15 189
✅ 📋 Other 198 0 27 225
Total 3490 58 466 4014

❌ Failed Tests

▲ Vercel Production (2 failed)

nitro (2 failed):

🐘 Local Postgres (1 failed)

fastify-stable (1 failed):

  • webhookWorkflow | wrun_01KM178KVP0B8BCA309RM78RHA
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM178B1NBKEQREEBP7ERB7HD
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM17E1CM4EC6DXKVFNYER1C2

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM178B1NBKEQREEBP7ERB7HD
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM17E1CM4EC6DXKVFNYER1C2

turso (51 failed):

  • addTenWorkflow | wrun_01KM1776N2CECEJJF4CG39KVP0
  • addTenWorkflow | wrun_01KM1776N2CECEJJF4CG39KVP0
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KM177HKTCSC83A8M89J6DN7X
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KM177DVP4MCQWHVK1PNEM52S
  • promiseRaceWorkflow | wrun_01KM177HEE9ZHH5V03D4Z4TKNJ
  • promiseAnyWorkflow | wrun_01KM177KNEJK45JQ3H6HVT9RFW
  • importedStepOnlyWorkflow | wrun_01KM177XMXYTA1WM0ZXSM2AQ1N
  • hookWorkflow | wrun_01KM177ZZG3VN586N8K6TF5E2M
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM178B1NBKEQREEBP7ERB7HD
  • webhookWorkflow | wrun_01KM178KVP0B8BCA309RM78RHA
  • sleepingWorkflow | wrun_01KM178TCAKE1WWN9T6FCJ4WAK
  • parallelSleepWorkflow | wrun_01KM179604PSDTGQYHWCGR1X50
  • nullByteWorkflow | wrun_01KM1799D4HG36AXQYWMXH6KD8
  • workflowAndStepMetadataWorkflow | wrun_01KM179BT2DY4SERYWHC207T79
  • fetchWorkflow | wrun_01KM17A9VXKVEF1F0VX6YW38TE
  • promiseRaceStressTestWorkflow | wrun_01KM17ADARQX7X12ZESH4AG8B0
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KM17DAZK2EVFBXV5AZCTA5TF
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM17E1CM4EC6DXKVFNYER1C2
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KM17EQQPRYH4V7SVVP0JQ6V6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KM17FBMDM6M546Q0S0356WKH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KM17FMKGJCQ15BBWWMSHYSER
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KM17FT8PWGJ6M2DCT27G3EPV
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KM17FWDGKY0BHCH17XE3ZYT7
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KM17GCG2XQEBD96RMR7RX9H5
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KM17GJC0MY1W5MRATHAPK49G
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KM17GS32XKE44K9NENP4EDP5
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KM17GZT2KVWZK25412P1M4M4
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KM17HAVE29N9E400TY2AS5JF
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KM17HJXN82817DMJQETMF2ZD
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KM17HSTD1H7XS63RT6BTEJPX
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KM17J4NAPQ1BYVKSFDC61X1G
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KM17JHKD7B2EBXV12N35EN6K
  • cancelRun - cancelling a running workflow | wrun_01KM17JS2JBQS0N8H2N8WZACK1
  • cancelRun via CLI - cancelling a running workflow | wrun_01KM17K2KZKXT9Q30E8RMQ25TK
  • 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_01KM17KF4ESR3NAJNDXKH75ETP
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KM17M48F8W0W0589D5E62Y6E
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KM17MEPDVS2JV984R582ZJQF

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 68 0 7
✅ example 68 0 7
✅ express 68 0 7
✅ fastify 68 0 7
✅ hono 68 0 7
✅ nextjs-turbopack 73 0 2
✅ nextjs-webpack 73 0 2
❌ nitro 66 2 7
✅ nuxt 68 0 7
✅ sveltekit 68 0 7
✅ vite 68 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
✅ fastify-stable 66 0 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-canary 55 0 20
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
✅ fastify-stable 66 0 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-canary 55 0 20
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
❌ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
❌ fastify-stable 65 1 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-canary 55 0 20
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 72 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
❌ mongodb 53 2 3
✅ redis-dev 3 0 2
❌ redis 53 2 3
✅ turso-dev 3 0 2
❌ turso 4 51 3
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 66 0 9
✅ e2e-local-postgres-nest-stable 66 0 9
✅ e2e-local-prod-nest-stable 66 0 9

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.042s (-2.3%) 1.006s (~) 0.964s 10 1.00x
💻 Local Express 0.043s (-1.4%) 1.006s (~) 0.962s 10 1.04x
💻 Local Next.js (Turbopack) 0.050s (+18.4% 🔺) 1.005s (~) 0.956s 10 1.18x
🐘 Postgres Nitro 0.054s (-12.1% 🟢) 1.012s (~) 0.957s 10 1.30x
🌐 Redis Next.js (Turbopack) 0.055s (+2.2%) 1.006s (~) 0.950s 10 1.32x
🐘 Postgres Next.js (Turbopack) 0.059s (~) 1.012s (~) 0.953s 10 1.40x
🐘 Postgres Express 0.068s (-13.5% 🟢) 1.012s (-1.3%) 0.944s 10 1.62x
🌐 MongoDB Next.js (Turbopack) 0.105s (+5.4% 🔺) 1.008s (~) 0.903s 10 2.50x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.460s (-4.8%) 2.224s (-10.3% 🟢) 1.764s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.522s (+7.5% 🔺) 2.744s (+14.5% 🔺) 2.222s 10 1.14x
▲ Vercel Express 0.523s (+14.3% 🔺) 2.612s (+20.0% 🔺) 2.089s 10 1.14x

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

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.095s (-2.6%) 2.005s (~) 0.910s 10 1.00x
💻 Local Next.js (Turbopack) 1.117s (+1.2%) 2.005s (~) 0.889s 10 1.02x
🌐 Redis Next.js (Turbopack) 1.126s (~) 2.006s (~) 0.880s 10 1.03x
🐘 Postgres Nitro 1.129s (-1.9%) 2.013s (~) 0.884s 10 1.03x
💻 Local Express 1.140s (+3.1%) 2.005s (~) 0.865s 10 1.04x
🐘 Postgres Next.js (Turbopack) 1.144s (~) 2.013s (~) 0.868s 10 1.04x
🐘 Postgres Express 1.163s (+0.9%) 2.012s (~) 0.849s 10 1.06x
🌐 MongoDB Next.js (Turbopack) 1.316s (~) 2.008s (~) 0.692s 10 1.20x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.021s (-5.1% 🟢) 3.411s (-8.1% 🟢) 1.390s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.076s (+1.9%) 3.792s (+7.4% 🔺) 1.715s 10 1.03x
▲ Vercel Express 38.799s (+1720.1% 🔺) 40.371s (+1061.2% 🔺) 1.572s 10 19.20x

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

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 10.665s (-2.5%) 11.022s (~) 0.357s 3 1.00x
🐘 Postgres Nitro 10.744s (-1.6%) 11.042s (~) 0.298s 3 1.01x
🌐 Redis Next.js (Turbopack) 10.796s (~) 11.023s (~) 0.227s 3 1.01x
💻 Local Next.js (Turbopack) 10.817s (+1.5%) 11.022s (~) 0.204s 3 1.01x
💻 Local Express 10.893s (+1.6%) 11.023s (~) 0.129s 3 1.02x
🐘 Postgres Next.js (Turbopack) 10.974s (+1.1%) 11.376s (+3.0%) 0.403s 3 1.03x
🐘 Postgres Express 11.044s (+0.8%) 11.379s (+3.1%) 0.335s 3 1.04x
🌐 MongoDB Next.js (Turbopack) 12.230s (~) 13.021s (~) 0.791s 3 1.15x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 17.151s (-1.5%) 18.850s (-0.6%) 1.699s 2 1.00x
▲ Vercel Nitro 17.657s (-2.1%) 18.630s (-8.3% 🟢) 0.973s 2 1.03x
▲ Vercel Express 17.746s (+2.4%) 19.800s (+5.1% 🔺) 2.054s 2 1.03x

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

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 26.792s (~) 27.052s (~) 0.259s 3 1.00x
💻 Local Nitro 26.820s (-2.4%) 27.052s (-3.6%) 0.232s 3 1.00x
🐘 Postgres Nitro 26.822s (-1.6%) 27.062s (-3.6%) 0.239s 3 1.00x
🐘 Postgres Next.js (Turbopack) 27.122s (~) 28.066s (+1.2%) 0.945s 3 1.01x
💻 Local Next.js (Turbopack) 27.221s (+1.9%) 28.050s (+3.7%) 0.829s 3 1.02x
🐘 Postgres Express 27.268s (~) 28.065s (~) 0.797s 3 1.02x
💻 Local Express 27.452s (+1.8%) 28.051s (+3.7%) 0.599s 3 1.02x
🌐 MongoDB Next.js (Turbopack) 30.399s (~) 31.036s (~) 0.636s 2 1.13x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 46.358s (+2.0%) 47.845s (+1.2%) 1.486s 2 1.00x
▲ Vercel Nitro 50.740s (+14.0% 🔺) 51.600s (+12.1% 🔺) 0.859s 2 1.09x
▲ Vercel Next.js (Turbopack) 53.239s (+14.0% 🔺) 54.956s (+13.4% 🔺) 1.717s 2 1.15x

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

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 53.431s (-1.5%) 54.105s (-1.8%) 0.674s 2 1.00x
🌐 Redis Next.js (Turbopack) 53.475s (~) 54.095s (~) 0.619s 2 1.00x
🐘 Postgres Next.js (Turbopack) 54.169s (~) 55.105s (+1.8%) 0.936s 2 1.01x
🐘 Postgres Express 54.325s (~) 55.097s (~) 0.772s 2 1.02x
💻 Local Nitro 55.181s (-2.6%) 56.098s (-1.8%) 0.917s 2 1.03x
💻 Local Next.js (Turbopack) 56.035s (+2.2%) 56.099s (+1.8%) 0.064s 2 1.05x
💻 Local Express 56.399s (+1.7%) 57.105s (+1.8%) 0.706s 2 1.06x
🌐 MongoDB Next.js (Turbopack) 61.031s (+0.7%) 61.578s (+0.9%) 0.547s 2 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 95.195s (-5.9% 🟢) 96.971s (-5.5% 🟢) 1.776s 1 1.00x
▲ Vercel Nitro 95.496s (-1.7%) 96.985s (-2.6%) 1.489s 1 1.00x
▲ Vercel Next.js (Turbopack) 112.504s (+14.8% 🔺) 114.770s (+15.2% 🔺) 2.266s 1 1.18x

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

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.242s (-2.3%) 2.011s (~) 0.769s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.268s (-0.5%) 2.012s (~) 0.744s 15 1.02x
🐘 Postgres Express 1.278s (~) 2.011s (~) 0.733s 15 1.03x
🌐 Redis Next.js (Turbopack) 1.413s (+1.8%) 2.006s (~) 0.593s 15 1.14x
💻 Local Nitro 1.483s (-0.9%) 2.005s (~) 0.522s 15 1.19x
💻 Local Next.js (Turbopack) 1.526s (+2.0%) 2.006s (~) 0.480s 15 1.23x
💻 Local Express 1.527s (+1.8%) 2.005s (~) 0.478s 15 1.23x
🌐 MongoDB Next.js (Turbopack) 2.171s (~) 3.008s (~) 0.837s 10 1.75x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.374s (-2.7%) 3.448s (-16.1% 🟢) 1.074s 9 1.00x
▲ Vercel Next.js (Turbopack) 2.524s (-6.1% 🟢) 3.853s (-4.0%) 1.329s 8 1.06x
▲ Vercel Express 2.758s (+22.0% 🔺) 4.305s (+14.3% 🔺) 1.548s 7 1.16x

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

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.406s (-2.1%) 3.014s (~) 0.608s 10 1.00x
🐘 Postgres Express 2.473s (+0.9%) 3.013s (~) 0.540s 10 1.03x
🐘 Postgres Next.js (Turbopack) 2.494s (~) 3.013s (~) 0.519s 10 1.04x
🌐 Redis Next.js (Turbopack) 2.542s (-1.5%) 3.008s (~) 0.466s 10 1.06x
💻 Local Nitro 2.695s (-6.5% 🟢) 3.008s (~) 0.312s 10 1.12x
💻 Local Next.js (Turbopack) 2.865s (+4.2%) 3.008s (-3.2%) 0.143s 10 1.19x
💻 Local Express 2.882s (+8.6% 🔺) 3.107s (+3.3%) 0.225s 10 1.20x
🌐 MongoDB Next.js (Turbopack) 4.666s (+0.6%) 5.178s (~) 0.512s 6 1.94x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.406s (-6.7% 🟢) 3.639s (-7.9% 🟢) 1.233s 9 1.00x
▲ Vercel Next.js (Turbopack) 2.783s (-5.4% 🟢) 4.143s (-8.7% 🟢) 1.360s 8 1.16x
▲ Vercel Express 2.915s (+19.3% 🔺) 4.389s (+17.6% 🔺) 1.473s 7 1.21x

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

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.580s (~) 4.016s (~) 0.435s 8 1.00x
🐘 Postgres Express 3.616s (+1.2%) 4.013s (~) 0.397s 8 1.01x
🐘 Postgres Next.js (Turbopack) 3.816s (+1.2%) 4.016s (~) 0.200s 8 1.07x
🌐 Redis Next.js (Turbopack) 4.165s (-0.5%) 5.011s (~) 0.845s 6 1.16x
💻 Local Nitro 6.984s (-12.4% 🟢) 7.415s (-15.5% 🟢) 0.431s 5 1.95x
💻 Local Next.js (Turbopack) 7.788s (+26.6% 🔺) 8.516s (+25.0% 🔺) 0.728s 4 2.18x
💻 Local Express 8.242s (+21.9% 🔺) 8.772s (+16.7% 🔺) 0.530s 4 2.30x
🌐 MongoDB Next.js (Turbopack) 9.868s (+0.6%) 10.348s (~) 0.480s 3 2.76x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.735s (-6.8% 🟢) 4.308s (-0.7%) 1.573s 7 1.00x
▲ Vercel Nitro 3.427s (+7.2% 🔺) 4.874s (-1.3%) 1.447s 7 1.25x
▲ Vercel Next.js (Turbopack) 3.614s (-10.6% 🟢) 5.075s (-2.6%) 1.461s 6 1.32x

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

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.236s (-2.4%) 2.013s (~) 0.777s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.266s (-0.6%) 2.011s (~) 0.746s 15 1.02x
🐘 Postgres Express 1.293s (+1.8%) 2.012s (~) 0.719s 15 1.05x
🌐 Redis Next.js (Turbopack) 1.307s (-2.4%) 2.006s (~) 0.699s 15 1.06x
💻 Local Nitro 1.472s (-2.2%) 2.005s (~) 0.534s 15 1.19x
💻 Local Next.js (Turbopack) 1.538s (~) 2.005s (~) 0.467s 15 1.24x
💻 Local Express 1.544s (+2.8%) 2.005s (~) 0.461s 15 1.25x
🌐 MongoDB Next.js (Turbopack) 2.179s (-0.6%) 3.008s (~) 0.830s 10 1.76x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.227s (-1.0%) 3.325s (-10.3% 🟢) 1.099s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.321s (-5.4% 🟢) 3.870s (+2.4%) 1.550s 8 1.04x
▲ Vercel Express 2.340s (-11.5% 🟢) 3.947s (-2.7%) 1.607s 8 1.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.392s (-3.0%) 3.012s (~) 0.620s 10 1.00x
🐘 Postgres Express 2.484s (+1.4%) 3.015s (~) 0.531s 10 1.04x
🐘 Postgres Next.js (Turbopack) 2.503s (-1.4%) 3.013s (-3.2%) 0.510s 10 1.05x
🌐 Redis Next.js (Turbopack) 2.557s (-1.7%) 3.008s (~) 0.451s 10 1.07x
💻 Local Nitro 2.673s (-13.5% 🟢) 3.008s (-20.0% 🟢) 0.334s 10 1.12x
💻 Local Next.js (Turbopack) 2.881s (+5.3% 🔺) 3.341s (+11.1% 🔺) 0.460s 9 1.20x
💻 Local Express 2.922s (+2.9%) 3.008s (-3.3%) 0.085s 10 1.22x
🌐 MongoDB Next.js (Turbopack) 4.694s (+2.3%) 5.177s (~) 0.483s 6 1.96x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.391s (-11.0% 🟢) 3.951s (-6.3% 🟢) 1.560s 8 1.00x
▲ Vercel Nitro 2.468s (-38.1% 🟢) 3.463s (-36.3% 🟢) 0.995s 9 1.03x
▲ Vercel Next.js (Turbopack) 3.604s (-11.3% 🟢) 4.916s (-6.6% 🟢) 1.311s 7 1.51x

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

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.565s (-1.0%) 4.016s (~) 0.450s 8 1.00x
🐘 Postgres Express 3.629s (+0.6%) 4.015s (~) 0.386s 8 1.02x
🐘 Postgres Next.js (Turbopack) 3.799s (-1.6%) 4.014s (-3.1%) 0.215s 8 1.07x
🌐 Redis Next.js (Turbopack) 4.189s (+1.4%) 4.869s (-2.9%) 0.680s 7 1.17x
💻 Local Nitro 7.647s (-13.2% 🟢) 8.017s (-15.8% 🟢) 0.369s 4 2.15x
💻 Local Next.js (Turbopack) 8.039s (+17.6% 🔺) 8.516s (+13.3% 🔺) 0.476s 4 2.25x
💻 Local Express 8.383s (+6.5% 🔺) 9.022s (+9.1% 🔺) 0.639s 4 2.35x
🌐 MongoDB Next.js (Turbopack) 9.756s (-2.2%) 10.349s (~) 0.593s 3 2.74x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.815s (-8.5% 🟢) 4.322s (-8.7% 🟢) 1.506s 7 1.00x
▲ Vercel Nitro 2.830s (-2.4%) 4.198s (-5.4% 🟢) 1.367s 8 1.01x
▲ Vercel Next.js (Turbopack) 4.012s (+12.1% 🔺) 5.778s (+13.3% 🔺) 1.766s 6 1.42x

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

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.142s (-29.8% 🟢) 1.003s (~) 0.011s (-4.3%) 1.016s (~) 0.875s 10 1.00x
💻 Local Next.js (Turbopack) 0.174s (+23.2% 🔺) 1.002s (~) 0.011s (+26.7% 🔺) 1.018s (~) 0.843s 10 1.23x
🐘 Postgres Nitro 0.180s (-14.8% 🟢) 0.998s (~) 0.001s (-6.7% 🟢) 1.012s (~) 0.833s 10 1.27x
🌐 Redis Next.js (Turbopack) 0.198s (+10.9% 🔺) 1.000s (~) 0.002s (+23.1% 🔺) 1.007s (~) 0.810s 10 1.39x
💻 Local Express 0.199s (+35.8% 🔺) 1.003s (~) 0.011s (-0.9%) 1.017s (~) 0.818s 10 1.40x
🐘 Postgres Next.js (Turbopack) 0.201s (-7.3% 🟢) 1.001s (~) 0.002s (+14.3% 🔺) 1.012s (~) 0.812s 10 1.41x
🐘 Postgres Express 0.228s (+2.3%) 0.995s (~) 0.002s (+21.4% 🔺) 1.012s (~) 0.784s 10 1.61x
🌐 MongoDB Next.js (Turbopack) 0.525s (+8.9% 🔺) 0.926s (-4.2%) 0.002s (+7.1% 🔺) 1.009s (~) 0.483s 10 3.70x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.700s (+6.1% 🔺) 3.097s (+10.4% 🔺) 0.007s (+46.7% 🔺) 3.677s (+9.7% 🔺) 1.977s 10 1.00x
▲ Vercel Nitro 1.738s (+3.0%) 2.836s (+11.7% 🔺) 0.006s (-25.0% 🟢) 3.359s (+6.3% 🔺) 1.621s 10 1.02x
▲ Vercel Express 1.885s (+6.3% 🔺) 3.022s (+6.2% 🔺) 0.005s (+16.7% 🔺) 3.654s (+3.9%) 1.769s 10 1.11x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 12/12
🐘 Postgres Nitro 12/12
▲ Vercel Nitro 5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 5/12
Next.js (Turbopack) 🐘 Postgres 5/12
Nitro 💻 Local 5/12
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

c
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Copy link
Copy Markdown
Contributor

@karthikscale3 karthikscale3 left a comment

Choose a reason for hiding this comment

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

Review

No functional regressions. All three changes are correct in behavior:

  • The env.ts fix resolves a real bug for non-default-port frameworks
  • Both debug logging additions are properly gated and don't affect production behavior
  • The fetch timing wrapper doesn't alter the request/response flow

The only issue worth raising is the import ordering in world-vercel/src/utils.ts -- the new code should be moved below all imports to maintain code conventions and avoid potential lint failures.

): void {
if (HTTP_DEBUG_ENABLED) {
console.debug(
`[workflow:world-vercel:http] ${method} ${endpoint} -> ${status} (${ms}ms)`
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.

love this!

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.

(although I assumed we already had this 🤷🏼 )

@VaguelySerious VaguelySerious merged commit fdbe853 into main Mar 18, 2026
102 of 105 checks passed
@VaguelySerious VaguelySerious deleted the peter/debug-logs branch March 18, 2026 19:58
@ghost ghost mentioned this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants