compare the executive speed with Matlab

John W. Eaton jwe at octave.org
Fri Jan 2 16:45:37 CST 2009


On  2-Jan-2009, wim van hoydonck wrote:

| To conclude, on my computer, for this test, Octave is approximately
| as fast as C, gfortran is a little bit faster and ifort is 10 times as fast.
| 
| If you want to speed up your code, write the critical parts in Fortran, not C.

I don't think that conclusion is justified, but whatever.  Clearly it
is not the language alone, or gfortran would also be 10 times
faster...

In any case, I'm surprised by the 10 times factor.  So how about
comparing the assembly code that is generated.  What is ifort doing
that the others are missing?

jwe


More information about the Help-octave mailing list