help-octave
[Top][All Lists]
Advanced

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

Re: octave vs. matlab speed


From: Peter Cloetens
Subject: Re: octave vs. matlab speed
Date: Fri, 11 Aug 2006 10:27:09 +0200
User-agent: Internet Messaging Program (IMP) 3.2.1

In important cases octave seems actually faster than matlab. For 2D fft's I 
observed a 20% speed improvement.
Peter

octave:
> testfft
ans = 6.0428

matlab:
>> testfft
Elapsed time is 7.482856 seconds.

> type testfft

a=rand(1024);
tic
for k=1:20
    b=fft2(a);
end
toc

Quoting Peter Jensen <address@hidden>:

> Robert,
> 
> >From the previous e-mails it appears that 
> octave in most cases, is approx 2-3 times 
> slower than matlab,
> 
> In your case it is 100 times slower !!.
> 
> It would be interesting to find out 
> what segment of you code that causes
> the big difference.
> 
> One way to profile your program is 
> to insert some tic/toc's. You can then
> home in on the offending code.
> 
> Peter
> 
> On Wed, 2006-08-09 at 15:16 -0700, Robert Uang wrote:
> > Hi,
> > 
> > I have just discovered octave recently and I am
> > thrilled about it mainly for two reasons - 1. it is
> > similar to Matlab code, and 2. it is absolutely free!
> > 
> > However, running the same procedure in Matlab is 100x
> > faster than running in Octave.  Can you comment on why
> > this is so, and if there are any general rules of
> > thumb to help speed up simulation time?
> > 
> > Thanks,
> > 
> > Robert
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > _______________________________________________
> > Help-octave mailing list
> > address@hidden
> > https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


reply via email to

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