Skip to content

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

@VaguelySerious@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
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;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
[world-vercel] Read hasMore in v4 list pagination by VaguelySerious · Pull Request #2486 · vercel/workflow · GitHub
Skip to content

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

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

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

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

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

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

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

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

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

@VaguelySerious@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' [world-vercel] Read hasMore in v4 list pagination by VaguelySerious · Pull Request #2486 · vercel/workflow · GitHub
Skip to content

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

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

[world-vercel] Read hasMore in v4 list pagination - #2486

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore
Jun 18, 2026
Merged

[world-vercel] Read hasMore in v4 list pagination#2486
VaguelySerious merged 3 commits into
mainfrom
peter/v4-list-explicit-hasmore

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Context

When the Vercel backend's event endpoints moved to the v4 wire format (5.0.0-beta.17), the LIST response began ending with a sentinel frame {_end: 1, next?: cursor}. The backend returns a trailing next cursor on the final page too — it doubles as the resume point for incremental loads — so next is present even when no more pages remain.

The SDK derived hasMore = Boolean(next), so every non-empty page reported "more pages". The runtime's replay event loader is a while (hasMore) loop, so it issued one extra request that returns an empty page on every event-log load — i.e. on every replay of every run. A single-page run that needed 1 list request now needs 2.

Change

Read the backend's explicit hasMore from the sentinel and use it, falling back to Boolean(next) for older backends that don't emit the flag. The cursor mapping is unchanged — incremental loads still get the trailing cursor.

This pairs with the backend change that adds hasMore to the sentinel. Both sides are backward-compatible: a new SDK against an old backend keeps the (correct, if slower) Boolean(next) behavior, and an old SDK ignores the new field.

Tests

  • events-v4.test.tsconsumeListFrameStream/getWorkflowRunEventsV4 captures an explicit hasMore: false even when a trailing next is present; leaves hasMore undefined for a legacy sentinel.
  • events.test.tsgetWorkflowRunEvents maps explicit hasMore true/false through, keeps the cursor, and falls back to Boolean(next) against a legacy server.

All @workflow/world-vercel unit tests pass; typecheck and lint clean.

🤖 Generated with Claude Code

The v4 LIST frame stream ends with a sentinel that carries a trailing `next`
cursor even on the final page (it doubles as the incremental-load resume
point). Deriving `hasMore = Boolean(next)` therefore reports "more pages" on
every non-empty page, so the runtime's `while (hasMore)` replay loader issues
one extra empty-page request to the backend on every event-log load.
Read the server's explicit `hasMore` from the sentinel and use it, falling
back to `Boolean(next)` for older servers that don't emit it. Pairs with the
backend change adding `hasMore` to the sentinel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerJune 17, 2026 20:44
@vercel

vercelBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 255caea

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

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

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

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

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production144202301672
✅ 💻 Local Development190902192128
✅ 📦 Local Production190902192128
✅ 🐘 Local Postgres189502332128
✅ 🪟 Windows15200152
✅ 📋 Other88501791064
Total8192010809272

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro125027
✅ example125027
✅ express125027
✅ fastify125027
✅ hono125027
✅ nextjs-turbopack14903
✅ nextjs-webpack14903
✅ nitro125027
✅ nuxt125027
✅ sveltekit14408
✅ vite125027
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable127025
✅ express-stable127025
✅ fastify-stable127025
✅ hono-stable127025
✅ nextjs-turbopack-canary133019
✅ nextjs-turbopack-stable-lazy-discovery-disabled15200
✅ nextjs-turbopack-stable-lazy-discovery-enabled15200
✅ nextjs-webpack-canary133019
✅ nextjs-webpack-stable-lazy-discovery-disabled15200
✅ nextjs-webpack-stable-lazy-discovery-enabled15200
✅ nitro-stable127025
✅ nuxt-stable127025
✅ sveltekit-stable14606
✅ vite-stable127025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable126026
✅ express-stable126026
✅ fastify-stable126026
✅ hono-stable126026
✅ nextjs-turbopack-canary132020
✅ nextjs-turbopack-stable-lazy-discovery-disabled15101
✅ nextjs-turbopack-stable-lazy-discovery-enabled15101
✅ nextjs-webpack-canary132020
✅ nextjs-webpack-stable-lazy-discovery-disabled15101
✅ nextjs-webpack-stable-lazy-discovery-enabled15101
✅ nitro-stable126026
✅ nuxt-stable126026
✅ sveltekit-stable14507
✅ vite-stable126026
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack15200
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable127025
✅ e2e-local-dev-tanstack-start-127025
✅ e2e-local-postgres-nest-stable126026
✅ e2e-local-postgres-tanstack-start-126026
✅ e2e-local-prod-nest-stable127025
✅ e2e-local-prod-tanstack-start-127025
✅ e2e-vercel-prod-tanstack-start125027

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.032s (-25.1% 🟢)1.005s (~)0.973s101.00x
💻 LocalExpress0.046s (-3.0%)1.007s (~)0.961s101.44x
💻 LocalNext.js (Turbopack)0.066s (+2.0%)1.006s (~)0.941s102.07x
🐘 PostgresExpress0.067s (+11.5% 🔺)1.012s (~)0.945s102.11x
🐘 PostgresNitro0.069s (+13.4% 🔺)1.012s (~)0.943s102.16x
🐘 PostgresNext.js (Turbopack)0.070s (+1.0%)1.012s (~)0.942s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.314s (-40.7% 🟢)2.546s (-6.1% 🟢)2.232s101.00x
▲ VercelNext.js (Turbopack)0.369s (-41.7% 🟢)2.545s (+7.2% 🔺)2.176s101.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.085s (-0.9%)2.005s (~)0.920s101.00x
💻 LocalExpress1.096s (~)2.006s (~)0.910s101.01x
🐘 PostgresNitro1.113s (+1.1%)2.010s (~)0.897s101.02x
🐘 PostgresExpress1.113s (~)2.010s (~)0.897s101.03x
💻 LocalNext.js (Turbopack)1.136s (~)2.007s (~)0.871s101.05x
🐘 PostgresNext.js (Turbopack)1.146s (+0.7%)2.009s (~)0.864s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.743s (-26.0% 🟢)3.861s (+1.4%)2.118s101.00x
▲ VercelNext.js (Turbopack)1.774s (-24.1% 🟢)3.714s (-4.9%)1.940s101.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.408s (-1.3%)11.020s (~)0.612s31.00x
💻 LocalExpress10.568s (~)11.023s (~)0.455s31.02x
🐘 PostgresExpress10.572s (~)11.017s (~)0.445s31.02x
🐘 PostgresNitro10.595s (~)11.022s (~)0.427s31.02x
💻 LocalNext.js (Turbopack)10.828s (~)11.021s (~)0.193s31.04x
🐘 PostgresNext.js (Turbopack)10.910s (~)11.017s (-2.9%)0.107s31.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.048s (-7.2% 🟢)16.489s (-3.9%)2.441s21.00x
▲ VercelNext.js (Turbopack)14.160s (-3.2%)16.436s (~)2.276s21.01x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.456s (-2.3%)14.025s (~)0.569s51.00x
💻 LocalExpress13.834s (~)14.026s (~)0.192s51.03x
🐘 PostgresNitro13.845s (~)14.022s (~)0.177s51.03x
🐘 PostgresExpress13.848s (-1.0%)14.019s (-1.4%)0.171s51.03x
💻 LocalNext.js (Turbopack)14.441s (~)15.028s (~)0.587s41.07x
🐘 PostgresNext.js (Turbopack)14.484s (~)15.019s (~)0.535s41.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express21.932s (-10.1% 🟢)23.981s (-9.1% 🟢)2.049s31.00x
▲ VercelNext.js (Turbopack)22.287s (-14.7% 🟢)24.259s (-12.5% 🟢)1.972s31.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro11.886s (-4.4%)12.021s (-7.7% 🟢)0.134s81.00x
💻 LocalExpress12.489s (-1.4%)13.024s (-1.1%)0.535s71.05x
🐘 PostgresNitro12.691s (+1.3%)13.019s (~)0.328s71.07x
🐘 PostgresExpress12.759s (~)13.166s (+1.1%)0.407s71.07x
💻 LocalNext.js (Turbopack)13.754s (~)14.026s (~)0.272s71.16x
🐘 PostgresNext.js (Turbopack)13.897s (+0.6%)14.305s (+1.0%)0.408s71.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)29.022s (-38.4% 🟢)31.636s (-35.0% 🟢)2.614s31.00x
▲ VercelExpress30.397s (-40.5% 🟢)33.207s (-38.2% 🟢)2.810s31.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.158s (-3.1%)2.005s (~)0.847s151.00x
💻 LocalExpress1.194s (-3.1%)2.007s (~)0.812s151.03x
🐘 PostgresExpress1.215s (-0.8%)2.008s (~)0.793s151.05x
🐘 PostgresNitro1.228s (+1.7%)2.008s (~)0.780s151.06x
🐘 PostgresNext.js (Turbopack)1.284s (~)2.007s (~)0.723s151.11x
💻 LocalNext.js (Turbopack)1.367s (~)2.006s (~)0.639s151.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.620s (-6.4% 🟢)4.113s (-2.8%)1.493s81.00x
▲ VercelNext.js (Turbopack)3.308s (+16.9% 🔺)5.046s (+15.6% 🔺)1.738s61.26x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.429s (+2.1%)2.471s (~)1.041s131.00x
🐘 PostgresNitro1.462s (+8.0% 🔺)2.827s (+9.1% 🔺)1.365s111.02x
🐘 PostgresNext.js (Turbopack)1.527s (-3.1%)2.224s (-4.0%)0.697s141.07x
💻 LocalNitro1.583s (-9.2% 🟢)2.005s (~)0.422s151.11x
💻 LocalNext.js (Turbopack)1.851s (-3.6%)2.150s (+7.1% 🔺)0.299s141.30x
💻 LocalExpress1.876s (-5.9% 🟢)2.221s (-3.1%)0.346s141.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.881s (-2.8%)5.981s (+3.1%)2.100s61.00x
▲ VercelNext.js (Turbopack)5.178s (-48.6% 🟢)7.260s (-37.6% 🟢)2.082s51.33x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.632s (+2.0%)4.137s (~)2.505s81.00x
🐘 PostgresNitro1.703s (+2.6%)4.139s (+6.5% 🔺)2.436s81.04x
🐘 PostgresNext.js (Turbopack)3.196s (-35.5% 🟢)4.137s (-27.3% 🟢)0.941s81.96x
💻 LocalNitro3.949s (-19.8% 🟢)4.585s (-16.9% 🟢)0.635s72.42x
💻 LocalExpress5.501s (+1.3%)6.014s (~)0.513s63.37x
💻 LocalNext.js (Turbopack)6.072s (+0.9%)6.413s (~)0.341s53.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.144s (~)7.395s (+14.5% 🔺)2.251s51.00x
▲ VercelExpress5.155s (+13.9% 🔺)7.037s (+9.7% 🔺)1.882s51.00x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.209s (~)2.007s (~)0.798s151.00x
🐘 PostgresExpress1.221s (+0.7%)2.008s (~)0.787s151.01x
🐘 PostgresNext.js (Turbopack)1.287s (~)2.006s (~)0.720s151.06x
💻 LocalNext.js (Turbopack)1.435s (+2.6%)2.074s (+3.4%)0.639s151.19x
💻 LocalNitro1.460s (-1.5%)2.042s (+1.8%)0.582s151.21x
💻 LocalExpress1.584s (-1.7%)2.006s (~)0.423s151.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.343s (-15.2% 🟢)3.828s (-12.9% 🟢)1.486s81.00x
▲ VercelExpress2.457s (-8.4% 🟢)4.149s (-6.2% 🟢)1.693s81.05x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.376s (-5.8% 🟢)2.316s (-3.2%)0.940s131.00x
🐘 PostgresNitro1.407s (-5.4% 🟢)2.509s (-8.4% 🟢)1.102s121.02x
🐘 PostgresNext.js (Turbopack)1.524s (+1.0%)2.315s (+11.6% 🔺)0.791s131.11x
💻 LocalNitro1.887s (-5.5% 🟢)2.345s (-2.0%)0.458s131.37x
💻 LocalNext.js (Turbopack)2.085s (~)2.735s (-3.3%)0.649s111.52x
💻 LocalExpress2.297s (+4.7%)2.827s (+3.3%)0.530s111.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.038s (+7.0% 🔺)4.872s (+17.4% 🔺)1.834s71.00x
▲ VercelExpress3.096s (-8.1% 🟢)4.904s (-5.7% 🟢)1.808s71.02x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.642s (~)4.145s (-2.7%)2.504s81.00x
🐘 PostgresExpress1.675s (+1.9%)3.890s (~)2.215s81.02x
🐘 PostgresNext.js (Turbopack)3.059s (-12.8% 🟢)4.017s (-9.6% 🟢)0.958s81.86x
💻 LocalNitro4.151s (-24.0% 🟢)4.869s (-21.6% 🟢)0.718s72.53x
💻 LocalNext.js (Turbopack)6.043s (-7.1% 🟢)6.416s (-8.6% 🟢)0.373s53.68x
💻 LocalExpress6.390s (+7.3% 🔺)7.417s (+15.6% 🔺)1.026s53.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.559s (+52.5% 🔺)7.788s (+47.3% 🔺)2.229s41.00x
▲ VercelNext.js (Turbopack)6.173s (+45.5% 🔺)8.275s (+48.3% 🔺)2.102s41.11x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.491s (-20.9% 🟢)1.004s (-1.7%)0.512s601.00x
🐘 PostgresExpress0.596s (-3.2%)1.023s (~)0.427s591.21x
🐘 PostgresNitro0.612s (+5.3% 🔺)1.041s (+1.7%)0.429s581.24x
💻 LocalExpress0.626s (+1.9%)1.005s (~)0.379s601.27x
🐘 PostgresNext.js (Turbopack)0.823s (+0.9%)1.006s (~)0.183s601.67x
💻 LocalNext.js (Turbopack)0.878s (-3.4%)1.022s (-3.4%)0.144s591.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.719s (-17.9% 🟢)5.310s (-15.3% 🟢)1.591s121.00x
▲ VercelNext.js (Turbopack)4.097s (+2.2%)5.900s (+6.6% 🔺)1.802s111.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.218s (-19.7% 🟢)2.005s (~)0.787s451.00x
🐘 PostgresExpress1.395s (-1.4%)2.007s (~)0.612s451.15x
🐘 PostgresNitro1.442s (+5.8% 🔺)2.030s (+1.1%)0.588s451.18x
💻 LocalExpress1.561s (-1.8%)2.006s (-1.1%)0.445s451.28x
🐘 PostgresNext.js (Turbopack)1.982s (-2.7%)2.283s (-13.4% 🟢)0.301s401.63x
💻 LocalNext.js (Turbopack)2.152s (-2.9%)3.008s (~)0.856s301.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express9.964s (+6.7% 🔺)11.838s (+5.6% 🔺)1.874s81.00x
▲ VercelNext.js (Turbopack)10.257s (-16.0% 🟢)12.234s (-10.4% 🟢)1.978s81.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.792s (-0.6%)3.111s (-1.8%)0.319s391.00x
🐘 PostgresNitro2.891s (~)3.246s (-1.0%)0.355s381.04x
💻 LocalNitro3.052s (-7.0% 🟢)3.396s (-16.0% 🟢)0.345s361.09x
💻 LocalExpress3.350s (+1.3%)4.009s (~)0.659s301.20x
🐘 PostgresNext.js (Turbopack)3.833s (-12.7% 🟢)4.043s (-20.7% 🟢)0.210s301.37x
💻 LocalNext.js (Turbopack)4.517s (~)5.052s (+0.8%)0.536s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express19.174s (-22.6% 🟢)21.979s (-17.9% 🟢)2.804s61.00x
▲ VercelNext.js (Turbopack)22.231s (-16.8% 🟢)25.568s (-9.9% 🟢)3.337s51.16x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.234s (~)1.006s (~)0.772s601.00x
🐘 PostgresNitro0.253s (+5.8% 🔺)1.006s (~)0.753s601.08x
🐘 PostgresNext.js (Turbopack)0.300s (-3.5%)1.006s (~)0.706s601.28x
💻 LocalNitro0.330s (-16.9% 🟢)1.003s (~)0.673s601.41x
💻 LocalExpress0.404s (-1.2%)1.004s (~)0.600s601.73x
💻 LocalNext.js (Turbopack)0.586s (-0.6%)1.005s (~)0.419s602.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.456s (+10.8% 🔺)3.008s (+8.6% 🔺)1.552s201.00x
▲ VercelNext.js (Turbopack)1.678s (+22.1% 🔺)3.450s (-6.1% 🟢)1.772s181.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.380s (+10.5% 🔺)1.053s (+1.1%)0.672s861.00x
🐘 PostgresNitro0.384s (+4.8%)1.041s (+1.1%)0.656s871.01x
🐘 PostgresNext.js (Turbopack)0.537s (-5.5% 🟢)1.146s (+5.0%)0.609s791.41x
💻 LocalNitro1.736s (-17.0% 🟢)2.199s (-14.8% 🟢)0.463s424.56x
💻 LocalExpress2.124s (-3.0%)2.686s (+1.1%)0.562s345.58x
💻 LocalNext.js (Turbopack)2.574s (-6.8% 🟢)3.297s (-3.6%)0.723s286.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.131s (-6.2% 🟢)4.051s (-1.0%)1.921s231.00x
▲ VercelNext.js (Turbopack)3.174s (+26.8% 🔺)5.354s (+28.1% 🔺)2.180s181.49x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.593s (+1.8%)1.205s (~)0.612s1011.00x
🐘 PostgresExpress0.606s (+7.1% 🔺)1.281s (+1.8%)0.674s951.02x
🐘 PostgresNext.js (Turbopack)2.220s (-32.4% 🟢)3.258s (-30.3% 🟢)1.038s373.75x
💻 LocalNitro7.632s (-16.3% 🟢)8.226s (-14.7% 🟢)0.593s1512.88x
💻 LocalExpress9.322s (-2.6%)9.950s (-2.4%)0.629s1315.73x
💻 LocalNext.js (Turbopack)10.999s (+1.3%)12.031s (+1.5%)1.032s1018.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.809s (+9.8% 🔺)6.234s (+23.0% 🔺)2.425s201.00x
▲ VercelNext.js (Turbopack)5.542s (-18.3% 🟢)7.877s (-5.8% 🟢)2.335s161.45x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (-2.6%)2.003s (~)0.008s (-24.3% 🟢)2.014s (~)0.885s101.00x
💻 LocalExpress1.168s (-2.0%)2.005s (~)0.012s (+2.5%)2.020s (~)0.851s101.03x
🐘 PostgresNitro1.175s (+1.1%)1.998s (~)0.001s (+20.0% 🔺)2.010s (~)0.835s101.04x
🐘 PostgresExpress1.187s (+1.0%)1.997s (~)0.002s (+25.0% 🔺)2.011s (~)0.825s101.05x
💻 LocalNext.js (Turbopack)1.213s (-0.9%)2.004s (~)0.013s (-3.0%)2.021s (~)0.808s101.07x
🐘 PostgresNext.js (Turbopack)1.233s (~)2.002s (~)0.001s (-8.3% 🟢)2.011s (~)0.778s101.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.385s (+0.9%)3.925s (+19.8% 🔺)0.789s (-22.2% 🟢)5.225s (+11.3% 🔺)2.840s101.00x
▲ VercelExpress2.397s (-6.0% 🟢)3.368s (-4.1%)0.998s (+1.4%)4.868s (-1.8%)2.471s101.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.470s (-7.0% 🟢)2.008s (~)0.011s (-18.4% 🟢)2.020s (~)0.550s301.00x
💻 LocalExpress1.598s (~)2.011s (~)0.013s (-0.5%)2.026s (~)0.428s301.09x
🐘 PostgresExpress1.605s (-1.7%)2.007s (~)0.005s (+10.1% 🔺)2.027s (~)0.422s301.09x
🐘 PostgresNitro1.620s (~)2.007s (~)0.005s (-1.9%)2.028s (~)0.408s301.10x
💻 LocalNext.js (Turbopack)1.754s (+1.2%)2.010s (~)0.014s (+14.8% 🔺)2.027s (~)0.273s301.19x
🐘 PostgresNext.js (Turbopack)1.763s (-17.0% 🟢)2.043s (-32.2% 🟢)0.005s (-14.8% 🟢)2.058s (-32.1% 🟢)0.295s301.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.530s (+5.5% 🔺)7.973s (+5.3% 🔺)0.286s (+2.8%)8.813s (+6.0% 🔺)2.283s71.00x
▲ VercelNext.js (Turbopack)6.746s (+13.2% 🔺)8.297s (+13.5% 🔺)0.277s (+8.7% 🔺)9.096s (+12.8% 🔺)2.350s71.03x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.796s (+2.3%)1.061s (-4.4%)0.000s (+Infinity% 🔺)1.084s (-3.1%)0.288s571.00x
🐘 PostgresNitro0.820s (+4.2%)1.066s (-1.6%)0.000s (-61.4% 🟢)1.095s (-1.1%)0.275s571.03x
🐘 PostgresNext.js (Turbopack)0.999s (-22.9% 🟢)1.500s (-23.9% 🟢)0.000s (-61.2% 🟢)1.507s (-23.9% 🟢)0.509s401.25x
💻 LocalNitro1.194s (-13.4% 🟢)1.886s (-6.4% 🟢)0.000s (+228.1% 🔺)1.887s (-6.4% 🟢)0.693s321.50x
💻 LocalExpress1.419s (+1.5%)2.014s (~)0.000s (+83.3% 🔺)2.016s (~)0.597s301.78x
💻 LocalNext.js (Turbopack)1.542s (+2.8%)2.013s (~)0.000s (-52.4% 🟢)2.016s (~)0.474s301.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.007s (+7.0% 🔺)4.665s (+9.4% 🔺)0.000s (NaN%)5.182s (+7.6% 🔺)2.175s121.00x
▲ VercelNext.js (Turbopack)3.385s (+18.3% 🔺)4.798s (+12.3% 🔺)0.000s (-100.0% 🟢)5.347s (+12.3% 🔺)1.963s121.13x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.661s (+2.0%)2.208s (+1.4%)0.000s (+Infinity% 🔺)2.277s (+4.1%)0.616s281.00x
🐘 PostgresNitro1.675s (+6.3% 🔺)2.175s (+1.8%)0.000s (-100.0% 🟢)2.188s (+1.2%)0.513s281.01x
🐘 PostgresNext.js (Turbopack)2.130s (-25.9% 🟢)2.609s (-21.9% 🟢)0.000s (-21.7% 🟢)2.619s (-22.6% 🟢)0.489s231.28x
💻 LocalNitro2.461s (-21.6% 🟢)2.925s (-27.4% 🟢)0.000s (-61.5% 🟢)2.929s (-27.3% 🟢)0.468s211.48x
💻 LocalExpress3.140s (-0.6%)3.902s (~)0.001s (+700.0% 🔺)3.905s (~)0.765s161.89x
💻 LocalNext.js (Turbopack)3.187s (+13.3% 🔺)3.671s (+7.6% 🔺)0.001s (+64.7% 🔺)3.676s (+7.6% 🔺)0.490s171.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.839s (+10.3% 🔺)6.329s (+13.6% 🔺)0.000s (-100.0% 🟢)6.851s (+13.2% 🔺)2.012s91.00x
▲ VercelExpress5.259s (+16.6% 🔺)6.539s (+11.0% 🔺)0.000s (+11.1% 🔺)7.073s (+9.7% 🔺)1.814s91.09x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro20/21
🐘 PostgresExpress14/21
▲ VercelExpress15/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@VaguelySeriousVaguelySerious changed the title world-vercel: honor explicit hasMore in v4 list pagination[world-vercel] Read hasMore in v4 list paginationJun 17, 2026
…t-hasmore
# Conflicts:
#	packages/world-vercel/src/events.test.ts

