[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to speed up Octave
From: |
Laubach, Mark (Nicolelis Lab) |
Subject: |
How to speed up Octave |
Date: |
Tue, 19 Jun 2001 13:27:28 -0400 |
Hi,
Inspired by the recent thread titled "Octave / Win 2000 memory limitations",
I ran a few tests of execution speed for Octave (2.0.16, from the Mandrake
install disks) under Linux (Mandrake 8.0) and Windows (Win2k), and Matlab
(version 6) under Windows. I was disappointed to see how slow Octave is
compared to Matlab on my home PC (Athlon 700 MHz with 256 MB SDRAM). (I
obtained a similar pattern of results on my (slower) notebook.) Can someone
please suggest how I might improve execution speeds for Octave, especially
under Linux?
The tests I ran were:
tic;A=rand(20,20000);B=svd(A);toc
ave of 10 runs (in sec): 1.032 Octave/Linux, 1.042 Octave/Win2k, 0.610 Matlab
tic;A=rand(2000,2000);B=prod(A);toc
ave of 10 runs (in sec): 3.560 Octave/Linux, 3.415 Octave/Win2k, 0.721 Matlab
tic;A=rand(1000,1000);B=inv(A)*A;toc
ave of 10 runs (in sec): 67.734 Octave/Linux, 62.700 Octave/Win2k, 7.44 Matlab
Also, I've noticed that Octave is slightly faster the second time a given
piece of code is run. Can someone explain why this is?
Thanks in advance.
Best regards,
Mark Laubach
-------------------------------------------------------------
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 / Win 2000 memory limitations, Chris Mellen, 2001/06/15
- Re: Octave / Win 2000 memory limitations, Jonathan Drews, 2001/06/15
- How to speed up Octave,
Laubach, Mark (Nicolelis Lab) <=
- How to speed up Octave, John W. Eaton, 2001/06/19
- Re: How to speed up Octave, Trond Eivind Glomsrod, 2001/06/20
- Re: How to speed up Octave, Dmitri A Sergatskov, 2001/06/20
- Re: How to speed up Octave, Trond Eivind Glomsrod, 2001/06/20
- Re: How to speed up Octave, Dmitri A Sergatskov, 2001/06/20
- Re: How to speed up Octave, Dmitri A. Sergatskov, 2001/06/19
- Re: How to speed up Octave, Aaron Brick, 2001/06/19
- Re: How to speed up Octave, Francesco Potorti`, 2001/06/20
- Re: How to speed up Octave, Jonathan Drews, 2001/06/21