help-octave
[Top][All Lists]
Advanced

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

Re: octave-speed


From: Paul Kienzle
Subject: Re: octave-speed
Date: Fri, 4 Feb 2005 21:45:50 -0500

Performance for vector operations is on par with matlab. Performance for loops takes a 10x hit. You can develop the algorithm in Octave and code the bits that require loops in C++.

Look through the list archives for links to work on an octave compiler.

- Paul


On Feb 4, 2005, at 9:34 AM, Rafael Rodríguez Velilla wrote:

Hello all,

I'm new to octave and I'm planning to use it to simulate DSP algorithms.

Speed is a matter of concern in my simulations. I have made a stupid test to compare octave's performance with Matlab's performance:

m=1:100000;
n=8;
for i=1:99999
  n=sqrt(sqrt(m(i)*m(i+1))*n);
endfor
n

In the same computer it takes 10 seconds to run under linux-octave but less than a second under Matlab.

I have compiled octave 2.1.64 with shared libraries with gcc3.2...
... is there a way to improve its performance?
For example by compiling it with CPPFLAGS=-march=i686???

I have read that maybe using ATLAS improves the performance.

Any hints on how to compile it to run faster?



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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