I recently switched from Matlab to Python. While converting one of my lengthy codes, I was surprised to find Python being very slow. I
Matlab
Python
Matlab uses commerical MKL library. If you use free python distribution, check whether you have MKL or other high performance blas library used in python or it is the default ones, which could be much slower.