[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@VaguelySerious@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@VaguelySerious@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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

[e2e] Add label-gated event log race repro - #2159

Merged
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci
May 30, 2026
Merged

[e2e] Add label-gated event log race repro#2159
VaguelySerious merged 10 commits into
mainfrom
peter/event-log-race-repro-ci

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 29, 2026

Copy link
Copy Markdown
Member

(AI)

Adds a label-gated CI job for reproducing event-log race conditions.

The new event-log-race-repro label runs a single Next.js Turbopack preview deployment through repeated race attempts, writes a JSON artifact, and posts one sticky PR comment with a running history table. Each CI run is a column with timestamped links to the workflow logs and tested deployment, plus the outcome distribution for completed, USER_ERROR, CORRUPTED_EVENT_LOG, RUNTIME_ERROR, stuck, and other runs.

The default run keeps 1500 hook/sleep workflow runs at concurrency 50, then adds 250 parallel-step fanout runs and 250 step/sleep race runs. The step-heavy scenarios are meant to catch concurrent replays acting on stale event logs around step_created, step_completed, wait_completed, and branch decisions, not just hook/sleep interactions. The sticky comment also includes a per-scenario breakdown for the latest run.

This should still catch at least one failure on average for the current main/stable baseline, where CORRUPTED_EVENT_LOG is expected around 0.2% of runs.

This draft is expected to fail on the current unfixed baseline when the label is present; the failure output is the point of the harness. The sticky comment on this PR is the source of truth for the current run history and observed distribution.

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@VaguelySeriousVaguelySerious added the event-log-race-repro Run the event log race reproduction job label May 29, 2026
@github-actions

github-actionsBot commented May 29, 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.042s (-3.5%)1.004s (~)0.963s101.00x
💻 LocalExpress0.043s (-2.0%)1.005s (~)0.962s101.04x
💻 LocalNext.js (Turbopack)0.056s1.006s0.950s101.34x
🐘 PostgresExpress0.057s (-2.4%)1.011s (~)0.954s101.36x
🐘 PostgresNitro0.066s (-30.4% 🟢)1.013s (-2.9%)0.947s101.59x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.944s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.293s (+24.6% 🔺)2.247s (+5.2% 🔺)1.953s101.00x
▲ VercelNext.js (Turbopack)0.331s (+31.5% 🔺)2.346s (+0.6%)2.016s101.13x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (-3.2%)2.006s (~)0.911s101.00x
💻 LocalExpress1.098s (-2.4%)2.006s (~)0.908s101.00x
🐘 PostgresExpress1.104s (-3.7%)2.009s (~)0.905s101.01x
💻 LocalNext.js (Turbopack)1.113s2.005s0.892s101.02x
🐘 PostgresNitro1.115s (-2.2%)2.010s (~)0.895s101.02x
🐘 PostgresNext.js (Turbopack)1.139s2.009s0.869s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.678s (-10.5% 🟢)3.395s (-10.8% 🟢)1.717s101.00x
▲ VercelNext.js (Turbopack)1.979s (-2.8%)3.835s (~)1.856s101.18x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.533s (-3.8%)11.020s (~)0.488s31.00x
🐘 PostgresExpress10.548s (-3.8%)11.019s (~)0.471s31.00x
🐘 PostgresNitro10.554s (-2.9%)11.022s (~)0.468s31.00x
💻 LocalExpress10.611s (-2.8%)11.021s (~)0.410s31.01x
💻 LocalNext.js (Turbopack)10.630s11.021s0.391s31.01x
🐘 PostgresNext.js (Turbopack)10.896s11.356s0.460s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.195s (-16.4% 🟢)15.409s (-23.0% 🟢)1.214s21.00x
▲ VercelNext.js (Turbopack)15.682s (-9.4% 🟢)17.602s (-9.3% 🟢)1.920s21.10x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.724s (-8.9% 🟢)14.026s (-12.5% 🟢)0.302s51.00x
🐘 PostgresExpress13.791s (-5.4% 🟢)14.019s (-6.7% 🟢)0.228s51.00x
🐘 PostgresNitro13.873s (-5.0%)14.019s (-6.7% 🟢)0.146s51.01x
💻 LocalNext.js (Turbopack)13.942s14.225s0.283s51.02x
💻 LocalExpress13.967s (-6.7% 🟢)14.226s (-5.3% 🟢)0.259s51.02x
🐘 PostgresNext.js (Turbopack)14.535s15.014s0.479s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express24.224s (-51.8% 🟢)25.759s (-51.0% 🟢)1.535s31.00x
▲ VercelNext.js (Turbopack)29.350s (-44.2% 🟢)31.264s (-42.7% 🟢)1.914s21.21x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.414s (-26.0% 🟢)13.024s (-23.5% 🟢)0.610s71.00x
💻 LocalExpress12.512s (-24.6% 🟢)13.024s (-23.5% 🟢)0.512s71.01x
🐘 PostgresNitro12.571s (-10.0% 🟢)13.021s (-9.0% 🟢)0.450s71.01x
🐘 PostgresExpress12.715s (-9.2% 🟢)13.159s (-9.8% 🟢)0.444s71.02x
💻 LocalNext.js (Turbopack)12.868s13.168s0.299s71.04x
🐘 PostgresNext.js (Turbopack)13.802s14.304s0.502s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express35.785s (-70.5% 🟢)37.877s (-69.4% 🟢)2.092s31.00x
▲ VercelNext.js (Turbopack)44.329s (-88.7% 🟢)46.543s (-88.2% 🟢)2.214s21.24x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.9% 🟢)2.007s (~)0.833s151.00x
💻 LocalNitro1.185s (-27.4% 🟢)2.006s (-3.3%)0.821s151.01x
🐘 PostgresNitro1.191s (-6.6% 🟢)2.008s (~)0.817s151.01x
💻 LocalExpress1.200s (-19.4% 🟢)2.006s (~)0.805s151.02x
💻 LocalNext.js (Turbopack)1.227s2.005s0.778s151.05x
🐘 PostgresNext.js (Turbopack)1.233s2.007s0.774s151.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.793s (-2.3%)4.343s (-6.1% 🟢)1.550s71.00x
▲ VercelNext.js (Turbopack)3.172s (-6.6% 🟢)4.790s (-2.9%)1.618s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.230s (-47.9% 🟢)2.007s (-33.3% 🟢)0.776s151.00x
🐘 PostgresNitro1.298s (-44.8% 🟢)2.008s (-33.3% 🟢)0.710s151.06x
🐘 PostgresNext.js (Turbopack)1.397s2.007s0.610s151.14x
💻 LocalNitro1.623s (-48.4% 🟢)2.005s (-48.4% 🟢)0.382s151.32x
💻 LocalExpress1.639s (-44.5% 🟢)2.006s (-41.9% 🟢)0.367s151.33x
💻 LocalNext.js (Turbopack)1.702s2.005s0.303s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.067s (+12.4% 🔺)5.426s (+6.2% 🔺)1.358s61.00x
▲ VercelNext.js (Turbopack)5.020s (-29.3% 🟢)6.682s (-25.0% 🟢)1.662s51.23x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.329s (-61.9% 🟢)2.008s (-49.9% 🟢)0.679s151.00x
🐘 PostgresNitro1.437s (-58.7% 🟢)2.008s (-49.9% 🟢)0.571s151.08x
🐘 PostgresNext.js (Turbopack)1.671s2.074s0.403s151.26x
💻 LocalExpress4.314s (-48.3% 🟢)5.013s (-44.5% 🟢)0.699s63.25x
💻 LocalNext.js (Turbopack)4.329s5.011s0.682s63.26x
💻 LocalNitro4.498s (-46.1% 🟢)4.868s (-46.0% 🟢)0.370s73.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.696s (+34.3% 🔺)7.629s (+24.5% 🔺)1.934s41.00x
▲ VercelNext.js (Turbopack)6.689s (-25.0% 🟢)8.535s (-22.1% 🟢)1.846s41.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.174s (-6.6% 🟢)2.006s (~)0.833s151.00x
🐘 PostgresNitro1.219s (-3.0%)2.009s (~)0.790s151.04x
🐘 PostgresNext.js (Turbopack)1.244s2.009s0.765s151.06x
💻 LocalNext.js (Turbopack)1.373s2.006s0.633s151.17x
💻 LocalExpress1.485s (-21.6% 🟢)2.006s (-15.2% 🟢)0.520s151.27x
💻 LocalNitro1.615s (-13.4% 🟢)2.005s (-14.3% 🟢)0.390s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.931s (+13.6% 🔺)4.637s (+6.6% 🔺)1.705s71.00x
▲ VercelNext.js (Turbopack)3.337s (+13.8% 🔺)4.951s (+6.7% 🔺)1.614s71.14x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.225s (-47.7% 🟢)2.007s (-33.3% 🟢)0.782s151.00x
🐘 PostgresNitro1.290s (-44.9% 🟢)2.008s (-33.3% 🟢)0.718s151.05x
🐘 PostgresNext.js (Turbopack)1.375s2.007s0.632s151.12x
💻 LocalExpress1.833s (-41.5% 🟢)2.148s (-42.9% 🟢)0.315s141.50x
💻 LocalNitro1.899s (-38.0% 🟢)2.220s (-42.9% 🟢)0.321s141.55x
💻 LocalNext.js (Turbopack)1.956s2.391s0.436s131.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.821s (+19.7% 🔺)5.309s (+10.8% 🔺)1.488s61.00x
▲ VercelNext.js (Turbopack)5.670s (+80.4% 🔺)7.153s (+58.2% 🔺)1.483s51.48x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.338s (-61.8% 🟢)2.009s (-49.9% 🟢)0.671s151.00x
🐘 PostgresNitro1.420s (-59.2% 🟢)2.008s (-49.9% 🟢)0.588s151.06x
🐘 PostgresNext.js (Turbopack)1.667s2.009s0.342s151.25x
💻 LocalNext.js (Turbopack)4.756s5.511s0.755s63.56x
💻 LocalNitro4.937s (-46.0% 🟢)5.512s (-45.0% 🟢)0.575s63.69x
💻 LocalExpress5.396s (-38.7% 🟢)6.014s (-35.1% 🟢)0.617s64.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.501s (-14.3% 🟢)7.048s (-13.8% 🟢)1.548s51.00x
▲ VercelNext.js (Turbopack)6.310s (-6.6% 🟢)8.125s (-4.9%)1.815s41.15x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.585s (-40.4% 🟢)1.004s (-8.2% 🟢)0.419s601.00x
🐘 PostgresExpress0.587s (-30.1% 🟢)1.023s (~)0.436s591.00x
💻 LocalExpress0.598s (-39.2% 🟢)1.004s (-6.7% 🟢)0.406s601.02x
🐘 PostgresNitro0.601s (-26.7% 🟢)1.024s (+1.8%)0.423s591.03x
💻 LocalNext.js (Turbopack)0.765s1.095s0.330s551.31x
🐘 PostgresNext.js (Turbopack)0.794s1.006s0.212s601.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.950s (-68.7% 🟢)7.351s (-65.5% 🟢)1.402s91.00x
▲ VercelNext.js (Turbopack)7.977s (-45.0% 🟢)9.751s (-39.4% 🟢)1.774s71.34x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.382s (-30.1% 🟢)2.052s (-9.1% 🟢)0.670s441.00x
🐘 PostgresNitro1.446s (-25.0% 🟢)2.054s (-2.2%)0.609s441.05x
💻 LocalExpress1.535s (-49.1% 🟢)2.051s (-42.8% 🟢)0.517s441.11x
💻 LocalNitro1.556s (-48.7% 🟢)2.122s (-43.5% 🟢)0.565s431.13x
💻 LocalNext.js (Turbopack)1.653s2.006s0.353s451.20x
🐘 PostgresNext.js (Turbopack)1.904s2.076s0.172s441.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.408s (-55.4% 🟢)17.095s (-53.6% 🟢)1.687s61.00x
▲ VercelNext.js (Turbopack)25.038s (-49.7% 🟢)27.216s (-47.4% 🟢)2.178s41.63x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.694s (-32.5% 🟢)3.084s (-29.4% 🟢)0.390s391.00x
🐘 PostgresNitro2.828s (-31.1% 🟢)3.195s (-30.6% 🟢)0.367s381.05x
💻 LocalNitro3.063s (-67.1% 🟢)3.705s (-63.0% 🟢)0.642s331.14x
💻 LocalExpress3.242s (-64.8% 🟢)4.042s (-59.7% 🟢)0.800s301.20x
💻 LocalNext.js (Turbopack)3.516s4.009s0.492s301.31x
🐘 PostgresNext.js (Turbopack)3.751s4.009s0.258s301.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express34.621s (-73.4% 🟢)36.298s (-72.5% 🟢)1.676s41.00x
▲ VercelNext.js (Turbopack)40.573s (-62.1% 🟢)42.479s (-61.0% 🟢)1.906s31.17x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.205s (-27.5% 🟢)1.006s (~)0.801s601.00x
🐘 PostgresNitro0.228s (-19.5% 🟢)1.007s (~)0.779s601.11x
🐘 PostgresNext.js (Turbopack)0.299s1.023s0.724s591.46x
💻 LocalNitro0.437s (-27.7% 🟢)1.004s (-1.7%)0.566s602.14x
💻 LocalExpress0.456s (-18.7% 🟢)1.021s (+1.6%)0.565s592.22x
💻 LocalNext.js (Turbopack)0.523s1.038s0.515s582.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.383s (+17.8% 🔺)4.084s (+7.7% 🔺)1.701s151.00x
▲ VercelExpress2.465s (+26.1% 🔺)3.887s (+6.9% 🔺)1.422s161.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.330s (-35.2% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresNitro0.379s (-23.7% 🟢)1.006s (~)0.628s901.15x
🐘 PostgresNext.js (Turbopack)0.488s1.006s0.518s901.48x
💻 LocalExpress2.060s (-18.0% 🟢)2.580s (-14.3% 🟢)0.520s356.24x
💻 LocalNitro2.082s (-18.0% 🟢)2.592s (-13.9% 🟢)0.510s366.30x
💻 LocalNext.js (Turbopack)2.468s3.043s0.575s307.47x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.164s (+69.5% 🔺)6.903s (+43.6% 🔺)1.739s141.00x
▲ VercelNext.js (Turbopack)5.317s (+50.4% 🔺)7.142s (+37.5% 🔺)1.825s131.03x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.622s (-24.0% 🟢)1.006s (-1.1%)0.384s1201.00x
🐘 PostgresNitro0.704s (-10.9% 🟢)1.007s (~)0.303s1201.13x
🐘 PostgresNext.js (Turbopack)0.990s1.652s0.662s731.59x
💻 LocalNitro8.750s (-21.8% 🟢)9.411s (-19.3% 🟢)0.661s1314.06x
💻 LocalExpress8.831s (-21.1% 🟢)9.563s (-19.9% 🟢)0.732s1314.19x
💻 LocalNext.js (Turbopack)9.717s10.609s0.891s1215.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.150s (+104.2% 🔺)16.807s (+81.8% 🔺)1.658s81.00x
▲ VercelNext.js (Turbopack)16.104s (+55.9% 🔺)18.015s (+46.6% 🔺)1.911s71.06x
▲ VercelNitro⚠️missing----

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.148s (+437.3% 🔺)2.005s (+99.6% 🔺)0.013s (+6.4% 🔺)2.020s (+98.3% 🔺)0.872s101.00x
💻 LocalExpress1.156s (+480.4% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.2% 🔺)0.862s101.01x
🐘 PostgresExpress1.162s (+466.6% 🔺)2.001s (+100.3% 🔺)0.001s (-25.0% 🟢)2.010s (+98.7% 🔺)0.848s101.01x
💻 LocalNext.js (Turbopack)1.168s2.003s0.010s2.016s0.848s101.02x
🐘 PostgresNitro1.174s (+472.8% 🔺)1.997s (+99.8% 🔺)0.001s (-20.0% 🟢)2.011s (+98.8% 🔺)0.836s101.02x
🐘 PostgresNext.js (Turbopack)1.221s2.001s0.001s2.011s0.790s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.347s (-6.3% 🟢)3.289s (-19.6% 🟢)2.102s (+118.7% 🔺)5.812s (+4.0%)3.465s101.00x
▲ VercelNext.js (Turbopack)2.885s (-57.9% 🟢)4.069s (-53.0% 🟢)3.554s (+462.5% 🔺)8.090s (-17.4% 🟢)5.204s101.23x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.557s (+105.7% 🔺)2.008s (+95.2% 🔺)0.011s (+16.8% 🔺)2.021s (+94.3% 🔺)0.463s301.00x
💻 LocalNitro1.572s (+87.5% 🔺)2.009s (+98.5% 🔺)0.011s (+14.9% 🔺)2.021s (+81.2% 🔺)0.449s301.01x
🐘 PostgresExpress1.605s (+154.8% 🔺)2.006s (+99.4% 🔺)0.003s (-11.2% 🟢)2.025s (+97.9% 🔺)0.419s301.03x
🐘 PostgresNitro1.636s (+162.1% 🔺)2.003s (+99.0% 🔺)0.004s (-8.9% 🟢)2.026s (+98.2% 🔺)0.390s301.05x
🐘 PostgresNext.js (Turbopack)1.759s2.010s0.004s2.026s0.267s301.13x
💻 LocalNext.js (Turbopack)1.794s2.008s0.009s2.200s0.405s281.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express6.187s (-4.9%)7.300s (-8.9% 🟢)0.215s (-47.4% 🟢)8.049s (-8.9% 🟢)1.861s81.00x
▲ VercelNext.js (Turbopack)6.283s (-62.9% 🟢)7.726s (-57.6% 🟢)0.250s (+18.4% 🔺)8.561s (-54.8% 🟢)2.279s81.02x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.726s (-25.0% 🟢)1.032s (-17.3% 🟢)0.000s (-17.2% 🟢)1.042s (-17.2% 🟢)0.315s581.00x
🐘 PostgresExpress0.735s (-23.5% 🟢)1.071s (-16.2% 🟢)0.000s (-58.9% 🟢)1.086s (-16.9% 🟢)0.351s561.01x
🐘 PostgresNext.js (Turbopack)0.808s1.070s0.000s1.087s0.279s571.11x
💻 LocalExpress1.369s (+11.7% 🔺)2.012s (~)0.000s (-60.0% 🟢)2.014s (~)0.645s301.88x
💻 LocalNitro1.372s (+12.2% 🔺)2.012s (~)0.000s (+100.0% 🔺)2.014s (~)0.642s301.89x
💻 LocalNext.js (Turbopack)1.377s2.010s0.000s2.013s0.636s301.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.886s (+3.9%)4.961s (-2.8%)0.000s (-100.0% 🟢)5.416s (-2.1%)1.530s121.00x
▲ VercelNext.js (Turbopack)3.898s (-61.7% 🟢)5.307s (-53.9% 🟢)0.000s (+Infinity% 🔺)5.882s (-51.2% 🟢)1.984s111.00x
▲ VercelNitro⚠️missing-----

🔍 Observability: Express | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.442s (-18.6% 🟢)2.143s (-1.6%)0.000s (+Infinity% 🔺)2.153s (-2.1%)0.711s281.00x
🐘 PostgresNitro1.453s (-18.9% 🟢)2.103s (-1.8%)0.000s (-3.4%)2.117s (-2.6%)0.664s291.01x
🐘 PostgresNext.js (Turbopack)1.619s2.139s0.000s2.147s0.528s291.12x
💻 LocalNext.js (Turbopack)2.854s3.554s0.001s3.557s0.703s171.98x
💻 LocalExpress2.951s (-14.9% 🟢)3.672s (-9.0% 🟢)0.001s (-11.8% 🟢)3.675s (-9.0% 🟢)0.723s172.05x
💻 LocalNitro3.165s (-6.6% 🟢)3.895s (-3.4%)0.000s (-41.4% 🟢)3.903s (-3.3%)0.738s162.20x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)5.776s (+2.8%)7.544s (+8.1% 🔺)0.003s (+2000.0% 🔺)8.172s (+8.4% 🔺)2.397s81.00x
▲ VercelExpress5.837s (+27.2% 🔺)7.005s (+16.3% 🔺)0.000s (+Infinity% 🔺)7.418s (+14.9% 🔺)1.581s91.01x
▲ VercelNitro⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro12/21
🐘 PostgresExpress19/21
▲ VercelExpress19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ebde477

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Event Log Race Repro

