Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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" + '
[core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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('^' + ".*" + ' [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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('^' + ".*" + ' [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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" + ' [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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('^' + ".*" + ' [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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('^' + ".*" + ' [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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); } })(); })(); [core] Fix spurious "Event cursor missing after initial load" warning by VaguelySerious · Pull Request #2056 · vercel/workflow · GitHub
Skip to content

[core] Fix spurious "Event cursor missing after initial load" warning - #2056

Merged
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null
May 22, 2026
Merged

[core] Fix spurious "Event cursor missing after initial load" warning#2056
VaguelySerious merged 2 commits into
mainfrom
peter/fix-load-events-cursor-null

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

The V2 runtime's loadWorkflowRunEvents helper paginates through world.events.list and overwrites its cursor variable on every page. When the final page is empty (data: [], cursor: null, hasMore: false), the helper returns cursor: null despite having loaded events — which trips the cachedEvents ≠ null + eventsCursor = null branch in runtime.ts, logs Event cursor missing after initial load — falling back to full reload. This indicates a bug in the World implementation., and forces a full event reload on every subsequent replay iteration.

The trailing empty page is a normal, contract-compliant response, not a World bug. workflow-server can produce it whenever an underlying DynamoDB Query hits its Limit exactly — DynamoDB returns LastEvaluatedKey "just in case", the server passes that through as hasMore: true, and the next call returns an empty page. This is observable in production (38 distinct runs in 24h on agents-vade-review alone, each logging the warning multiple times per invocation).

Fix is one line: preserve the last non-null cursor across pages.

cursor=response.cursor??cursor;

This mirrors how runtime.ts:665 and runtime.ts:811 already treat incremental loads.

Test plan

  • packages/core/src/runtime/helpers.test.ts — added regression tests covering the trailing-empty-page case, multi-page traversal, and incremental loads that return zero new events. Verified the new tests fail against main (cursor is null instead of the expected last cursor) and pass with the one-line fix.
  • CI green

A World may legitimately return `{ data: [], cursor: null, hasMore: false }`
on a trailing empty page — e.g. when the previous page's DynamoDB query hit
`Limit` exactly and returned a `LastEvaluatedKey` "just in case". Overwriting
the cursor with null on that trailing page caused the V2 runtime to fall into
the "Event cursor missing after initial load" branch and do a full event
reload on every replay iteration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 21, 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.030s (-30.6% 🟢)1.005s (~)0.976s101.00x
💻 LocalExpress0.030s (-31.2% 🟢)1.006s (~)0.975s101.02x
🐘 PostgresExpress0.047s (-18.3% 🟢)1.013s (~)0.965s101.59x
🐘 PostgresNitro0.052s (-45.2% 🟢)1.013s (-2.9%)0.961s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.303s (-26.0% 🟢)2.103s (-16.2% 🟢)1.800s101.00x
▲ VercelExpress0.321s (+36.2% 🔺)2.500s (+17.0% 🔺)2.179s101.06x

🔍 Observability: Nitro | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.069s (-5.0%)2.006s (~)0.936s101.00x
💻 LocalNitro1.069s (-5.5% 🟢)2.006s (~)0.937s101.00x
🐘 PostgresNitro1.080s (-5.2% 🟢)2.008s (~)0.928s101.01x
🐘 PostgresExpress1.087s (-5.2% 🟢)2.010s (~)0.924s101.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.632s (-58.1% 🟢)3.589s (-39.3% 🟢)1.956s101.00x
▲ VercelExpress1.699s (-9.4% 🟢)3.829s (+0.6%)2.130s101.04x

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.408s (-5.1% 🟢)11.015s (~)0.607s31.00x
🐘 PostgresNitro10.414s (-4.2%)11.018s (~)0.604s31.00x
💻 LocalExpress10.415s (-4.6%)11.022s (~)0.607s31.00x
💻 LocalNitro10.439s (-4.6%)11.021s (~)0.582s31.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express13.421s (-21.0% 🟢)15.491s (-22.6% 🟢)2.070s21.00x
▲ VercelNitro13.639s (-42.5% 🟢)15.456s (-38.5% 🟢)1.817s21.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.429s (-10.3% 🟢)14.027s (-6.7% 🟢)0.598s51.00x
💻 LocalNitro13.433s (-10.8% 🟢)14.026s (-12.5% 🟢)0.593s51.00x
🐘 PostgresExpress13.471s (-7.6% 🟢)14.016s (-6.7% 🟢)0.546s51.00x
🐘 PostgresNitro13.504s (-7.5% 🟢)14.018s (-6.7% 🟢)0.515s51.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.011s (-54.3% 🟢)25.176s (-52.1% 🟢)2.165s31.00x
▲ VercelNitro25.134s (-61.0% 🟢)27.141s (-59.3% 🟢)2.007s31.09x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express11.872s (-15.2% 🟢)12.016s (-17.7% 🟢)0.144s81.00x
💻 LocalNitro11.873s (-29.3% 🟢)12.021s (-29.4% 🟢)0.147s81.00x
💻 LocalExpress11.886s (-28.4% 🟢)12.147s (-28.7% 🟢)0.261s81.00x
🐘 PostgresNitro12.077s (-13.5% 🟢)12.644s (-11.6% 🟢)0.566s81.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro28.335s (-93.3% 🟢)30.639s (-92.8% 🟢)2.304s31.00x
▲ VercelExpress32.259s (-73.4% 🟢)35.048s (-71.7% 🟢)2.789s31.14x

🔍 Observability: Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.146s (-9.1% 🟢)2.008s (~)0.862s151.00x
🐘 PostgresNitro1.148s (-10.0% 🟢)2.008s (~)0.860s151.00x
💻 LocalExpress1.169s (-21.5% 🟢)2.006s (~)0.837s151.02x
💻 LocalNitro1.170s (-28.3% 🟢)2.006s (-3.3%)0.836s151.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+2.7%)4.451s (+3.0%)1.555s71.00x
▲ VercelExpress3.961s (+38.5% 🔺)5.418s (+17.2% 🔺)1.457s81.37x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.202s (-48.9% 🟢)2.007s (-33.3% 🟢)0.805s151.00x
🐘 PostgresExpress1.206s (-48.9% 🟢)2.007s (-33.3% 🟢)0.801s151.00x
💻 LocalExpress1.718s (-41.8% 🟢)2.005s (-41.9% 🟢)0.287s151.43x
💻 LocalNitro1.745s (-44.5% 🟢)2.005s (-48.4% 🟢)0.260s151.45x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.983s (-1.7%)5.466s (-7.7% 🟢)1.483s61.00x
▲ VercelExpress4.901s (+35.4% 🔺)7.138s (+39.7% 🔺)2.237s51.23x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.327s (-61.9% 🟢)2.008s (-49.9% 🟢)0.682s151.00x
🐘 PostgresNitro1.328s (-61.8% 🟢)2.007s (-49.9% 🟢)0.678s151.00x
💻 LocalNitro4.788s (-42.7% 🟢)5.347s (-40.7% 🟢)0.560s63.61x
💻 LocalExpress4.833s (-42.0% 🟢)5.344s (-40.8% 🟢)0.511s63.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.721s (+34.9% 🔺)8.050s (+31.4% 🔺)2.329s41.00x
▲ VercelNitro7.040s (+99.7% 🔺)9.183s (+65.9% 🔺)2.143s41.23x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.148s (-8.7% 🟢)2.007s (~)0.859s151.00x
🐘 PostgresNitro1.149s (-8.6% 🟢)2.009s (~)0.859s151.00x
💻 LocalExpress1.405s (-25.8% 🟢)2.006s (-15.1% 🟢)0.601s151.22x
💻 LocalNitro1.438s (-22.9% 🟢)2.006s (-14.3% 🟢)0.568s151.25x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.441s (-0.7%)3.745s (-10.2% 🟢)1.304s91.00x
▲ VercelExpress2.873s (+11.3% 🔺)4.586s (+5.4% 🔺)1.713s71.18x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.211s (-48.3% 🟢)2.008s (-33.3% 🟢)0.797s151.00x
🐘 PostgresNitro1.217s (-48.0% 🟢)2.008s (-33.3% 🟢)0.791s151.00x
💻 LocalExpress1.961s (-37.4% 🟢)2.392s (-36.4% 🟢)0.431s131.62x
💻 LocalNitro1.975s (-35.6% 🟢)2.507s (-35.5% 🟢)0.532s121.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.485s (+7.8% 🔺)5.149s (+1.4%)1.664s61.00x
▲ VercelExpress3.487s (+9.2% 🔺)5.457s (+13.9% 🔺)1.970s61.00x

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.299s (-62.9% 🟢)2.008s (-49.9% 🟢)0.709s151.00x
🐘 PostgresNitro1.373s (-60.5% 🟢)2.009s (-49.9% 🟢)0.636s151.06x
💻 LocalExpress4.832s (-45.1% 🟢)5.512s (-40.6% 🟢)0.679s63.72x
💻 LocalNitro5.673s (-38.0% 🟢)6.017s (-40.0% 🟢)0.344s54.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.430s (+6.6% 🔺)7.082s (+3.9%)1.652s51.00x
▲ VercelExpress6.328s (-1.4%)8.217s (~)1.889s41.17x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.431s (-48.6% 🟢)1.006s (-1.6%)0.575s601.00x
🐘 PostgresNitro0.450s (-45.1% 🟢)1.007s (~)0.556s601.05x
💻 LocalExpress0.464s (-52.8% 🟢)1.004s (-6.7% 🟢)0.540s601.08x
💻 LocalNitro0.496s (-49.4% 🟢)1.004s (-8.2% 🟢)0.508s601.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.792s (-74.8% 🟢)6.495s (-69.6% 🟢)1.703s101.00x
▲ VercelNitro4.893s (-77.8% 🟢)6.665s (-72.3% 🟢)1.772s101.02x

🔍 Observability: Express | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.021s (-48.3% 🟢)1.507s (-33.3% 🟢)0.486s601.00x
🐘 PostgresNitro1.087s (-43.6% 🟢)1.807s (-14.0% 🟢)0.720s501.06x
💻 LocalExpress1.174s (-61.1% 🟢)2.006s (-44.1% 🟢)0.832s451.15x
💻 LocalNitro1.200s (-60.5% 🟢)2.006s (-46.6% 🟢)0.806s451.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.397s (-64.1% 🟢)14.627s (-60.3% 🟢)2.230s71.00x
▲ VercelNitro13.354s (-66.2% 🟢)15.339s (-62.9% 🟢)1.985s61.08x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.172s (-45.6% 🟢)2.660s (-39.1% 🟢)0.488s461.00x
🐘 PostgresNitro2.185s (-46.8% 🟢)2.984s (-35.2% 🟢)0.799s411.01x
💻 LocalExpress2.691s (-70.8% 🟢)3.058s (-69.5% 🟢)0.366s401.24x
💻 LocalNitro2.751s (-70.4% 🟢)3.082s (-69.2% 🟢)0.331s401.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.727s (-73.5% 🟢)27.813s (-71.7% 🟢)2.087s51.00x
▲ VercelExpress25.761s (-80.2% 🟢)28.379s (-78.5% 🟢)2.618s51.00x

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.174s (-38.5% 🟢)1.006s (~)0.832s601.00x
🐘 PostgresNitro0.187s (-34.0% 🟢)1.006s (~)0.819s601.08x
💻 LocalExpress0.394s (-29.7% 🟢)1.004s (~)0.610s602.27x
💻 LocalNitro0.409s (-32.4% 🟢)1.004s (-1.7%)0.595s602.35x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.841s (+45.4% 🔺)4.564s (+25.5% 🔺)1.723s141.00x
▲ VercelNitro2.843s (+71.2% 🔺)4.428s (+32.1% 🔺)1.585s141.00x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.304s (-40.3% 🟢)1.006s (~)0.702s901.00x
🐘 PostgresNitro0.308s (-37.9% 🟢)1.006s (~)0.698s901.01x
💻 LocalNitro2.130s (-16.1% 🟢)2.852s (-5.2% 🟢)0.722s327.00x
💻 LocalExpress2.148s (-14.6% 🟢)2.686s (-10.8% 🟢)0.538s347.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.408s (+67.7% 🔺)6.773s (+40.5% 🔺)1.365s141.00x
▲ VercelExpress5.688s (+86.7% 🔺)7.502s (+56.1% 🔺)1.814s131.05x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.598s (-27.0% 🟢)1.006s (-1.1%)0.408s1201.00x
🐘 PostgresNitro0.636s (-19.6% 🟢)1.006s (~)0.370s1201.06x
💻 LocalExpress9.968s (-10.9% 🟢)10.612s (-11.1% 🟢)0.644s1216.67x
💻 LocalNitro10.253s (-8.4% 🟢)10.864s (-6.9% 🟢)0.611s1217.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.353s (+72.9% 🔺)15.039s (+60.0% 🔺)1.685s91.00x
▲ VercelExpress15.057s (+102.9% 🔺)17.293s (+87.1% 🔺)2.235s71.13x

🔍 Observability: Nitro | Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.130s (+450.9% 🔺)2.001s (+100.4% 🔺)0.001s (-31.3% 🟢)2.010s (+98.7% 🔺)0.880s101.00x
💻 LocalNitro1.131s (+429.1% 🔺)2.005s (+99.6% 🔺)0.012s (-2.4%)2.019s (+98.2% 🔺)0.889s101.00x
🐘 PostgresNitro1.139s (+455.4% 🔺)2.002s (+100.3% 🔺)0.001s (-13.3% 🟢)2.011s (+98.9% 🔺)0.873s101.01x
💻 LocalExpress1.142s (+473.7% 🔺)2.005s (+99.6% 🔺)0.011s (-10.7% 🟢)2.018s (+98.2% 🔺)0.876s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.187s (-12.7% 🟢)3.585s (-12.3% 🟢)1.442s (+50.1% 🔺)5.537s (-1.0%)3.351s101.00x
▲ VercelNitro2.195s (-42.7% 🟢)3.298s (-37.5% 🟢)2.196s (+195.9% 🔺)5.945s (-8.3% 🟢)3.751s101.00x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.498s (+137.8% 🔺)2.004s (+99.1% 🔺)0.004s (+2.7%)2.027s (+98.2% 🔺)0.529s301.00x
💻 LocalExpress1.516s (+100.2% 🔺)2.010s (+95.4% 🔺)0.010s (+8.7% 🔺)2.023s (+94.5% 🔺)0.507s301.01x
🐘 PostgresNitro1.533s (+145.7% 🔺)2.003s (+99.0% 🔺)0.004s (-1.7%)2.025s (+98.0% 🔺)0.491s301.02x
💻 LocalNitro1.717s (+104.7% 🔺)2.011s (+98.7% 🔺)0.010s (+2.5%)2.201s (+97.3% 🔺)0.485s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.929s (-79.9% 🟢)7.076s (-77.0% 🟢)0.213s (+90.6% 🔺)7.799s (-75.5% 🟢)1.870s81.00x
▲ VercelExpress6.020s (-7.4% 🟢)7.497s (-6.4% 🟢)0.260s (-36.4% 🟢)8.290s (-6.2% 🟢)2.269s81.02x

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.645s (-32.9% 🟢)1.051s (-17.8% 🟢)0.000s (-100.0% 🟢)1.060s (-18.9% 🟢)0.415s571.00x
🐘 PostgresNitro0.724s (-25.3% 🟢)1.048s (-16.0% 🟢)0.000s (+110.5% 🔺)1.060s (-15.7% 🟢)0.336s571.12x
💻 LocalNitro1.343s (+9.9% 🔺)2.014s (~)0.000s (+133.3% 🔺)2.016s (~)0.673s302.08x
💻 LocalExpress1.377s (+12.4% 🔺)2.015s (~)0.000s (-30.0% 🟢)2.017s (~)0.640s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.529s (-5.7% 🟢)4.866s (-4.6%)0.002s (+816.7% 🔺)5.349s (-3.3%)1.821s121.00x
▲ VercelNitro3.797s (+24.5% 🔺)4.891s (+11.3% 🔺)0.000s (-100.0% 🟢)5.324s (+10.7% 🔺)1.527s121.08x

🔍 Observability: Express | Nitro

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.317s (-25.7% 🟢)1.964s (-9.8% 🟢)0.000s (+Infinity% 🔺)1.992s (-9.4% 🟢)0.675s311.00x
🐘 PostgresNitro1.380s (-23.0% 🟢)2.066s (-3.5%)0.000s (+93.1% 🔺)2.102s (-3.3%)0.722s291.05x
💻 LocalNitro3.123s (-7.8% 🟢)3.843s (-4.7%)0.001s (+28.9% 🔺)3.846s (-4.7%)0.724s162.37x
💻 LocalExpress3.356s (-3.2%)3.906s (-3.2%)0.001s (-21.9% 🟢)3.911s (-3.1%)0.556s162.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.493s (+19.7% 🔺)6.851s (+13.8% 🔺)0.000s (+Infinity% 🔺)7.366s (+14.1% 🔺)1.873s91.00x
▲ VercelNitro5.682s (+38.8% 🔺)6.969s (+29.7% 🔺)0.001s (+144.4% 🔺)7.414s (+28.0% 🔺)1.732s91.03x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresExpress19/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 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.

@github-actions

github-actionsBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production120002191419
✅ 💻 Local Development158702191806
✅ 📦 Local Production158702191806
✅ 🐘 Local Postgres158702191806
✅ 🪟 Windows12900129
✅ 📋 Other7270176903
Total6817010527869

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
✅ fastify103026
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
✅ sveltekit12207
✅ vite103026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-disabled12900
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
✅ nextjs-webpack-stable-lazy-discovery-disabled12900
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
✅ e2e-local-prod-nest-stable104025
✅ e2e-local-prod-tanstack-start-104025
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run

Comment thread.changeset/fix-load-events-cursor-null.md Outdated
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96a9fc8

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@VaguelySerious
VaguelySerious merged commit 9454151 into mainMay 22, 2026
200 of 212 checks passed
@VaguelySerious
VaguelySerious deleted the peter/fix-load-events-cursor-null branch May 22, 2026 07:12
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
github-actionsBot added a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2076. Merge conflicts were resolved by AI — please review carefully. (backport job run)

TooTallNate pushed a commit that referenced this pull request May 22, 2026
…adation due to clobbered cursor (#2056) (#2076)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actionsgithub-actionsBot mentioned this pull request May 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@VaguelySerious@pranaygp