Python Workers now feature improved cold start performance, reducing initialization time for new Worker instances. This improvement is particularly noticeable for Workers with larger dependency sets or complex initialization logic.
Every time you deploy a Python Worker, a memory snapshot is captured after the top level of the Worker is executed. This snapshot captures all imports, including package imports that are often costly to load. The memory snapshot is loaded when the Worker is first started, avoiding the need to reload the Python runtime and all dependencies on each cold start.
We set up a benchmark that imports common packages (httpx, fastapi and pydantic) to see how Python Workers stack up against other platforms:
| Platform | Mean Cold Start (ms) |
|---|---|
| Cloudflare Python Workers | 1027 |
| AWS Lambda | 2502 |
| Google Cloud Run | 3069 |
These benchmarks run continuously. You can view the results and the methodology on our benchmark page.
In additional testing, we have found that without any memory snapshot, the cold start for this benchmark takes around 10 seconds, so this change improves cold start performance by roughly a factor of 10.
To get started with Python Workers, check out our Python Workers overview.
Source: Cloudflare
Latest Posts
- (Updated) SharePoint branding governance via PowerShell [MC1186372]
![(Updated) SharePoint branding governance via PowerShell [MC1186372] 2 pexels pixabay 274192](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft 365 Copilot: Generate text for a PowerPoint slide using slide context [MC1178510]
![(Updated) Microsoft 365 Copilot: Generate text for a PowerPoint slide using slide context [MC1178510] 3 pexels inspiredimages 133190](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Agents, Workers – Agents SDK v0.6.0: RPC transport for MCP, optional OAuth, hardened schema conversion, and @cloudflare/ai-chat fixes

- Stream – Stream live inputs can now be disabled and enabled


![(Updated) SharePoint branding governance via PowerShell [MC1186372] 2 pexels pixabay 274192](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-pixabay-274192-150x150.webp)
![(Updated) Microsoft 365 Copilot: Generate text for a PowerPoint slide using slide context [MC1178510] 3 pexels inspiredimages 133190](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-inspiredimages-133190-150x150.webp)


