compare the executive speed with Matlab

Sergei Steshenko sergstesh at yahoo.com
Fri Jan 2 12:20:04 CST 2009




--- On Fri, 1/2/09, Michael Goffioul <michael.goffioul at gmail.com> wrote:

> From: Michael Goffioul <michael.goffioul at gmail.com>
> Subject: Re: compare the executive speed with Matlab
> To: "Howard" <shj1130 at pchome.com.tw>
> Cc: help at octave.org
> Date: Friday, January 2, 2009, 6:31 AM
> It's usually much appreciated that such comment comes
> with a concrete example demonstrating the problem.
> 
> Saying "octave is slow" is quite vague and nobody
> will
> try to help you, because we just can't figure out why
> octave is slow for you. Saying "octave is slower than
> Matlab on this piece of code" is much more helpful.
> 
> Michael.
> 

Well, IIRC, if I need to calculate, say, 'sin' function for a vector of 
~150000 elements, 'octave' speed is ~5 times slower than the one of the 
equivalent code in "C".

Of course, I'm not talking about using loops in 'octave' - just a plain
simple operation on vector.

Since I've discovered this I "outsource" such stuff to "C", i.e. I find it
more efficient for what I need to do to invest extra effort in writing
the needed code in "C".

I mean, I'm trying to implement in 'octave' relatively complex algorithmic
stuff, and where possible to use "C" for straightforward massive
calculations.

Regards,
  Sergei.





      


More information about the Help-octave mailing list