I'm just about to do some improvements in my Firebase Functions in order to try to speed up the startup time, but I'm not sure how to measure it, in order to see if my changes are getting it faster or slower.
Thanks!
CodePudding user response:
You can use Cloud Trace to measure every request that your Functions make or receive; with Cloud Trace you can see a detailed view of how many milliseconds takes to complete certain requests.
You can also integrate with Cloud Logging to gather more details, like the agent that made the request to see for example, maybe the requests take more in Mozilla than Chrome.
Here is a guide that could help you set up and use Trace to compare response times.
CodePudding user response:
Send a timestamp from caller as a parameter to your function. Then inside function take another timestamp and measure it with one you get from caller.
