• Resolved Artfuldodger

    (@greggwatson)


    In the latest version, I notice that on every site (each has its own separate worker – upgraded CF worker package) the the worker cpu execution times are now double or triple what they before, have not benchmarked these sites yet, but what if any impact if any does this have on site speed, and worker cpu usage billing? Also see a slight increase in worker exceptions and errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @greggwatson,
    The worker is not slow in any means whatsoever. For example in one of my website its is the CPU usage graph: https://i.imgur.com/I3bBAHS.png
    Where you can see the CPU usage is between 1ms to 4.4ms. In free plan up to 10ms execution is allowed. If you compare the CPU usage between the v4.3.6 worker script and this one, you will definitely see a little increase cause this new script is vastly improved and optimized compared to v4.3.6 script which has many flaws. Also this new script has all usecase handle along with many complex situation handling which resulted to more lines of code, that’s why you see the extra CPU execution time.

    But if you check the TTFB of cached and uncached content over the Worker you will see it is faster than previous code. So, in short the new worker code improves your site performance not reduces it. The CPU usage time is simply depends on how much code you have in your worker and how complex the code is. Don’t worry about that. Just check your site speed and TTFB and make sure your CPU execution time is within the allowed limit (10ms in case of free plans).

    Thread Starter Artfuldodger

    (@greggwatson)

    Ok thanks for the answer. Not using the free plan btw.

    • This reply was modified 3 years, 10 months ago by Artfuldodger.
    Plugin Contributor iSaumya

    (@isaumya)

    That’s fine if you are using a paid cloudflare plan but we do everything making sure it even works for free users. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slower Worker Performance’ is closed to new replies.