Skip to content

Commit d7c6b80

Browse files
committed
[Workers] update workers startup limits
1 parent 4b92859 commit d7c6b80

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Worker startup time increased to 1 second.
3+
description: Worker startup time has been increased from 400 ms to 1s.
4+
products:
5+
- workers
6+
date: 2025-10-09
7+
---
8+
9+
import { Render, TypeScriptExample, WranglerConfig } from "~/components";
10+
11+
You can now upload a Worker that takes up 1 second to parse and execute its global scope. Previously, startup time was limited to 400 ms.
12+
13+
For more information, see the documentation on [Workers startup limits](/workers/platform/limits/#worker-startup-time).

src/content/docs/workers/platform/limits.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Render, WranglerConfig, DashButton } from "~/components";
1818
| [Environment variables](#environment-variables) | 64/Worker | 128/Worker |
1919
| [Environment variable<br/>size](#environment-variables) | 5 KB | 5 KB |
2020
| [Worker size](#worker-size) | 3 MB | 10 MB |
21-
| [Worker startup time](#worker-startup-time) | 400 ms | 400 ms |
21+
| [Worker startup time](#worker-startup-time) | 1 second | 1 second |
2222
| [Number of Workers](#number-of-workers)<sup>1</sup> | 100 | 500 |
2323
| Number of [Cron Triggers](/workers/configuration/cron-triggers/)<br/>per account | 5 | 250 |
2424
| Number of [Static Asset](#static-assets) files per Worker version | 20,000 | 100,000 |
@@ -335,7 +335,7 @@ To reduce the upload size of a Worker, consider some of the following strategies
335335

336336
## Worker startup time
337337

338-
A Worker must be able to be parsed and execute its global scope (top-level code outside of any handlers) within 400 ms. Worker size can impact startup because there is more code to parse and evaluate. Avoiding expensive code in the global scope can keep startup efficient as well.
338+
A Worker must be able to be parsed and execute its global scope (top-level code outside of any handlers) within 1 second. Worker size can impact startup because there is more code to parse and evaluate. Avoiding expensive code in the global scope can keep startup efficient as well.
339339

340340
You can measure your Worker's startup time by deploying it to Cloudflare using [Wrangler](/workers/wrangler/). When you run `npx wrangler@latest deploy` or `npx wrangler@latest versions upload`, Wrangler will output the startup time of your Worker in the command-line output, using the `startup_time_ms` field in the [Workers Script API](/api/resources/workers/subresources/scripts/methods/update/) or [Workers Versions API](/api/resources/workers/subresources/scripts/subresources/versions/methods/create/).
341341

0 commit comments

Comments
 (0)