billflare.

CPU profiling · Content tag

Browse content discussing cpu profiling.

12 matching items

Guides · 12

GuideWorkers

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.

GuideD1Workers

风易: 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.

GuideWorkersQueuesD1

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.

GuideWorkers

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.

GuideWorkers

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.