Google Cloud Functions: Cold Start Duration per Instance Size
Google Cloud Functions have a setting to define the memory size that gets allocated to a single instance of a function. The CPU resources are allocated proportionally to the memory. So, in theory, larger instances could start faster.
However, there seems to be no significant speed-up of the cold start as the instance size grows.
Here is the comparison for a “Hello-World” JavaScript function:
Here is the same comparison for a JavaScript function with 14 MB (zipped) of NPM packages:
Here is the same comparison for a JavaScript function with 35 MB (zipped) of NPM packages:
Go back to Cold Starts in Google Cloud Functions.
comments powered by Disqus