octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #58445] significant slow down in stable versio


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles
Date: Sun, 28 Jan 2024 14:02:09 -0500 (EST)

Follow-up Comment #15, bug#58445 (group octave):

Splitting this example into bm1.m (@numel loop only) and bm2.m
("numel" loop only). Also increased N to 1e6.

octave:1> profile on
octave:2> bm1
Time for cellfun (@numel, C) : 11.454379
octave:3> profile off
octave:4> profshow 
   #  Function Attr     Time (s)   Time (%)        Calls
--------------------------------------------------------
  26   cellfun             7.104      64.97      1000000
   1       bm1             3.059      27.97            1
  27     numel             0.771       7.05      4000000
   2     magic    R        0.000       0.00            5
  17    fliplr             0.000       0.00            2


octave:1> profile on
octave:2> bm2
Time for cellfun ("numel", C) : 3.036819
octave:3> profile off
octave:4> profshow
   #  Function Attr     Time (s)   Time (%)        Calls
--------------------------------------------------------
   1       bm2             2.324      79.13            1
  26   cellfun             0.612      20.85      1000000
   2     magic    R        0.000       0.01            5
  17    fliplr             0.000       0.01            2

(where are the numel calls?)

Also attached are uProf screenshots (bm1_uprof.png and bm2_uprof.png for each
run.

Dmitri.
-- 


(file #55633, file #55634)

    _______________________________________________________

Additional Item Attachment:

File name: bm1_uprof.png                  Size:121 KB
    <https://file.savannah.gnu.org/file/bm1_uprof.png?file_id=55633>

File name: bm2_uprof.png                  Size:123 KB
    <https://file.savannah.gnu.org/file/bm2_uprof.png?file_id=55634>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-c1ed02e8acb231e4a6366311e613bcbff60ca56e.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58445>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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