@pranaygppranaygp 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.

Reviewed against the merged server PR (vercel/workflow-server#539). The change is correct and well-scoped:

  • Logic is right.typeof result.hasMore === 'boolean' ? result.hasMore : Boolean(result.next) prefers the explicit flag and the typeof guard correctly propagates false (a truthiness check would have dropped it). The conditional spread ...(hasMore !== undefined ? { hasMore } : {}) likewise preserves the legacy undefined semantics the test asserts.
  • Cursor is preserved.cursor: result.next ?? null is unchanged, so incremental-load resume still works when hasMore is false. I traced both consumers: loadWorkflowRunEvents (while (hasMore)) exits one iteration earlier on the common single-page case, and since assertEventPaginationProgress only runs when hasMore is true, emitting false cleanly skips the cursor-progress assertion rather than tripping it. wakeUpRun (runs.ts:154) benefits identically.
  • Both skew directions hold. New SDK + old server falls back to Boolean(next); old SDK + new server ignores the additive field. Matches the server side, which is additive on both v4 list handlers.
  • Decode path is genuinely exercised.decodeFrames does a full CBOR decode, so hasMore survives, and the tests round-trip through real encodeFrame/decodeFrames rather than stubbing the result.

Verified locally: the two touched test files pass (24 tests) and @workflow/world-vercel typecheck is clean. Changeset is a correctly-scoped patch.

One maintainability nit inline, plus an optional test-coverage note below. Nothing blocking.

Optional: the new getWorkflowRunEvents hasMore mapping block covers false+next, true+next, and legacy-with-next→true. It doesn't cover the legacy-server-no-next case ({_end: 1}hasMore: false via Boolean(undefined)). It's trivially correct, but adding it would lock in the full fallback truth table.

/** Pagination cursor — present when more pages remain. */
/**
* Trailing cursor. Present even on the final page — it doubles as the
* resume point for incremental loads — so it is NOT a reliable "more

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.

Doc drift: the sentinel wire-shape is described in three other places that still read {_end: 1, next?: ...} and don't mention hasMore:

  • frames.ts:8 — the ABNF wire spec (end-frame := ... cbor_meta {_end: 1, next?: string} || u32_be(0))
  • events-v4.ts:14sentinel frame (meta = + "{_end: 1, next?: cursor})"
  • events.ts:25

The server's matching frames.ts ABNF was explicitly updated to {_end: 1, next?: string, hasMore?: boolean} in vercel/workflow-server#539. Worth syncing at least frames.ts:8 here so the two protocol specs don't diverge for the next reader.

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.

Fixed in 255caea — synced all three (frames.ts:8 ABNF, events-v4.ts:14, events.ts:25) to include hasMore?: boolean.

The v4 LIST end-frame now carries an explicit `hasMore` flag, but three
doc comments still described the sentinel as `{_end: 1, next?: ...}`.
Update the ABNF wire spec and the two prose mentions so they match the
server's frames.ts (vercel/workflow-server#539).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pranaygp
pranaygp enabled auto-merge (squash) June 17, 2026 23:53
@VaguelySerious
VaguelySerious merged commit 26fd184 into mainJun 18, 2026
188 of 193 checks passed
@VaguelySerious
VaguelySerious deleted the peter/v4-list-explicit-hasmore branch June 18, 2026 00:15
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 26fd184 (AI decision).

This fixes the hasMore = Boolean(next) regression in the v4 frame-stream LIST pagination path (events-v4.ts/frames.ts/consumeListFrameStream), which only exists on main — both files are absent on stable, and stable's events.ts uses an entirely different JSON wire implementation that already reads an explicit hasMore from its parsed result. The bug therefore doesn't exist on stable and the change builds on main-only v4 wire-format behavior.

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

26fd18427855070baa792cad746fcda7955cc73e

@github-actionsgithub-actionsBot mentioned this pull request Jun 18, 2026
pranaygp added a commit that referenced this pull request Jun 18, 2026
…-hydration
* origin/main:
perf(core): lazy inline step start (save one world round-trip per step) (#2478)
perf(core): skip per-step events.list via inline event-log delta (#2475)
Version Packages (beta) (#2491)
[world-vercel] Honor hasMore flag from v4 list pagination endpoint (#2486)
Version Packages (beta) (#2451)
Fix Next workflow module specifier root (#2455)
[world-vercel] Send remoteRefBehavior=lazy on v4 metadata-only event listings (#2415)
[swc-plugin] Fix eager discovery for object property steps (#2484)
fix(web-shared): align attributes panel styling (#2483)
[web-shared] Auto-scroll trace viewer on J/K span navigation (#2366)
fix(web): render restarted step segment as solid gray, not running stripes (#2480)
fix(web-shared): use solid gray for queued trace segment (#2474)
Add trace viewer span markers for hooks and attributes (#2452)
test: support Vercel protection bypass secret in e2e headers (#2458)
fix(core): bump payload-compression cutoff to 5.0.0-beta.18 (#2470)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	packages/core/src/runtime.ts
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.

2 participants

@VaguelySerious@pranaygp