How is CPU time calculated

Hello, I’m wondering how CPU time is calculated in a worker. I suspect it to be one of two things

  • A combination between all percentiles (50th, 75th, 99th, and 99.9th percentile)
  • The highest percentile counting towards the CPU time.

If either of those are what the CPU time is could someone please tell me what it is and how is calculated?

The timings show the CPU time. The CPU time is simply the time it takes for the CPU to process something, so waiting for I/O (like a fetch) will not take CPU time. Doing a for loop over an array will take CPU time.

Read more: CPU time - Wikipedia


This post was flagged by the community and is temporarily hidden.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.