---
type: "post"
id: "workflow-sdk-is-10x-faster-again-3a4eca"
slug: "workflow-sdk-is-10x-faster-again-3a4eca"
title: "Workflow SDK is 10x faster, again."
description: "Workflow SDK 5.8 replaces its execution engine with one rebuilt for performance, and Vercel reports p75 step-to-step overhead fell from 85 ms in 5.2.0 to 7 ms in 5.8.0."
retrieval_nugget: "Workflow SDK 5.8 replaces its execution engine with one rebuilt for performance, and Vercel reports p75 step-to-step overhead fell from 85 ms in 5.2.0 to 7 ms in 5.8.0."
published_at: "2026-11-25"
updated_at: "2026-11-25"
record_date: "2026-11-25"
date_kind: "published_at"
topics: ["workflows","developer-tools"]
entities: ["Vercel","Workflow SDK"]
related_patterns: []
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://vercel.com/changelog/workflows-speculative-execution"
source_urls: ["https://vercel.com/changelog/workflows-speculative-execution"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:workflow-sdk-is-10x-faster-again-3a4eca"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/workflow-sdk-is-10x-faster-again-3a4eca/","markdown":"https://newruntime.com/posts/workflow-sdk-is-10x-faster-again-3a4eca.md","json":"https://newruntime.com/posts/workflow-sdk-is-10x-faster-again-3a4eca.json"}
markdown_url: "https://newruntime.com/posts/workflow-sdk-is-10x-faster-again-3a4eca.md"
---

# Workflow SDK is 10x faster, again.

## Retrieval answer

Workflow SDK 5.8 replaces its execution engine with one rebuilt for performance, and Vercel reports p75 step-to-step overhead fell from 85 ms in 5.2.0 to 7 ms in 5.8.0.

## Summary

Workflow SDK 5.8 replaces its execution engine with one rebuilt for performance, and Vercel reports p75 step-to-step overhead fell from 85 ms in 5.2.0 to 7 ms in 5.8.0. ([vercel.com](https://vercel.com/changelog/workflows-speculative-execution))

## What happened

Much of the gain relies on speculative execution, so only idempotent steps are eligible. If a step already passes its `stepId` as an idempotency key, Vercel says it needs no changes. For a step that cannot safely be retried, set `maxRetries = 0` to opt out of speculation and ensure it runs at most once; the release notes use sending email over SMTP as an example, since a retry could send a second email.

Vercel-maintained Worlds support the new engine. A third-party World needs World spec version 9 support to receive the improvement; without it, new runs remain on the previous engine.

Vercel reports that a median run with 102 seconds of step work finished in 111 seconds, versus 3.0 minutes before. For a 256-step fan-out, reported overhead fell from 13.5 seconds to 2.5 seconds, while function time outside step work dropped from 1,446 seconds to 105 seconds. In a five-turn agent loop streaming tokens through durable streams and calling tools, overhead fell from 3.0 seconds to 0.9 seconds. Resume time after one second idle fell from 425 ms to 184 ms.

## What the archive adds

This update extends the code-defined workflow orchestration approach discussed in our earlier coverage.

## Why it matters

New runs switch to the new engine after the upgrade, while runs already in progress stay on the version they started with. To keep new runs on the previous engine while upgrading, set `WORKFLOW_SPEC_VERSION=8`.

## Limits and uncertainty

These are Vercel’s benchmark results: its table reports p75 latency and median-run function time after subtracting simulated work. The 5.2.0 step-overhead and resume measurements were taken Nov. 12, 2026; the other table measurements were taken Nov. 24, 2026. Resumptions after more than five seconds idle may have slightly higher overhead, and keeping functions warm longer can improve resume time at the cost of additional compute. Users on 4.x should follow the upgrade guide because version 5 is a major release.

## Skill to build now

Upgrade to `workflow@5.8.0` or later to enable the new engine; Vercel’s published command is `npm install workflow@latest`.

## Reader takeaway

Workflow SDK 5.8 cuts reported step-to-step overhead from 85 ms to 7 ms, but much of the gain comes from speculative execution. Before upgrading, make retryable steps idempotent or set `maxRetries = 0` for steps that must run once, and check that a third-party World supports spec version 9.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Workflows](https://newruntime.com/topics/workflows.md): Explore the workflows topic hub.
- topic hub: [Developer Tools](https://newruntime.com/topics/developer-tools.md): Explore the developer-tools topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