1 of 2000 latest repro runs did not complete cleanly.

Run History

Metric2026-05-29 15:12 UTC #1
logs / deploy
2026-05-29 15:34 UTC #2
logs / deploy
2026-05-29 16:15 UTC #1
logs / deploy
2026-05-29 16:46 UTC #1
logs / deploy
Result1/1500 non-completed2/1500 non-completed3/2000 non-completed1/2000 non-completed
Total1500150020002000
completed1499149819971999
CORRUPTED_EVENT_LOG0121
USER_ERROR0000
RUNTIME_ERROR0000
stuck0100
other1010
Config1500 runs / c50 / 5 iters1500 runs / c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters2000 runs / hook 1500, fanout 250, race 250 / c50 / step c50 / 5 iters
Timingsleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000mssleep 5000ms / resume 15000+10000ms / timeout 150000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckother
hook-sleep1500150000000
step-fanout25024910000
step-sleep-race-step-biased12512500000
step-sleep-race-sleep-biased12512500000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-fanout53CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01KST9R93HWHTVGQFJ59B54XD1

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — well-built diagnostic harness, doing exactly what it claims

This is a real and useful piece of infrastructure. The harness has caught the ~0.2% baseline CORRUPTED_EVENT_LOG rate consistently across 4 separate CI runs (1, 2, 3, 1 races detected over 1500-2000 attempts), which validates both the hypothesis and the harness itself.

