On the workers resource limits page, I see the limits mentioned as,
An individual Worker script may consume up to:
- 5-50 milliseconds CPU time per request, depending on Cloudflare Plan
- 15 seconds real time per request
- 128MB memory at any given time
As a developer, I’m curious to know how the worker platform measures and attributes CPU time for each request. Since there can be multiple requests running in parallel for the same request, I’m interested to know the implementation details.
I tried looking at various sources to see how it is implanted, I couldn’t find a reliable way to identify the CPU time per thread etc.
Can someone who knows the implemention details share this info?