I wonder how much of time of browser
I wonder how much of time of browser rendering cpu time of workers is counted. Since browser rendering is paid, I hope majority of time spent on that will not be billed as worker cpu-time?
6 Replies
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
so if request with browser binding takes 5s than this 5000ms would be worker cpu time? ;o
regarding REST - I see that screenshot methods only returns status and message. shouldn't it return.. like.. binary image, the actual screenshot?
ok REST snapshot endpoint returns image, so screenshot endpoint is probably not finished
No. CPU time is not the same as time spent waiting for requests.
?cpu-time
CPU Time: the amount of work the CPU needs to do, measured in
ms. More CPU-heavy things will increase it (for example, hashing passwords). This is not the same as the time a fetch request takes. If you want to know why requests can go over the CPU Time Limit you have set sometimes, see ?cpu-time-overage tag.
Wall Time: the actual amount of time a Worker runs for, as though you measured it with a clock or your browser DevToolsIn your example that 5000ms would be wall time which is not billed (the browser would be billed, but not the Worker). The Worker would only incur a small amount of CPU time as it parses the response from the browser.
that was my initial thinking that majority of that (initiating browser rendering and running) would not be billed, thanks