[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Differences in Matlab/Octave processing time
From: |
David Bateman |
Subject: |
Re: Differences in Matlab/Octave processing time |
Date: |
Fri, 30 May 2008 17:48:45 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080306) |
HempyElmo wrote:
> Hi,
>
> I've got a Matlab code which I want to run on Octave. With Matlab this
> program takes about 5 minutes under Windows XP on a Intel Pentium 4 2.4 GHz
> to make an output .mat. With Octave on the same computer, it took ages...
> maybe 30 times more processing time. Same thing happens for Octave with the
> same version (2.9.15) on a Linux machine (Intel Xeon 2.8 GHz). Is anybody
> have a reason why? Is it because of Octave or the code itself?
>
> The code reproduce a particle in cells simulation. I don't know how many
> loops it makes.
>
> Thanks!
"loops" you say.... You answered your own question, Octave doesn't yet
have a JIT though I expect that will change soonish, so loops are slow.
Till then read
http://www.mathworks.com/support/tech-notes/1100/1109.html
which equally (or probably even more so than matlab) applies to Octave,
and vectorize your code.
D.
- Differences in Matlab/Octave processing time, HempyElmo, 2008/05/29
- Re: Differences in Matlab/Octave processing time, Stuart Brorson, 2008/05/30
- Re: Differences in Matlab/Octave processing time, Francesco Potorti`, 2008/05/30
- Re: Differences in Matlab/Octave processing time, Michael Goffioul, 2008/05/30
- Re: Differences in Matlab/Octave processing time,
David Bateman <=
- Re: Differences in Matlab/Octave processing time, Dmitri A. Sergatskov, 2008/05/30
- Re: Differences in Matlab/Octave processing time, Jaroslav Hajek, 2008/05/30
- Re: Differences in Matlab/Octave processing time, Jordi GutiƩrrez Hermoso, 2008/05/30
- Re: Differences in Matlab/Octave processing time, HempyElmo, 2008/05/30