Why is my app slower on Azure?

Maybe you have been in a situation where you have an app and when you publish it to Azure its performance is different from your desktop.
I thought the problem was disk but eventually I found that at least in my case the problem was CPU.
Modern workstations have powerful processors. Mine is no exception:

My Processor

However Azure processors are Xeon running at 2.4 GHz. The difference in CPU can affect you app.
How can then I test my app to be certain of its behavior on Azure?

Well you can tweak your processor to run at another speed. An easy way to do that is:
1. Go to Control Panel
2. Power Options
3. For your plan click Change Plan Settings
4. On the Change settings for the plan select “change advanced power settings”
5. Go to Processor power management and change Maximum processor state. In my case to get to 2.4 GHZ I have to change the setting to 72%

Processor power management

NOTE: If the maximum and minimum processor state do not appear you might need to go your BIOS and disable Virtualization.