Skip to content

advice about R for windows speed

4 messages · Marc Schwartz, Carlos Hernandez, Bart Joosen

#
On Nov 19, 2009, at 9:25 AM, Carlos Hernandez wrote:

            
Are you running 32 bit R on each platform or are you using 64 bit R on  
Linux and OSX?

On the Dell, you are running two different versions of R and you don't  
indicate the R versions on the MacBook.

The RAM configuration on each computer is different, which will impact  
the timings to some extent, depending upon how much RAM you may  
require for your R code, given other processes that are running and  
before any disk swapping kicks in. You might want to review R Windows  
FAQ 2.9, if you have not already:

   http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021

For Windows on the MacBook, are you using Boot Camp to run Windows  
natively or are you using virtualization (eg. Parallels, VMWare,  
VirtualBox) to run Windows under OSX? If the latter, some of the time  
increase will be due to the virtualization overhead.

You should be using the same version of R across each platform for a  
fair comparison, as there is also the potential, if not the  
likelihood, that some code has been improved between versions, which  
may yield some performance differences. 32 bit versus 64 bit will also  
yield some differences. Differences in tuned BLAS libraries across  
each OS can also account for performance differences. You should look  
into using the one provided by R across each to enable more balanaced  
comparisons.

I am also not sure of what differences across each Windows test is  
attributable to WinXP versus Vista. There are others here with more  
insight into that aspect of things.

While there is a consistent increase for Windows timing as you have  
above, some of the differences may be due to not really having a  
(pardon the pun) "Apples to Apples" comparison across each platform.

HTH,

Marc Schwartz
#
I can only speak for the Windows part, but isn't it possible to test on
Windows 7 64bit?
(you can download a test version, and use a dual boot setup to try)
I always heard about the difficulties with WinXP 64bit, so maybe that is
just the problem?
Another thing to find out: maybe you can take advantage of the 4 processors
of your quadcore by using snow or similar?

Bart
Carlos Hernandez-7 wrote: