-werners-
Esteemed Contributor III

because of the for loop.
if you would have vectorized the whole code, so not using a loop np could go wild.

About the vm specs: You can find all this on the Azure docs.
The big difference depends i guess on what the 0.15 is. Seconds, minutes, hours, days?
To get a reliable measurement you should run it several times and then compare.