help-octave
[Top][All Lists]
Advanced

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

Re: for loop speed in different Windows versions


From: Henry F. Mollet
Subject: Re: for loop speed in different Windows versions
Date: Fri, 13 Feb 2004 11:33:45 -0800
User-agent: Microsoft-Entourage/10.1.1.2418

If it helps: My results for same test  are similar to what was given
for self-compiled version of 2.1.50  and were done with
iMac 400 MHz Power PC using
GNU Octave, version 2.1.46 (powerpc-apple-darwin6.8) installed from source
using Fink Installer.
Henry

> Results
> Test  Pre-compiled  Self-compiled
>     2.1.50        2.1.50   2.1.53
> ----  --------      -------  -------
> 1     0.066000      0.47900  0.16800
> 2     0.35700       2.1030   1.7170
> 3     0.61700       4.0720   3.0530
> 4     1.5470        9.5670   8.4720
> 5     1.3290        8.1820   6.3380

My Mac results with Octave 2.1.46:
octave:92> tic;z=1;x=[1:1e5];tot=0;for i=1:1e5;;end;toc
ans = 0.49023
octave:93> tic;z=1;x=[1:1e5];tot;  for i=1:1e5;tot;end;toc
ans = 2.1989
octave:94> tic;z=1;x=[1:1e5];tot=z;for i=1:1e5;tot=z;end;toc
ans = 4.1260
octave:95> tic;z=1;x=[1:1e5];tot=0;for i=1:1e5;tot=x(i);end;toc
ans = 9.9559
octave:96> tic;z=1;x=[1:1e5];tot=0;for i=1:1e5;tot=sin(z);end;toc
ans = 8.5424



on 2/13/04 7:41 AM, Ben Diedrich at address@hidden wrote:

> "John W. Eaton" wrote:
>> What compiler options did you use?
>> 
>> What compiler version and options were used for the octave-forge
>> binary?  You should be able to find that information by running octave
>> and looking at the CC_VERSION, CXX_VERSION, CFLAGS, and CXXFLAGS
>> fields in the structure returned by the octave_config_info function.
>> 
>> jwe
> 
> I didn't add any extra compiler options, beyond the default. I did use
> the --enable-shared and --disable-static options, which were also used
> in the octave-forge binary. Here is the compiler information for each:
> 
> For the octave-forge binary:
> CC_VERSION = 3.2 20020927 (prerelease)
> CXX_VERSION = 3.2
> CFLAGS = -g -O2
> CXXFLAGS = -g -O2 -Wall
> 
> For 2.1.50/53 from source:
> CC_VERSION = 3.3.1 (cygming special)
> CXX_VERSION = 3.3.1
> CFLAGS = -g -O2
> CXXFLAGS = -g -O2 -Wall
> 
> I noticed a few differences in other settings while looking through. I
> can't say if or how these would affect the speed:
> 
> octave-forge binary:
> LIBS = -lreadline  -ltermcap -lwsock32 -lm
> MKOCTFILE_SH_LDFLAGS = -shared
> 
-Wl,--export-all-symbols,--enable-runtime-pseudo-reloc,--enable-auto-image-bas>
e
> SH_LDFLAGS = -shared
> 
-Wl,--export-all-symbols,--enable-runtime-pseudo-reloc,--enable-auto-image-bas>
e
> 
> 2.1.50/53 from source:
> LIBS = -lreadline  -lncurses -lwsock32 -lm
> MKOCTFILE_SH_LDFLAGS = -shared -Wl,--export-all-symbols
> -Wl,--enable-auto-import
> SH_LDFLAGS = -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
> 
> Ben Diedrich
> 
> 
> 
> -------------------------------------------------------------
> 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]