Will upgrading matlab from 2009b to 2015 improve performance of mex Funtions?

I am currently using Matlab 2009b to run optimizations based on mex code. The time spent in numerous calls to mex function is more than 95%. I am currently using cygwin64 compiler on windows machine, which is setup using gnumex.
I want to know if there will be noticeable decrease in optimization time if I upgrade my matlab to 2015.
The release notes at matlab (<http://in.mathworks.com/help/matlab/release-notes.html>) mentions several performance improvements over the course of various release but if somebody can quantify it, it can be useful to make my decision.

1 Comment

As James states below, the performance of MEX files is determined by your compiler and not MATLAB itself. So I'm guessing you would not see much of a difference.
Out of curiosity, have you tried building your MEX Files with Visual Studio or, if you have access to it, Intel C++? They would at least be worth experimenting with to see if they perform differently.

Sign in to comment.

Answers (1)

The speed of your mex routines will likely depend mostly on the compiler you are using, and not the MATLAB version you are using. So unless your mex routines are making extensive use of callbacks into MATLAB (e.g., mexCallMATLAB) and calling specific functions that have been improved for speed, I would not expect much speedup simply by changing MATLAB versions.

Categories

Tags

Asked:

on 12 May 2015

Commented:

on 13 May 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!