help-octave
[Top][All Lists]
Advanced

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

Fw: GNU Octave vs. Matlab calculation time performance


From: Gökhan Sen
Subject: Fw: GNU Octave vs. Matlab calculation time performance
Date: Wed, 27 Feb 2019 15:01:32 +0100

Hello,
 
I've send my fit also to Mr. Eaton, but maybe there are other support available,
which could be also helpfull!
 
Many thx. in advance,
 
Kind regards, 
Gökhan Sen
 
Gesendet: Mittwoch, 27. Februar 2019 um 14:58 Uhr
Von: "Gökhan Sen" <address@hidden>
An: address@hidden
Betreff: GNU Octave vs. Matlab calculation time performance
Hello Mr. Eaton,
 
I'm a big fan from gnu octave and the very impressive possible usuabla applications.
 
But sometimes it seems, that the calculation speed lacks in comparison with commercial Version e.g. Matlab.
 
I've add a simple script (also as m-file), which is do a simple calculation operation.
 
The calculation time / output from these script as following is:
 
@Matlab (MATLAB Version: 9.0.0.341360 (R2016a))
" Number of vector rows: 
     10000000
Elapsed time is 0.152188 seconds."
 
 
@ GNU Octave 5.1.0:
" Number of vector rows:
  10000000
Elapsed time is 71.7445 seconds."
 
It would mean Matlab do the same calculation operation ~472 time faster as gnu octave... :(
 
This is a simple operation and I use really complex operations and the calculation time will never ends...

Do you have any idea how could I reduce the calculation time and are ther some intentions
for future versions to improve the calculation time to be more closer to Matlab...?
 
I would be very happy, if you could help me about this topic?
 
 
Nevertheless, many thanks for your time and support!
 
Kinde regards,
Gökhan Sen
 

% -------------------------------------------------------------------------
% -------------------------------------------------------------------------
clc
clear all
% -------------------------------------------------------------------------
n = 1e7 ;
V = ones(n,1) ;
R = size(V,1) ;
disp('                        ') ;
disp(' Number of vector rows: ') ;
disp('                        ') ;
disp(R) ;
% -------------------------------------------------------------------------
tic
for k = 1:R
   
    V(k) = 1.2345 * V(k) ;
    
end
toc
% -------------------------------------------------------------------------
% -------------------------------------------------------------------------

 

Attachment: Memory.m
Description: Binary data


reply via email to

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