[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: |
Ceral Paquet |
Subject: |
[Octave-bug-tracker] [bug #48736] Multiplication is thrice as fast as division |
Date: |
Wed, 10 Aug 2016 22:44:19 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:2.1) Gecko/20100101 Goanna/20160701 PaleMoon/26.3.3 |
Follow-up Comment #4, bug #48736 (project octave):
This is on a 2 core CPU, 64 bit compile, Linux Ububtu.
x = rand (1e8, 1);
tic; for i=1:50, x = x*1; end; mult_time = toc;
tic; for i=1:50, x = x/1; end; div_time = toc;
[mult_time div_time div_time/mult_time]
Matlab 2016a 64 bit:
ans =
4.7037 7.4285 1.5793
Octave 4.01 64 bit:
ans =
14.1054 31.6478 2.2437
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48736>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/