Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Matlab 64 vs 32 bit benchmarking results (on Win XP 64 bit vs Win XP 32 bit SP2)

185 views
Skip to first unread message

Jent...@gmail.com

unread,
Mar 2, 2007, 3:04:46 AM3/2/07
to
Recently I installed a new PC with dual boot, win XP 32 bit and win XP
64 bit. On the 32 bit OS I run 32 bit matlab, on the 64 bit OS I run
64 bit matlab.


MATLAB Version 7.3.0.267 (R2006b)
Intel core 2 duo 6700 @ 2.66GHz, 2GB RAM
NVIDIA GeForce 7600 GS

I benchmarked the systems in 2 ways (average over multiple runs):

1) with a benchmark from the file exchange
MATLAB Central > File Exchange > Utilities > Miscellaneous >
Benchmark
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11984&objectType=file

2) With my own benchmark (training of neural networks, a neuro-fuzzy
network that spends most time in shiftdim & repmat functions, delayest
and a inverse of a 5000x5000 matrix)

The result was a bit shocking to me... The 64 bit setup was in general
more than 2x as SLOW as the 32 bit setup!

about the 64bit setup:
- only on the openGL graphics it was considerably faster
- slightly faster on 2D graphics
- equal on FFT calculation
- most other benchmarks were about 2 times as slow
- matrix inverse was over 4 times as slow!

Booting in windows safe mode and using -nojvm made hardly any
difference (faster 3D, slower 2D plots, for the rest the same)

For your information

Greetings
Jorg Entzinger

Joshua Baker-LePain

unread,
Mar 2, 2007, 8:33:32 AM3/2/07
to
On 2007-03-02, Jent...@gmail.com <Jent...@gmail.com> wrote:
> Recently I installed a new PC with dual boot, win XP 32 bit and win XP
> 64 bit. On the 32 bit OS I run 32 bit matlab, on the 64 bit OS I run
> 64 bit matlab.
>
> MATLAB Version 7.3.0.267 (R2006b)
> Intel core 2 duo 6700 @ 2.66GHz, 2GB RAM
> NVIDIA GeForce 7600 GS
>
*snip*

>
> The result was a bit shocking to me... The 64 bit setup was in general
> more than 2x as SLOW as the 32 bit setup!

Thanks for the interesting info. Other interesting data points would be:

o 32bit Matlab under 64bit Windows (is Matlab the problem, or Windows?)
o The same experiements in Linux. IME, 64bit Matlab works very well in
Linux, but I've never done any systematic benchmarking.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

x64 User

unread,
Mar 3, 2007, 1:30:10 AM3/3/07
to
Joshua Baker-LePain wrote:
>
>
> On 2007-03-02, Jent...@gmail.com <Jent...@gmail.com>
wrote:
>> Recently I installed a new PC with dual boot, win XP 32 bit and
> win XP
>> 64 bit. On the 32 bit OS I run 32 bit matlab, on the 64 bit OS
I
> run
>> 64 bit matlab.
>>
>> MATLAB Version 7.3.0.267 (R2006b)
>> Intel core 2 duo 6700 @ 2.66GHz, 2GB RAM
>> NVIDIA GeForce 7600 GS
>>
> *snip*

>>
>> The result was a bit shocking to me... The 64 bit setup was in
> general
>> more than 2x as SLOW as the 32 bit setup!
>
> Thanks for the interesting info. Other interesting data points
> would be:
>
> o 32bit Matlab under 64bit Windows (is Matlab the problem, or
> Windows?)
> o The same experiements in Linux. IME, 64bit Matlab works very
> well in
> Linux, but I've never done any systematic benchmarking.
>
> --
> Joshua Baker-LePain
> Department of Biomedical Engineering
> Duke University
>

Here are my results to add to the mix:

Hardware: Intel Xeon 3.66ghz 16 gig ram 4 dual cores
OS: Windows Server 2003 x64

A run of my typical simulation code:
R2007a x32: 115 seconds
R2007a x64: 39 seconds

Both of these results have the multiprocess/core feature set to 1.

Not too bad for just an upgrade.

Stephen

SeBy

unread,
Mar 3, 2007, 4:43:03 AM3/3/07
to

Yes R2007a seems to rock. I want to test it with a C2D and XP64. If
you have some numbers to give with multi-core ...

SeBt

Jent...@gmail.com

unread,
Mar 8, 2007, 6:23:36 AM3/8/07
to
<JentzN...@gmail.com>

> >> Recently I installed a new PC with dual boot, win XP 32bitand
> >> win XP 64bit. On the 32bitOS I run 32bitmatlab, on the 64bitOS
> >> I run 64bitmatlab.
>
> >> MATLAB Version 7.3.0.267 (R2006b)
> >> Intel core 2 duo 6700 @ 2.66GHz, 2GB RAM
> >> NVIDIA GeForce 7600 GS
>
> > *snip*
>
> >> The result was abitshocking to me... The 64bitsetup was in

> >> general more than 2x as SLOW as the 32bitsetup!
>
>
> Here are my results to add to the mix:
>
> Hardware: Intel Xeon 3.66ghz 16 gig ram 4 dual cores
> OS: Windows Server 2003 x64
>
> A run of my typical simulation code:
> R2007a x32: 115 seconds
> R2007a x64: 39 seconds
>
> Both of these results have the multiprocess/core feature set to 1.
>
> Stephen


Thanks Stephen, your results inspired me to try the upgrade ;-)
HOWEVER:
I wonder what kind of "typical" simulation you have that runs 3x as
fast on 64bit...

The benchmark from file-exchange
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11984&objectType=file
shows some better performance on LU and FFT but worse on ODE
calculations. Much better (like 3x) than the 2006b 64bit version, but
only slightly different from the 2007a 32bit version.

My own test shows that calculation of a big matrix inverse is 25%
faster on 64bit than 32 bit (2007b), but training neural networks is
like 15% slower on 64bit... Also some of my own functions (spending
most time in repmat and shiftdim) are slightly slower on 64bit.

Jorg Entzinger

Bobby Cheng

unread,
Mar 8, 2007, 6:42:17 AM3/8/07
to
If your own functions are spending times in repmat, then you may want to
look at bsxfun in R2007a.

Google: bsxfun

---Bob.

<Jent...@gmail.com> wrote in message
news:1173353016....@s48g2000cws.googlegroups.com...

Alan

unread,
Jan 12, 2010, 6:27:03 AM1/12/10
to
Jent...@gmail.com wrote in message <1172822686....@v33g2000cwv.googlegroups.com>...

> Recently I installed a new PC with dual boot, win XP 32 bit and win XP
> 64 bit. On the 32 bit OS I run 32 bit matlab, on the 64 bit OS I run
> 64 bit matlab.
>
>
> MATLAB Version 7.3.0.267 (R2006b)
> Intel core 2 duo 6700 @ 2.66GHz, 2GB RAM
> NVIDIA GeForce 7600 GS
>

I use a couple systems at work with 64bit, and this seems to have very little ram for a 64bit system. The whole point of 64bit is so that you have more memory. If that memory is paged, then not only do you have larger addresses and more bits (for every calculation), you are accessing it via your harddrive.
I'm not a computer guru. So please if this is wrong, correct me and set the internet back on the right path.

0 new messages