[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61092] Tangible performance degradation on de
From: |
Hendrik K |
Subject: |
[Octave-bug-tracker] [bug #61092] Tangible performance degradation on dev between 6th July and 27th of August |
Date: |
Thu, 2 Sep 2021 00:07:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
Follow-up Comment #2, bug #61092 (project octave):
You are welcome and good question:
Two tests:
a) Using the underlying math libs : no performance change
(not surprisingly though...).
tic;
mat = (1:10000) .* ones(10000);
for k=1:10
ts(k) = toc();
mat = sqrt(mat);
ts(k) = toc() - ts(k);
endfor
disp (mean(ts));
Image 6th of July: 0.3886s
Image 27th of August: 0.3883s
b) Using vectorized code: Tangible (but less than loop) degradation.
tic;
mat = (1:10000) .* ones(10000);
for k=1:10
ts(k) = toc();
mat(1:end-1,:) = mat(1:end-1,:) - mat(2:end,:);
ts(k) = toc() - ts(k);
endfor
disp (mean(ts));
Image 6th of July: 0.7135s
Image 27th of August: 0.7332s
0.7332/0.7135 = 1.0276
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61092>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/