Skip to content Skip to sidebar Skip to footer

Why Google Cloud Function Runs More That 2 Minutes?

I have a function, sometimes execution (even not after 'cold start') takes 2 minutes. The local copy of the same function works in milliseconds. Am I missing smth in google cloud c

Solution 1:

With Cloud Functions you have CPU Ghz compute power according to the memory that you allow to your Cloud Functions.

Note: in this table, with 4Gb, you have 2vCPU @2.4Ghz, not 1vCPU at 4.8Ghz.

By default the memory is set to 256Mb. Try to deploy with 2Gb and you will increase your performances.

Note2: Your workstation has often 4, 8 or 16CPU @3+Ghz. Here it's only 1 @2.4Ghz max!


Post a Comment for "Why Google Cloud Function Runs More That 2 Minutes?"