[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: GNU Octave vs. Matlab calculation time performance
From: |
Windhorn, Allen E [ACIM/LSA/MKT] |
Subject: |
RE: GNU Octave vs. Matlab calculation time performance |
Date: |
Wed, 27 Feb 2019 15:11:35 +0000 |
Gökhan,
From: Help-octave [mailto:address@hidden On Behalf Of "Gökhan Sen"
> ...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."
-----
@ Gnu Octave 4.4.1:
tic
V = V.*1.2345;
toc
Elapsed time is 0.039151 seconds.
-----
Can you "vectorize" your code to take advantage of the way Octave/Matrix
works?
I think Matlab may have just-in-time compilation going on, which speeds up
the code tremendously.
Regards,
Allen