You are not logged in.
Arguably an R rather than Arch question I realize but:
my colleague and I both have brand new Lenovo ThinkCentres. Same specs but he has more RAM (I don't think that's the issue). We run the same program
length <- 2*10^6
a <- runif(length)
b <- runif(length)
print(summary(lm(a~b)))
I take 16 seconds in Arch 64, but never bump against a memory constraint (looks like about 1/3 of RAM used max).
My colleague, with Windows, takes 7 seconds.
The R documentation says 32 bit R is about 10% faster in some cases, but that doesn't explain a 50% difference.
I *think* I have compiled 32 bit R on my system and it doesn't seem to go any faster.
By contrast I run a python loop a bit faster than my colleague.
Thoughts?
Last edited by davidoff (2009-09-04 02:50:14)
Offline
That is a bit strange and not something I have ever noticed. Does it take the same time on the second attempt?
Try comparing the time when running it from the command line:
R CMD BATCH file
where file has the R code.
Online
Same time (roughly) every time, and I run from the command line (R CMD BATCH). Routine takes about the same time run at R prompt.
And this is true whether I compile R from cran's sources or from pacman.
Offline
How was the version being run on Windows built? Could it be more optimized than the version in the Arch repos?
Offline
No optimization on either OS, just straight out of the box. I get the same results with all of: R from cran 64 or 32 bit build, R from pacman. The windows was just a straight download of the 32 bit for windows from cran.
Offline
It is possible that if the 32-bit R from CRAN was compiled with MSVC++ instead of GCC that it did a better job of optimizing the code. GCC isn't always the best in this area.
Offline
Arguably an R rather than Arch question I realize but:
my colleague and I both have brand new Lenovo ThinkCentres. Same specs but he has more RAM (I don't think that's the issue). We run the same programlength <- 2*10^6 a <- runif(length) b <- runif(length) print(summary(lm(a~b)))
I take 16 seconds in Arch 64, but never bump against a memory constraint (looks like about 1/3 of RAM used max).
My colleague, with Windows, takes 7 seconds.
The R documentation says 32 bit R is about 10% faster in some cases, but that doesn't explain a 50% difference.
I *think* I have compiled 32 bit R on my system and it doesn't seem to go any faster.By contrast I run a python loop a bit faster than my colleague.
Thoughts?
If I run that on my Arch64 box, it takes 23 sec. If I run it a second time it takes 6 sec.
Jay
Offline