|
From: | Ceral Paquet |
Subject: | [Octave-bug-tracker] [bug #46830] Multiplication about 4x slower than Matlab |
Date: | Wed, 06 Jan 2016 10:03:29 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
URL: <http://savannah.gnu.org/bugs/?46830> Summary: Multiplication about 4x slower than Matlab Project: GNU Octave Submitted by: octavebugs Submitted on: Wed 06 Jan 2016 10:03:28 AM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 4.0.1-rc1 Operating System: GNU/Linux _______________________________________________________ Details: The following code is much slower in Octave than Matlab. I have run it on 2 different machines+verions: v3.81 32-bit from the Ubuntu repo and v4.01 64-bit compiled locally with openblas. Sorry I don't know what package implements the .* operator. function hello() A=rand(3000);B=rand(3000); tic;for k=1:20;C=A.*B;end;toc Octave: >> hello Elapsed time is 0.924918 seconds. >> hello Elapsed time is 0.935749 seconds. >> hello Elapsed time is 0.95104 seconds. Matlab: >> hello Elapsed time is 0.213288 seconds. >> hello Elapsed time is 0.214244 seconds. >> hello Elapsed time is 0.214326 seconds. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?46830> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |