Mex speed slower on linux than Windows
2 views (last 30 days)
I have been trying to use mex to speed up some of my functions. I was surprised that running the same compiled mex code on windows 7 (on a inferior machine) is faster than that on a linux (Scientific Linux 6).
Compiler: Visual Studio C++ 2012
Processor: i5-2450M (2.5 GHz)
Elapsed time is 2.761036 seconds.
Compiler: GCC 4.4.7
Processor: Intel(R) Xeon(R) CPU X5482 @ 3.20GHz
Elapsed time is 8.622023 seconds.
I cannot figure out why a more powerful processor will be slower in running the same mex file. Thank you for your help!