Cloudflare Worker CPU Time Budget Calculator
Estimate CPU time consumption for your Cloudflare Worker. Add operations, see budget usage against free (10ms) and paid (50ms) limits, and get optimization recommendations.
Add Operations
CPU Budget Status
Operations
No operations added yet.
Frequently Asked Questions
What is the Cloudflare Workers CPU time limit?▼
Cloudflare Workers on the free plan have a 10ms CPU time limit per request. The paid Workers Paid plan raises this to 50ms CPU time (30s wall clock time) on the Bundled pricing, or up to 30 seconds CPU time on Unbound pricing. CPU time measures active computation, not waiting for I/O like fetch() calls.
What is the difference between CPU time and wall clock time?▼
CPU time counts only the time your Worker's JavaScript is actively running. Wall clock time includes waiting for external fetch() calls, KV reads, and other I/O. A Worker can take 30 seconds of wall clock time but only 50ms of CPU time. Most Workers that do I/O spend very little CPU time relative to wall clock time.
What happens if I exceed the CPU time limit?▼
Workers that exceed their CPU time limit receive a 1101 error (Worker threw exception). Your Worker is terminated mid-execution. This cannot be caught with try/catch inside the Worker. You need to either optimize your code, upgrade to Unbound pricing, or offload heavy computation to Durable Objects or other services.
How do I measure CPU time in a Cloudflare Worker?▼
Use Date.now() or performance.now() to measure elapsed time. Within a Worker, you can implement a budget tracker that periodically checks elapsed CPU time and either completes early or returns a partial result. The Cloudflare dashboard also shows P50/P99 CPU time metrics for your deployed Workers.
When should I use Workers Unbound vs Bundled pricing?▼
Use Bundled ($5/month flat, 10M req/month) when requests are short and CPU time stays under 50ms. Use Unbound (billed per CPU-ms) for compute-intensive tasks like image processing, data transformation, or AI inference that need more than 50ms CPU time. Unbound is also better for unpredictable workloads.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →You Might Also Need
Web Performance Checklist
Interactive web performance checklist covering images, fonts, JavaScript, CSS, caching, and server. Check off items to track your score out of 100 and export as Markdown.
Open free tool →
Neon DB Query Builder
Visual query builder for Neon serverless PostgreSQL. Generate raw SQL, @neondatabase/serverless TypeScript, and Drizzle ORM code for SELECT, INSERT, UPDATE, DELETE operations.
Open free tool →
Lighthouse Score Simulator
Estimate Lighthouse performance scores based on JS bundle size, CSS, images, TTFB, and render-blocking resources. Get LCP, FID, CLS, FCP estimates.
Open free tool →
More Free Tools
Related Articles
Cloudflare Workers vs Vercel Edge Functions: 2026 Comparison
Deep comparison of Cloudflare Workers vs Vercel Edge Functions in 2026: runtime differences, limits, pricing, storage options, developer experience, and when to choose each.
Cloudflare Workers + D1: Build a Full-Stack Edge App in 2026
Complete guide to Cloudflare Workers with D1 SQLite database. Learn Worker setup, D1 schema migrations, SQL queries, REST API patterns, and deployment — all running at the edge with zero cold starts.
WebAssembly in Production: Edge Functions & Runtime Performance 2026
How to run WebAssembly in production edge functions in 2026: Cloudflare Workers, Fastly Compute, building with Rust and wasm-pack, performance benchmarks, WASM Component Model, and WASI.
Cloudflare Workers & Serverless Edge Computing: Complete Guide for 2026
Learn how to build and deploy serverless APIs with Cloudflare Workers. Covers Worker syntax, KV storage, D1 database, Durable Objects, and R2 — with TypeScript examples you can use today.
AWS Lambda Cold Start Optimization: 10 Proven Techniques 2026
Eliminate or minimize AWS Lambda cold starts with 10 proven techniques: provisioned concurrency, SnapStart, package minimization, ARM Graviton2, lazy loading, and more with benchmark data.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →