CPU profiling · Content tag
Browse content discussing cpu profiling.
12 matching items
Guides · 12
Community: Workers Free Cron can show 98–200 ms CPU against a 10 ms limit without a CPU-limit error; an MVP says rollover can allow it until invocations get frequent
On 2026-11-18, Cloudflare Community user alexandru.bonciu asked how to read Workers Free Cron CPU. A Worker on a 15-minute Cron showed Observability CPU Time of 98 ms, 138 ms, and 200 ms, with wall time about 22.6–38.6 seconds, and the dashboard sometimes labelled 200 ms as 100% of maximum. Official docs list a 10 ms CPU limit for Cron Triggers on Free and mention occasional rollover. Over seven days, Metrics → Errors showed no Exceeded CPU Time Limits errors. MVP i40west (title: MVP '23–'26) replied the same day that the 10 ms limit does not automatically kill the Worker every time, that it can be exceeded to a certain degree especially if the Worker is not invoked often, and that if there is no error the run completed successfully. The same reply warns that if the Worker exceeds the limit every time in testing, it can be killed at any time, and with frequent invocation it will definitely start erroring; 200 ms should not be taken as always acceptable.
风易: On the free tier, do not wait synchronously for bookkeeping and log writes; return first, then persist to the database in the background with waitUntil
On 2026-11-16, X user @Michael_liyang (风易) wrote: on the free tier, do not wait synchronously for bookkeeping and log writes; return the response first, and throw write operations to the background. A synchronous write to D1 both slows the response and burns CPU time. The approach is: the response contains only the business result; bookkeeping goes through waitUntil to persist in the background; on failure, enter the queue for a catch-up write. The chain is request → call upstream → return the result first → write the books in the background → catch-up write on failure.
The free plan wall people miss is CPU time, not request count
风易 (@Michael_liyang) says the Workers Free wall most often missed is the 10 ms CPU time per invocation, which fails the request outright even when the daily quota is not used up; he suggests keeping cron handlers to dispatch only and moving heavy work into small queued steps with progress saved in D1.
EmDash CMS on Cloudflare: the default 1-minute cron keeps using Worker CPU
Ban Nguyen (@pandev00) warns that EmDash CMS on Cloudflare ships a default 1-minute cron that burns Worker CPU time even if you never use scheduled posts, and suggests reducing or disabling it, setting a CPU limit and using traces.
Running a job board on Workers Free: error 1102, D1’s 50 queries per request, and shared egress IPs
SagaSu (@sujingshen) describes keeping DMtheFounder on the Workers Free plan: SSR CPU of P50 54 ms against a 10 ms limit caused error 1102 until he edge-cached anonymous pages, an admin job hit D1’s 50-queries-per-invocation limit until he batched writes, and IndexNow 429s came from shared Workers egress IPs.
Workers Paid: about 3 ms of average CPU per request stays inside the $5
Lenny Enderle (@lenny_enderle) works out that Workers Paid’s included 10 million requests and 30 million CPU-ms a month mean an average of 3 ms CPU per request fits in the $5 minimum; at 7 ms, 10 million requests come to $5.80. Duration is not billed, only CPU time.
Introducing on-demand profiling: Cloudflare production examples
Dominik Picheta introduces on-demand CPU and memory profiling for Workers and Durable Objects, sharing Cloudflare examples of removing duplicate work and unnecessary allocation paths.
Workers pricing and limits: how CPU-time billing works and how to estimate your bill
BenZ explains, in Traditional Chinese, the two dimensions of a Workers bill — requests and CPU time — the Free and Paid limits, a step-by-step way to estimate a monthly bill, and the limit errors people hit most.
Production profiling for Workers and Durable Objects: operation guide
Cloudflare explains how to locate expensive functions and memory allocations in deployed Workers and Durable Objects using on-demand profiles and flamegraphs.
FlareCost: Cloudflare Workers error 1102
FlareCost’s error-1102 page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: On the Free plan the usual cause is more than 10 ms of CPU. Paid plan: On Paid, 1102 means the invocation passed its CPU limit (default 30 seconds, max 5 minutes) or the memory limit. Both are documented as 1102. The errors page says 1102 is the CPU time limit. The limits page also returns 1102 for memory. Read both before you only look at CPU. Raising cpu_ms on Paid can trade a 1102 for a real CPU charge if the work is actually expensive.
FlareCost: Workers CPU time limit — 10 ms on Free, up to 5 minutes on Paid
FlareCost's Workers CPU time page says Free allows 10 ms per invocation and Paid up to 5 minutes (default 30 seconds), and that only active execution counts: waiting on fetch, KV or D1 does not. Reviewed against official pages on 2026-11-02.
FlareCost: Cloudflare Workers memory limit
FlareCost’s workers-memory page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 128 MB. Paid plan: 128 MB. Exceeding memory returns error 1102. Buffering a response that will not fit can also raise `Memory limit would be exceeded before EOF`. Memory is not a separate line on the Workers bill. Durable Object duration is the meter that prices an allocation, and that allocation is also described as 128 MB.