Azure functions runs faster on Cloud and slow on local device.
I have been Azure functions and developing apps using Python for more than a month. Earlier I did not face any issues while developing. The following is my system specs:
RAM-> 16 GB
Processor -> i5 8th Gen
Storage-> 256 GB SSD
OS-> Linux
After one fine weekend, when I started my Azure functions on the local dev server, the API took 4 mins for request processing while the actual code only ran for 3 seconds. The same API was working under the runtime of 2ms on the cloud. I updated the func tools version and rebooted my device. I also shut down 3 windows of Chrome and started the Azure function. The issue still persists. I have checked the RAM usage and there is still more than 5 GB of free RAM. I have been unable to test my code locally.