Architecture is clean

  • Label-gated (event-log-race-repro label OR manual dispatch) — won't run on every PR
  • All scenarios in one test with shared deployment, sequential execution per scenario, parallel within
  • Three scenario classes stressing different replay races:
    • hook-sleep Promise.race([hook, sleep]) — classic
    • step-fanout with parallel-step replays acting on stale logs
    • step-sleep-race biased both ways (step wins / sleep wins) to exercise branch-decision determinism
  • Sticky comment with history — last N runs visible at a glance, scenario breakdown for the latest run
  • --check mode in the renderer cleanly separates "render markdown" from "fail the CI step", so the same script powers both paths

Verified

  • All non-repro CI jobs pass (109/2 failures, only Benchmark Vercel (nitro-v3) flake and the expected Event Log Race Repro "failure")
  • The repro job runs ~24 min as expected for 2000 attempts at concurrency 50, plus the step-heavy scenarios
  • Sticky comment renders the history table correctly across 4 runs
  • The --check exit code logic correctly fails when nonCompleted > 0

Things to keep in mind (non-blockers)

  1. Drift risk: This is 881+372+405 lines of test + fixture + renderer scaffolding that depends on SDK surfaces (createHook, start, getHookByToken, resumeHook). If those APIs change, this harness needs updating. Worth a comment block at the top of the test file (or a README next to it) calling it out as "diagnostic-only, update when SDK race shapes change."

  2. Single-adapter coverage: Only runs against example-nextjs-workflow-turbopack. The races being targeted are SDK-level (event log replay), not adapter-specific, and the world-vercel backend is shared across adapters — so this is probably fine. But if races emerge that are adapter-specific (e.g. specific to webpack bundling), this won't catch them. Worth keeping in mind.

  3. Workflow file numbering: 101_hook_sleep_repro.ts follows the 1_, 2_, ..., 100_ convention. Good.

  4. Defensive env parsing: envNumber/envBoolean correctly fall back on invalid input. ✓

Sticky-comment design observations

The comment structure is well thought out:

  • <!-- event-log-race-repro-history JSON event-log-race-repro-history --> — hidden JSON for next run to read and append. Standard "sticky comment with state" pattern, clean.
  • Truncated to most recent N runs implicitly (the table doesn't grow unboundedly because old runs eventually scroll off in the markdown).

One micro-suggestion: if the history grows past 10-ish runs, the table could get unwieldy in the GitHub UI. Worth capping history.length in the renderer (history.slice(-10)) so old data ages out naturally. Not a blocker — easy to add later if it ever matters.

Bottom line

This is the right shape of tool for the problem (random races at 0.2% require a high-iteration harness to surface reliably). The label gating keeps it cheap by default. The sticky-comment history makes it actionable for tracking fixes over time.

Approving.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2173. (backport job run)

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

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@VaguelySerious@TooTallNate