I am experimenting Puppeteer on Cloud Functions. After a few tests, I noticed that taking a page screenshot of https://google.com takes about 5 seconds on average when deployed on Google Cloud Functions infrastructure, while the same function tested locally (using firebase serve) takes only 2 seconds. At first sight, I was thinking about a classical cold start issue. Unfortunately, after several c