Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Worker startup time increased to 1 second.
description: Worker startup time has been increased from 400 ms to 1s.
products:
- workers
date: 2025-10-10
---

import { Render, TypeScriptExample, WranglerConfig } from "~/components";

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.

This allows you to run Workers that import more complex packages and execute more code prior to requests being handled.

For more information, see the documentation on [Workers startup limits](/workers/platform/limits/#worker-startup-time).
4 changes: 2 additions & 2 deletions src/content/docs/workers/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Render, WranglerConfig, DashButton } from "~/components";
| [Environment variables](#environment-variables) | 64/Worker | 128/Worker |
| [Environment variable<br/>size](#environment-variables) | 5 KB | 5 KB |
| [Worker size](#worker-size) | 3 MB | 10 MB |
| [Worker startup time](#worker-startup-time) | 400 ms | 400 ms |
| [Worker startup time](#worker-startup-time) | 1 second | 1 second |
| [Number of Workers](#number-of-workers)<sup>1</sup> | 100 | 500 |
| Number of [Cron Triggers](/workers/configuration/cron-triggers/)<br/>per account | 5 | 250 |
| Number of [Static Asset](#static-assets) files per Worker version | 20,000 | 100,000 |
Expand Down Expand Up @@ -335,7 +335,7 @@ To reduce the upload size of a Worker, consider some of the following strategies

## Worker startup time

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

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/).

Expand Down
Loading