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

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

[Octave-bug-tracker] [bug #48736] Multiplication is thrice as fast as di


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48736] Multiplication is thrice as fast as division
Date: Wed, 10 Aug 2016 01:27:24 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Update of bug #48736 (project octave):

                Category:                    None => Interpreter            
              Item Group:                    None => Performance            
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

I see a similar performance difference between the in-place multiplication and
division by a scalar:


>> x = rand (1e8, 1);
>> tic; for i=1:10, x *= 1; endfor; mult_time = toc;
>> tic; for i=1:10, x /= 1; endfor; div_time = toc;
>> div_time / mult_time
ans =  2.5274



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48736>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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