From: Lada Kugis <lada.kugis@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Speed Comparison
Date: Sat, 11 Apr 2009 05:29:16 +0200
Organization: T-Com
Lines: 26
Message-ID: <q530u4tftttaenhbov4p9apjuv3am44bb2@4ax.com>
References: <grokia$rcq$1@fred.mathworks.com> <groohp$l15$1@fred.mathworks.com>
NNTP-Posting-Host: 78-1-145-190.adsl.net.t-com.hr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: ss408.t-com.hr 1239420562 1367 78.1.145.190 (11 Apr 2009 03:29:22 GMT)
X-Complaints-To: abuse@t-com.hr
NNTP-Posting-Date: Sat, 11 Apr 2009 03:29:22 +0000 (UTC)
X-Newsreader: Forte Agent 5.00/32.1170
Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!feed.ac-versailles.fr!usenet-fr.net!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.t-com.hr!news3.t-com.hr!not-for-mail
Xref: news.mathworks.com comp.soft-sys.matlab:531978


On Sat, 11 Apr 2009 00:34:01 +0000 (UTC), "Chaos"
<rothko.fan@gmail.com> wrote:

>"Sky " <theskyishigh@yahoo.com> wrote in message <grokia$rcq$1@fred.mathworks.com>...
>> I have ported a code from FORTRAN95 to MATLAB. Replicated it almost exactly. About 500 lines in length, it contains a lot of double precision arithmetic and nested iterations. Very little linear algebra.
>> 
>> Under MATLAB R2008b it executes in 7.3 seconds. Compiled under Compaq Visual Fortran 6 it takes 375 milliseconds. Under the Intel Fortran 11 compiler, it takes 473 MICROseconds. These times are for a WinXP system, Core 2 Duo 2 GHz (4MB L2 Cache), 2GB RAM...
>> 
>> Is this possible? Is MATLAB this slow or am I doing something wrong?
>
>Learn how to use mex to compile your fortran code with Intel ifort and use Matlab as front-end to your code and make nice plots when done.  You'll get most of your speed back.
>
>Fortran is great! It is a THE numerical, balls to the wall, sledgehammer, especially if you implement OpenMP or MPI in your loops.  Any F77/F95 code vs Matlab both at the same level of competency, Fortran will absolutely STOMP Matlab.
>
>Matlab/C++ are 'Swiss Army' knives built for anything and everything.  Fortran doesn't do many things well, you don't use it to make nice GUI's or plots but what it does well better than any other language is number crunch, high-precision, complex, 32/64 bit.

Sorry if I'm jumping into a discussion like this, but
do you know where one can find examples of this (gui frontend for
fortran code) - maybe a book or two where such is explained for
someone who's never done much gui programming ?

best regards
Lada

>
>Where did you get that copy of Compaq Visual Fort? They stopped making that years ago.