octave-maintainers
[Top][All Lists]
Advanced

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

Re: profiling Octave


From: Dmitri A. Sergatskov
Subject: Re: profiling Octave
Date: Sat, 10 Aug 2019 16:08:38 -0500



On Sat, Aug 10, 2019 at 1:31 PM Rik <address@hidden> wrote:
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


I compiled 4.2.2  and can confirm that (on i7-2600k):

4.2.2: cumulate =  17.162
6.0.0 (dev: 2c4759c8239c @): cumulate =  21.816


--Rik

Dmitri.
--

reply via email to

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