I'm running some Azure Functions with HTTP Trigger. I noticed, very often that some functions take more than 10 secs to load and start my code.
As you can see, I put Trace at the begining and the end of the function. My code takes 2.79sec to run, but the function takes 8sec to load.
My functions use:
- c# and precompiled dll
- App Service running on B3
- Always On is activated
- The runtime is ~1
Update: Sometimes, it takes 30sec with 100% CPU, just to load the function. Remember, I use App Service Plan, not Consumption Plan.