|
From: | Dmitri A. Sergatskov |
Subject: | Re: profiling Octave |
Date: | Sat, 10 Aug 2019 16:08:38 -0500 |
I changed the code slightly to make this benchmark file, bm_toeplitz.m
runs = 5;
cumulate = 0; b = 0;
for i = 1:runs
b = zeros(620, 620);
tic;
for j = 1:620
for k = 1:620
b(k,j) = abs(j - k) + 1;
end
end
timing = toc;
cumulate = cumulate + timing;
end
## Total time
cumulate
Results are the same as the simpler loop test, about a 25% slowdown from 4.2 to 4.4.
4.2.1 4.4.1 5.1.0 10.544 13.052 13.481
--Rik
[Prev in Thread] | Current Thread | [Next in Thread] |