help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compare the executive speed with Matlab


From: Sergei Steshenko
Subject: Re: compare the executive speed with Matlab
Date: Fri, 2 Jan 2009 10:20:04 -0800 (PST)



--- On Fri, 1/2/09, Michael Goffioul <address@hidden> wrote:

> From: Michael Goffioul <address@hidden>
> Subject: Re: compare the executive speed with Matlab
> To: "Howard" <address@hidden>
> Cc: address@hidden
> 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.





      


reply via email to

[Prev in Thread] Current Thread [Next in Thread]